How can I edit Virtual Host in http.conf

In order to edit virtual host, you will need to edit http.conf which is as follows :-

NameVirtualHost *

<VirtualHost *>
ServerName www.domain.tld
DocumentRoot /www/domain

<VirtualHost *>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain

this server alias can also be set in for alternative for a host for name-basd virtual host.

Leave a Reply

Your email address will not be published. Required fields are marked *