Results 1 to 2 of 2
Hi all,
I’ve been having a lot of trouble getting my Virtual Hosts to work. Currently it just loads the route directory and doesn’t go thru to the dir.
My ...
- 03-19-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 1
Virtual Hosts (apache) Problems
Hi all,
I’ve been having a lot of trouble getting my Virtual Hosts to work. Currently it just loads the route directory and doesn’t go thru to the dir.
My conf file can be found here:
http://www.insidiousfix.net/linuxug/conf.txt
As far as i can see i’ve written my vh’s are fine, i have no idea why they aren’t loading.
I’ve had help with some of this but hasn’t gone very far, it starting with restarting apache then the vh’s wouldn’t load. Below is a link to the help ive had:
[nzlug] Apache Restarting Problems
I’m completely stuck at the moment. If anyone could help that would be great.
- 03-19-2008 #2
this is what I would do (or what I am doing right now), take note of where you had ip's and look for quotes "" where you didn't have quotes. and then check your error logs:
Code:NameVirtualHost *:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # # VH1 <VirtualHost *:80> ServerAdmin me@mydomain.co.nz DocumentRoot "/var/www/html/mydir1" ServerName mydomain1.co.nz ServerAlias www.mydomain1.co.nz </VirtualHost> # VH2 <VirtualHost *:80> ServerAdmin me@mydomain.co.nz DocumentRoot "/var/www/html/mydir2" ServerName mydomain2.co.nz ServerAlias www.mydomain2.co.nz </VirtualHost> # VH3 <VirtualHost *:80> ServerAdmin me@mydomain.co.nz DocumentRoot "/var/www/html/mydir3" ServerName mydomain3.co.nz ServerAlias www.mydomain3.co.nz </VirtualHost>


Reply With Quote