Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: VirtualHosts and IP addresses |
|
Author |
|
benclarkuk
Joined: 04 Feb 2010 Posts: 1
|
Posted: Thu 04 Feb '10 17:13 Post subject: VirtualHosts and IP addresses |
|
|
I wonder if anyone can help, I've search for an answer, but dont really know what to search for to answer my question.
I have a windows server using apache on it, I have had a couple of sites running from it, and have previously just used domain name forwarding to the servers IP followed by the correct sub directory from the webroot. So was just using the <Directory /> feature to control everything.
I have now set-up a domain properly with the nameserver and dns configured on the server, this all works, but when you go to the domain it does to the root of the webroot, instead of the subdirectory I want it to go to.
So I set-up a <Virtualhost> and that works fine for the one correctly set-up domain, but the other domains ( that are just basic domain forwarding ) now point to the same virtualhost.
So basically, can I have a number of virtualhosts, one that uses the proper www.site.com domain, and some others that use the IP of the server followed by the subdirectory for the site.
I'm not sure if any of this makes sense, and I appologise now if I have not explained properly... Thanks |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7407 Location: EU, Germany, Next to Hamburg
|
Posted: Fri 05 Feb '10 15:19 Post subject: |
|
|
it would be very helpful if you could post your vhost setup (do not post the wohle httpd.conf ) |
|
Back to top |
|
|
|
|
|
|