-   Linux - Software (
-   -   Virtual Host Redirect Issue (

DigiDave 10-23-2003 12:06 PM

Virtual Host Redirect Issue
This is probably a simple question but to simple for me to answer and therefore require some help.

I have set up two virtual hosts will success however when I type the URL into the browser for one I get the other But only when I type the URL in the following way.

eg: type into browser and you get any the index page for my first virtual server.

type into browser you get the proper index page. Puzzling!!!

I know why it's happening (I think?) I has to do with the pointing but I can't figure out how to adjust Apache to correct.

Any suggestions would be appreciated. I hope to have enough experience with all of this to someday help others.


schwing 10-23-2003 01:40 PM

In your VirtualHost directive, check to see if you have ServerName AND ServerAlias set correctly. I use a format like:

DocumentRoot "/usr/local/apache/htdocs/mydomain"

Then don't forget to restart Apache.


All times are GMT -5. The time now is 09:01 PM.