Author |
|
oliverm
Joined: 14 Jul 2006 Posts: 5
|
Posted: Fri 14 Jul '06 17:24 Post subject: Dealing with requests to the IP address |
|
|
Hi,
I have my apache install setup (i think), and requests to my main few domains are working. However, I now want to deal with requests to
http://192.168.0.1
and redirect them to some pages on the webserver.
Anyone know what virtual site settings I need to include to deal with such requests? I tried a servername of the IP but that didnt work.
Thanks
Olly |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
oliverm
Joined: 14 Jul 2006 Posts: 5
|
Posted: Fri 14 Jul '06 17:38 Post subject: |
|
|
Sorry. What I need is to allow virtual hosts (ie www.domain1.com, domain2, domain3 etc), as well as allow for requests for NO host header, ie http://192.168.100.100.
That link was all about the mod_rewrite, kinda, and I already have that working. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
oliverm
Joined: 14 Jul 2006 Posts: 5
|
Posted: Fri 14 Jul '06 21:25 Post subject: |
|
|
Close, but still not there. That post was about changing the host file so that, on the server, the domains pointed to the internal IP of the server rather than the external IP of the server.
Again, this is something I have already done, but doesnt cover the issue.
I want to be able to display sites when someone DOESNT specify a host header, so it has nothing to do with the hosts file.
I want to support
http://www.mydomain.com --> c:\www1
http://www.mydomain2.com --> c:\www2
AND
http://87.168.30.35 --> c:\www3 |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 14 Jul '06 21:58 Post subject: |
|
|
If that does not fix your problem, you have to install an DNS server! |
|
Back to top |
|
oliverm
Joined: 14 Jul 2006 Posts: 5
|
Posted: Fri 14 Jul '06 22:18 Post subject: |
|
|
Please stop replying to this thread.
I dont need a DNS server. I have a DNS server. I have lots of them, I have a cluster of web servers, several T1 lines.
I have lots of domains (that should be a hint that I have a DNS server somewhere). My Apache install is setup to service some of those domains.
However, theres an admin interface that needs to be accessible TO AN IP ADDRESS, NOT A HOST HEADER. This is by requirement, NOT because I dont have a DNS server.
I have virtuals for all the domains, and I need to structure one so that it can handle a request for JUST and IP without a host header. This is simple in IIS.
PLEASE can someone post something sensible before he tells me i need a lawn mower or something :S
O |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Sat 15 Jul '06 9:11 Post subject: |
|
|
I don't think James would suggest a lawn mower, but I will mow your grass.
BAD ATTITUDE = LOCKED TOPIC
There are rules for posting, which include NOT using inflamatory comments:
http://www.apachelounge.com/viewtopic.php?t=106 |
|
Back to top |
|