logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
This topic is locked: you cannot edit posts or make replies.   Topic: Dealing with requests to the IP address
Author
oliverm



Joined: 14 Jul 2006
Posts: 5

PostPosted: Fri 14 Jul '06 17:24    Post subject: Dealing with requests to the IP address Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 14 Jul '06 17:31    Post subject: Reply with quote

check http://www.apachelounge.com/viewtopic.php?t=524

there are many more solution. They can be found by the forum search...

check also the Forum rules
http://www.apachelounge.com/viewtopic.php?t=106
Back to top
oliverm



Joined: 14 Jul 2006
Posts: 5

PostPosted: Fri 14 Jul '06 17:38    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 14 Jul '06 20:15    Post subject: Reply with quote

Sorry false link
http://www.apachelounge.com/viewtopic.php?p=2039
Back to top
oliverm



Joined: 14 Jul 2006
Posts: 5

PostPosted: Fri 14 Jul '06 21:25    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 14 Jul '06 21:58    Post subject: Reply with quote

If that does not fix your problem, you have to install an DNS server!
Back to top
oliverm



Joined: 14 Jul 2006
Posts: 5

PostPosted: Fri 14 Jul '06 22:18    Post subject: Reply with quote

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

PostPosted: Sat 15 Jul '06 9:11    Post subject: Reply with quote

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


This topic is locked: you cannot edit posts or make replies.   Topic: Dealing with requests to the IP address View previous topic :: View next topic
Post new topic   Forum Index -> Apache