Current time: 05-21-2024, 10:53 PM Hello There, Guest! (LoginRegister)


Post Reply 
Can't add domain alias!
Author Message
tuxStyle Offline
Junior Member
*

Posts: 37
Joined: May 2009
Reputation: 0
Post: #4
RE: Can't add domain alias!
Ok, if anyone is interested i think i found why and the fix.

Why?
/etc/ispcp/apache/parts/dmn_entry.tpl has:
Code:
ServerAlias     www.{DMN_NAME} {DMN_NAME} *.{DMN_NAME} {SUEXEC_USER}.{BASE_SERVER_VHOST}

Note: *.{DMN_NAME}

When an alias is created, it is added at the end of /etc/apache2/sites-available/ispcp.conf (all aliases are at the end i assume)

This is wrong (i think) because the virtual host will match *.domain.com and won't reach the definition for the alias.

Even if the config are regenerated, the aliases remain at the end of ispcp.conf.

The aliases should be after the subdomains in ispcp.conf.

The fix? Remove *.{DMN_NAME} from template (which is not a good idea i think but it works for me) or wait for the devs to fix it Smile
08-11-2009 10:18 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Can't add domain alias! - tuxStyle - 08-11-2009, 05:45 AM
RE: Can't add domain alias! - BeNe - 08-11-2009, 05:55 AM
RE: Can't add domain alias! - tuxStyle - 08-11-2009, 06:01 AM
RE: Can't add domain alias! - tuxStyle - 08-11-2009 10:18 AM

Forum Jump:


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