Linux serverNETWORK ADMINISTRATIONS

How to Create Apache Virtual Hosts on CentOS 7 [Tutorial]

This Tutorial helps to How to Create Apache Virtual Hosts on CentOS 7 [Tutorial]

1. sudo nano /etc/httpd/conf/httpd.conf

2.
<VirtualHost *:80>
ServerName www.yourdomain.com
ServerAlias yourdomain.com
DocumentRoot /var/www/html/yourdomain
ErrorLog /var/www/html/yourdomain/error.log
CustomLog /var/www/html/yourdomain/requests.log combined
</VirtualHost>

3. sudo systemctl restart httpd.service

Thanks Friends for watching this Video,
Please Subscribe and Support Our Chanel.

source

centos 7

One thought on “How to Create Apache Virtual Hosts on CentOS 7 [Tutorial]

  • The most short and sweet video to the point only excellent video

    Thanks for such beautiful video

Comments are closed.