LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-09-2005, 11:50 AM   #1
PdotROSS
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Website redirection script


I am planning on having one static IP and having several domain names pointing to that IP. Ultimately, I want to redirect them to a dynamic IP based on which domain name they requested. I know the script to redirect them, but I don't know how to get which domain name the client requested. Is there a function or something that does this already?

Thanks
 
Old 09-09-2005, 12:39 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well to redirect them you'd want to presumably serve them back a redirection page via apache, so you'd just have a different virtual server for each domain (see standard apache documentation). Or you could have a single PHP page which can access the referrer directly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - Website Redirection Help cbarone2005 Linux - Software 2 09-29-2005 02:45 PM
Script help (parse website) Vgui Linux - General 3 08-22-2005 06:37 PM
shell script output redirection goral.j Programming 3 01-27-2005 05:34 AM
Execute Script from Website cartoonwally Linux - General 10 05-28-2004 06:39 PM
I/O redirection in a shell script gladeiator Programming 1 11-27-2003 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration