How can I set up multiple apache local web sites on Ubuntu?
I added the following to httpd.conf:
<VirtualHost *:80>
DocumentRoot "/wwwroot/htdocs/firstsite/"
ServerName www.vhostsite.com
</VirtualHost>
Now I try to go to www.vhostsite.com but browser says he can't find server.
Though, firstsite folder is created in htdocs, and it contains index.html (that is intended to show up in browser)
wwwroot is directory where apache is installed
www.vhostsite.com
to your/etc/hosts
file, like I wrote.hosts
file, for otherwise the browser cannot connect to that public IP address from within your own network.)hosts
or DNS. if you run DD-WRT/OpenWRT on your home router you may be able to tweak it to add your own DNS settings there;hosts
is easier tho.