Computing.Net > Forums > Web Development > Host headers on index page

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Host headers on index page

Reply to Message Icon

Name: jefro
Date: June 16, 2006 at 14:00:03 Pacific
OS: xp pro
CPU/Ram: athlon
Product: homemade
Comment:

I swear I used to know how to make a single ip:port run multiple web pages using an initial web page that had host header info. Is that wrong? All I can find is how to get IIS or Apache to run host headers, not an index or default page. My wife has a web page and I was going to put up another page for her pal. Thought I could make a simple index page that would then select the correct page using the host header sent information.

I'm sure this is too easy of a question, dunno why I can't seem to find the answer.

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: StreamLogic
Date: August 6, 2006 at 15:50:32 Pacific
Reply:

Jefro,

You can eaily do this with IIS as you have seen. However, if you are using ASP or some other server-side language, you can also interrogate the HTTP header information. In classic ASP this is accomplished through the Request.ServerVariables() collection. One you find the information which lets you know which site to go to, you can simply redirect to the appropriate landing page.

I hope this helps point you in the right direction.


Curtis Hughes
StreamLogic Inc.
http://www.streamlogicinc.com


0
Reply to Message Icon

Related Posts

See More


Layers being moved when w... Website Mirrors



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Host headers on index page

Objects moving on web page www.computing.net/answers/webdevel/objects-moving-on-web-page/994.html

Creating Frames on Excisting Pages www.computing.net/answers/webdevel/creating-frames-on-excisting-pages/1986.html

Repeating information on every page www.computing.net/answers/webdevel/repeating-information-on-every-page/1842.html