Current time: 05-05-2024, 09:59 AM Hello There, Guest! (LoginRegister)


Post Reply 
redirect subdomain to local ip server
Author Message
darkrunner Offline
Junior Member
*

Posts: 16
Joined: Nov 2007
Reputation: 0
Post: #1
redirect subdomain to local ip server
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,
02-23-2009 10:41 PM
Find all posts by this user Quote this message in a reply
geri1590 Offline
Junior Member
*

Posts: 43
Joined: Dec 2008
Reputation: 1
Post: #2
RE: redirect subdomain to local ip server
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
(This post was last modified: 02-26-2009 07:54 AM by geri1590.)
02-26-2009 07:52 AM
Find all posts by this user Quote this message in a reply
darkrunner Offline
Junior Member
*

Posts: 16
Joined: Nov 2007
Reputation: 0
Post: #3
RE: redirect subdomain to local ip server
thank u for your help I will try
02-26-2009 04:57 PM
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: redirect subdomain to local ip server
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
02-26-2009 06:26 PM
Find all posts by this user Quote this message in a reply
geri1590 Offline
Junior Member
*

Posts: 43
Joined: Dec 2008
Reputation: 1
Post: #5
RE: redirect subdomain to local ip server
Your server run in local network or in the same PC?
02-26-2009 11:27 PM
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: redirect subdomain to local ip server
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
02-26-2009 11:47 PM
Find all posts by this user Quote this message in a reply
geri1590 Offline
Junior Member
*

Posts: 43
Joined: Dec 2008
Reputation: 1
Post: #7
RE: redirect subdomain to local ip server
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!
(This post was last modified: 02-26-2009 11:58 PM by geri1590.)
02-26-2009 11:54 PM
Find all posts by this user Quote this message in a reply
darkrunner Offline
Junior Member
*

Posts: 16
Joined: Nov 2007
Reputation: 0
Post: #8
RE: redirect subdomain to local ip server
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
03-04-2009 05:32 PM
Find all posts by this user Quote this message in a reply
geri1590 Offline
Junior Member
*

Posts: 43
Joined: Dec 2008
Reputation: 1
Post: #9
RE: redirect subdomain to local ip server
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!
03-04-2009 11:42 PM
Find all posts by this user Quote this message in a reply
darkrunner Offline
Junior Member
*

Posts: 16
Joined: Nov 2007
Reputation: 0
Post: #10
RE: redirect subdomain to local ip server
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
03-05-2009 05:55 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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