Current time: 11-15-2024, 11:08 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: #1
Can't add domain alias!
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.
(This post was last modified: 08-11-2009 05:47 AM by tuxStyle.)
08-11-2009 05:45 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Can't add domain alias!
Did you enter this domain at the setup ?

Greez BeNe
08-11-2009 05:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
tuxStyle Offline
Junior Member
*

Posts: 37
Joined: May 2009
Reputation: 0
Post: #3
RE: Can't add domain alias!
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
(This post was last modified: 08-11-2009 07:13 AM by tuxStyle.)
08-11-2009 06:01 AM
Find all posts by this user Quote this message in a reply
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 


Forum Jump:


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