
Originally Posted by
dklynn
Just another word of advice: I suspect that Apache needs its own "localhost" DocumentRoot but you are quite correct in setting up named VirtualHosts for your named domains. NO PROBLEM at all with sharing the IP address. Just be sure that the VH for each specify the {IP_Address}:80 in the httpd-vhosts.conf (as renamed for your distro) file, e.g., I use:
Code:
<VirtualHost 127.0.0.1:80>
ServerName arj
DocumentRoot W:/ARJ
ServerPath W:/ARJ
</VirtualHost>
...
DK
David,
here's a mydomain.com.conf file :
Code:
<VirtualHost my_servers_IP:80>
DocumentRoot "/var/www/my_domain_dir"
ServerName my_domain.com
<Directory "/var/www/my_domain_dir">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
which is stored in /etc/apache2/sites-enabled/ and is included by the apache2.conf
That's exactly what you told me to do - I hope... Still, I can't load my page - server can't be found.... 
What should I try next, please?
Thank you for your time, I really appreciate your knowledge!
Regards,
VD
Bookmarks