Ok here's what I had to do to correct the problem:
NameVirtualHost *:3000
<VirtualHost *:3000>
ServerName 127.0.0.1
DocumentRoot /var/apache/htdocs
</VirtualHost>
<VirtualHost *:3000>
ServerName www.mywebsite.com
DocumentRoot /var/apache/htdocs/mywebsite
</VirtualHost>
Well guys, it doesn't work. Does anyone have any suggestions. I have tried several differnt configurations with the VirtualHost directives with no success. Could there be something else in my httpd.conf file that could be causing the problem?
actually my config file looks like this. I left out the mywebsite in my last post on the Document Root:
NameVirtualHost *:3000
<VirtualHost 123.111.222.123:3000>
ServerName 123.111.222.123:3000
DocumentRoot /var/apache/htdocs
</VirtualHost>
<VirtualHost *:3000>
ServerName...
I am running Solaris 5.9 with Apache 1.3.27
I have the default website which is the standard Apache test page and I have added a virtual host to the httpd.conf file. If I use www.mywebsite.com in my browser I get the home page that I am supposed to get but if I use the ip address of the server...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.