ispCP - Board - Support
Can't add domain alias! - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: Can't add domain alias! (/thread-7454.html)



Can't add domain alias! - tuxStyle - 08-11-2009 05:45 AM

I'm trying to create some aliases for my subdomains and i get this error:
Code:
Domain with that name already exists on the system!

I checked domain_aliasses and subdomain_alias in mysql but i can't find any entries with the same name.

What should i change and where?

EDIT: i already searched the forums and the 3 results i get are in German Smile so, i have no idea what's there.


RE: Can't add domain alias! - BeNe - 08-11-2009 05:55 AM

Did you enter this domain at the setup ?

Greez BeNe


RE: Can't add domain alias! - tuxStyle - 08-11-2009 06:01 AM

I created a new user:
bits.activestyle.ca

And now i want to add an alias:
files.activestyle.ca to point in the same place.
Is not working.
It doesn't matter what i enter in the alias field, i get everytime the same error.
I managed to create the alias from the reseller account (why can't i add an alias from the user account?).

files.activestyle.ca is alias for bits.activestyle.ca and moutn point is /

The problem: when i go to http://files.activestyle.ca/ the page from http://activestyle.ca/ is loaded not http://bits.activestyle.ca/

What i'm doing wrong?
And why i can't create aliases as user?

Later edit: something is definitely wrong.
Now http://bits.activestyle.ca/ points to http://activestyle.ca/

Is a bug somewhere Smile
Who can help me find it?

Another EDIT:

I regenerated the config files, http://bits.activestyle.ca/ is working but http://files.activestyle.ca/ still points to the wrong page.

I don't get it...
When i installed ispCP in may (from SVN) everything worked flawlessly ... now i have lot of issues Sad


RE: Can't add domain alias! - tuxStyle - 08-11-2009 10:18 AM

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