Current time: 11-19-2024, 12:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
Subdomain forwarding to other IP
Author Message
GaRCieLD Offline
Junior Member
*

Posts: 15
Joined: Jun 2007
Reputation: 0
Post: #1
Subdomain forwarding to other IP
Hi,

There is some way to forward a subdomain to other IP?

For example, I want the domain http://www.domain.org as the main domain, and then I want TEST.domain.org to be redirected for example to http://62.0.0.1/TEST/.

http://www.domain.org -> on the main server
http://test.domain.org -> on other server

If it's not possible in the ispcp I can make it hand-made in the dns files...

Thanks,
11-14-2007 02:17 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Subdomain forwarding to other IP
If it's like in the example then you have to add a subdomain "test.domain.tld" and put a index.html file in the folder with a redirect.
An other solution would be a redirect in the apache configuration... but this is not the "gui method"....

If you put the other IP in the dns zone file then the server there has to be setup for "test.domain.tld" - so it's not a redirect to another URL - its just a website (subdomain) which is located on another webserver...

/J
11-14-2007 02:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #3
RE: Subdomain forwarding to other IP
i would do this with mod_rewrite...
11-14-2007 02:53 AM
Visit this user's website Find all posts by this user Quote this message in a reply
darkrunner Offline
Junior Member
*

Posts: 16
Joined: Nov 2007
Reputation: 0
Post: #4
RE: Subdomain forwarding to other IP
it doesn't working external it is working internal it must be an other way to do this. İ tried all ways but i cant do this maybe it will with squid but i cant do it Some body help me please. Big Grin
04-04-2009 11:16 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: Subdomain forwarding to other IP
We cannot help you with the information you're givin'...

/J
04-05-2009 08:02 PM
Visit this user's website Find all posts by this user Quote this message in a reply
darkrunner Offline
Junior Member
*

Posts: 16
Joined: Nov 2007
Reputation: 0
Post: #6
RE: Subdomain forwarding to other IP
i am trying to forward a subdomain to e server in my local network but i cant do this. I tried htaccess and other ways like html.. etc. But it doesnt work. It is working local but it doesnt working from outside Help me pls.
04-10-2009 06:32 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #7
RE: Subdomain forwarding to other IP
Ah, am I understanding right?
Your Lan:
- a webserver "A" which is contactable from outside (Port 80 in the router directs to this server "A").
- another webserver "B" which is not reachable from outside.

You want webserver "A" to show the content of webserver "B" also to the outside?

If this is the case, I think you need mod_proxy - or another proxy software (you mentioned squid) - but mod_proxy may do this - see on the apache website for more infos and docu.
A redirect only gives the browser an information where to go next...

/J
04-11-2009 02:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)