Current time: 05-19-2024, 03:07 AM Hello There, Guest! (LoginRegister)


Post Reply 
Preview Website without DNS pointed
Author Message
dabvhcs Offline
Junior Member
*

Posts: 26
Joined: Mar 2007
Reputation: 0
Post: #5
RE: Preview Website without DNS pointed
(05-23-2009 05:11 AM)kilburn Wrote:  1. Backup everything
2. Edit /etc/ispcp/apache/parts/dmn_entry.tpl, replacing the ServerAlias directive with:
Code:
ServerAlias     www.{DMN_NAME} {DMN_NAME} *.{DMN_NAME} {DMN_NAME}.users.admin.hostsrvdomain.tld
3. Regenerate all domain's configurations (there's a howto in the docs)
4. Manually add a wildcard entry such that *.users.admin.hostsrvdomain.tld resolves to your IP. To do this, you have to edit /var/cache/bind/admin.hostsrvdomain.tld.db and /etc/ispcp/bind/working/admin.hostsrvdomain.tld.db, adding one line like:
Code:
*.users       IN  A        IP.OF.YOUR.SERVER
4. Restart apache and bind

Once done, you should be able to access the domain's web through http://customerdomain.tld.users.admin.ho...omain.tld/ , just as you asked for Smile

Thank you kilburn ! This is a smart solution which can also be apply for alias preview (and maybe for subdomain preview using *.*.users IN A IP.OF.YOUR.SERVER)
08-02-2009 09:22 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Preview Website without DNS pointed - ctct - 05-23-2009, 01:16 AM
RE: Preview Website without DNS pointed - dabvhcs - 08-02-2009 09:22 AM

Forum Jump:


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