ispCP - Board - Support
subdomains not worked - 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: subdomains not worked (/thread-11298.html)



subdomains not worked - koffu - 08-03-2010 11:38 PM

Hello!
I have a problem with subdomains - all my queries to subdomain was captured by main domain. Main apache config has defined domain virtualhost and subdomain virtualhost, but in domain virtualhost was main problem -
Code:
ServerName      domain.com
ServerAlias     www.domain.com domain.com *.domain.com vu2004.127.0.0.1

Why developers was made this "feature", which is overlap all domain configuration???

BuildDate = 20100331
Version = 1.0.5 OMEGA
CodeName = Priamos


Is this possible bug? How to fix it in panel scripts, to make apache config normal?


RE: subdomains not worked - joximu - 08-04-2010 12:25 AM

normally the subdomains are listet after the domain sos there's no problem with the "VirtualAlias *.domain.com" but in some situations this may fail.

If you want to prevent all the *.domain.com entries in future, fix the tpl in /etc/ispcp/apache2/parts/* (there are several files - use grep to find the right ones...).

And to remove the entries: you either do a reconfig (status => change etc...) or remove the entries in ispcp.conf AND the working copy: /etc/ispcp/apache/working/ispcp.conf

/J


RE: subdomains not worked - koffu - 08-04-2010 01:42 AM

Thank you for reply, you save my time!
Also about /etc/ispcp/apache/working/ispcp.conf and status => change - how to completely regenerate apache ispcp configuration from scratch without using any info from /etc/ispcp/apache/working/ispcp.conf


RE: subdomains not worked - joximu - 08-04-2010 07:11 AM

??? I don't understand...

the working copy is the base for the next change - so if there is a change to be made by ispcp then the working copy is read, the changes are applied and the result is written to the original place (where the service reads is) and a copy is written to the working copy...

So, if you make manual changes on files which are controlled by ispcp then you have to also change the working copies....

Regenerate config: set the status of the domains to "change" and kick the request manager. this will rewrite the config for every domain - so if you have changed the templates then the new config should be as needed...

/J


RE: subdomains not worked - koffu - 09-14-2010 05:44 PM

where can I find template descriptions, which located in /etc/ispcp/apache/parts ?