ispCP - Board - Support
Subdomain forwarding to other IP - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Subdomain forwarding to other IP (/thread-1779.html)



Subdomain forwarding to other IP - GaRCieLD - 11-14-2007 02:17 AM

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,


RE: Subdomain forwarding to other IP - joximu - 11-14-2007 02:50 AM

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


RE: Subdomain forwarding to other IP - rbtux - 11-14-2007 02:53 AM

i would do this with mod_rewrite...


RE: Subdomain forwarding to other IP - darkrunner - 04-04-2009 11:16 PM

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


RE: Subdomain forwarding to other IP - joximu - 04-05-2009 08:02 PM

We cannot help you with the information you're givin'...

/J


RE: Subdomain forwarding to other IP - darkrunner - 04-10-2009 06:32 PM

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.


RE: Subdomain forwarding to other IP - joximu - 04-11-2009 02:29 AM

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