ispCP - Board - Support
redirect subdomain to local ip server - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: redirect subdomain to local ip server (/thread-5797.html)

Pages: 1 2


redirect subdomain to local ip server - darkrunner - 02-23-2009 10:41 PM

hi i'm using ispcp on debian server
i'm trying to redirect to subdomain to my local ip but it isn't working
i tryed it index.htm but it is working in local but doesn't working from out

I would be very happy if some nice person would give me a hand.

Thanks, and Greets,


RE: redirect subdomain to local ip server - geri1590 - 02-26-2009 07:52 AM

Hi, in my experience, you have two options:
1- Edit manual lines on bind, in /etc/ispcp/bind/working/DOMAIN - and you search subdomain and edit to local IP. edit too in /etc/bind/DOMAIN and the same.
2- Try to http://localhost.subdomain.domain.tld if you're the server. (If you want, yo can edit manual lines too, but this time in localhost instead of subdomain directly.
3- I forget another option, try this and if don't work I search another solution.

Greets!
*sry for my english :s


RE: redirect subdomain to local ip server - darkrunner - 02-26-2009 04:57 PM

thank u for your help I will try


RE: redirect subdomain to local ip server - darkrunner - 02-26-2009 06:26 PM

it doesn't working. I tryed first i didnt try second because i didn't understand how can i do ? I think it works when apache work in local because it is running in local with redirecting index.html Cool


RE: redirect subdomain to local ip server - geri1590 - 02-26-2009 11:27 PM

Your server run in local network or in the same PC?


RE: redirect subdomain to local ip server - darkrunner - 02-26-2009 11:47 PM

my server in local network ispcp server ip 192.168.1.50 subdomain.xxx.com redirecting 192.168.1.5 it is also working in locale but it doesn't working from outside


RE: redirect subdomain to local ip server - geri1590 - 02-26-2009 11:54 PM

So, you want that domain runs external or local? or local and extern?

But, if you has installed ispCP with local IP, that would to run correctly :S
**extern = non local.** =)

greets!


RE: redirect subdomain to local ip server - darkrunner - 03-04-2009 05:32 PM

it doesn't work all i tryed i must do to this because we have 2 server in our network and i must forward to subdomain to other server with ip 192.168.1.5 ispcp server ip 192.168.1.50 i want to forward subdomain.xxx.com to 192.168.1.5


RE: redirect subdomain to local ip server - geri1590 - 03-04-2009 11:42 PM

I'm not shure, but you can create a Domain Alias.

If not works (probably),
- Create a subdomain
- In /etc/ispcp/bind/working/SUBDOMAIN edit IP and put your server destination, in this case 192.168.1.5
- You must do the same in /etc/bind/SUBDOMAIN.db
- Restar bind9 -> /etc/init.d/bind9 restart

And tell me how did it go.
Greets!


RE: redirect subdomain to local ip server - darkrunner - 03-05-2009 05:55 PM

hi i did all. it is working in locale when i change my dns server 192.168.1.50 but it doesnt work from outside always coming ispcp default subdomain page