?

Log in

No account? Create an account
 
 
07 October 2016 @ 12:30 pm
Apache VirtualHost  
VirtualHost Examples https://httpd.apache.org/docs/2.4/vhosts/examples.html

add to /usr/local/etc/apache24/httpd.conf

<  VirtualHost 127.0.0.1:80 >
ServerName localhost.my.domain1
ServerAlias www.localhost.my.domain1
ServerAdmin admin@sitedomain1
DocumentRoot '/usr/local/www/apache24/data/sitedomain1'
ErrorLog '/var/sitedomain1.log'

< /VirtualHost >


add host in /etc/hosts:
::1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain
127.0.0.1 localhost localhost.my.domain1
127.0.0.1 localhost localhost.my.domain2

service apache24 reload