Current time: 11-22-2024, 07:58 PM Hello There, Guest! (LoginRegister)


Post Reply 
How to redirect nonexists domains?
Author Message
max.samael Offline
Junior Member
*

Posts: 50
Joined: Nov 2009
Reputation: 0
Post: #1
Question How to redirect nonexists domains?
I don't know if is this in good section, but my question:

How to redirect non exist subdomain *.sampledomain.tld to sampledomain.tld but not to hostingdomain.tld?

Is this setting for ispcp omega or something else?
Can somebody explain this setting?
07-24-2011 02:47 AM
Find all posts by this user Quote this message in a reply
freshwind Offline


Posts: 4
Joined: Mar 2010
Reputation: 0
Post: #2
RE: How to redirect nonexists domains?
Hi, Max

ISPCP seems not able to deal with such kind of wildcard DNS.
However you can edit those settings manually.

Step 1
Go to /etc/apache2/sites-enabled/ispcp.conf
Find the section for your domain, say "sampledomain.tld"
Change the line:
ServerAlias http://www.sampledomain.tld sampledomain.tld vu2002.hostingdomain.tld
to:
ServerAlias *.sampledomain.tld sampledomain.tld vu2002.hostingdomain.tld

Step 2
and what's more you have to change your DNS settings.
1)If you are using ispcp/bind, edit your domain's DNS records at /etc/ispcp/bind/working/sampledomain.tld.db
find line:
sampledomain.tld. IN A xxx.xxx.xxx.xxx
add one line underneath it:
*.sampledomain.tld. IN A xxx.xxx.xxx.xxx

2)If you are using a outside DNS server, just add a wildcard record to you server IP.

To prevent ISPCP updating those settings you also need to edit the records in the database. I'm not sure about this part, leave it to someone else.

Just offer an approach to solve your question, it is not realizable to do this for every client in a producing environment.
07-24-2011 05:00 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)