Quantcast

any apache gurus? name based hosting questions

  • Come enter the Ridemonkey Secret Santa!

    We're kicking off the 2024 Secret Santa! Exchange gifts with other monkeys - from beer and snacks, to bike gear, to custom machined holiday decorations and tools by our more talented members, there's something for everyone.

    Click here for details and to learn how to participate.

jacksonpt

Turbo Monkey
Jul 22, 2002
6,791
59
Vestal, NY
I've got 2 domain names, 1 server and 2 websites. Both sites live on the one server, one site is setup for each domain name.

I setup name based virtual hosts on my apache server. When I try to access the domain names, everything works great. However, when I try to acess the server via it's IP, it doesn't work.

I read in the apache docs that this is normal. So I setup a vhost for the IP address... same exact way I did it for the domain names, but rather than using a domain name, I used the IP. That didn't seem to work.

Is it possible to still access the server via IP address (from a browser) while using name based vhosts?