Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache virtual host

Status
Not open for further replies.

jonlake

MIS
Sep 17, 2003
76
0
0
US
I have two domain websites that I am hosting and I setup a virtual host entry to accomplis this. The virtual host was working fine, but out of nowhere it is doing some weird stuff.

I have setup as the main/default server in section 2 of httpd.conf. I then put the following in for the virtual host entry.


<VirtualHost *>
DocumentRoot /var/ServerName </VirtualHost>

Now, when I go to it loads And vice-versa when I go to it loads
I know the document roots are correct, because these were working at one time, and I was previously running one site on here and it worked fine. I haven't made any changes to the server (at least apache) since it was working, so I don't know why this quit working.

I looked at my httpd.conf file again, and everything seems to be fine.

Thanks,

Jon
 
Some Questions:

1. Are you using "IP based virtual hosting" or "name based virtual hosting"?

2. Do you have one Virtual Host Entry for each Domain?

3. Is the assignment of the DNS-Names to the IP Apache is listening ok?

4. Which Apacheversion do you use: 1.x or 2.x?

rgds
Martin
 
I got it to work. I had to put both as virtual hosts and not set a main server.

Thanks,

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top