[SOLVED] Apache: Sites Enabled: 00_master.conf - 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: [SOLVED] Apache: Sites Enabled: 00_master.conf (/thread-3084.html) |
[SOLVED] Apache: Sites Enabled: 00_master.conf - HSorgYves - 04-19-2008 05:16 AM Dear, My settings are: ispCP running under ispCP.tld while tld is my main domain which also has http://www.tld and is managed by ispCP. As far as I understood, ispCP.tld is loaded by 00_master.conf while http://www.tld is by ispcp.conf. This means that when accessing the server via IP, then ispCP.tld will be displayed. Now my question: Is there any harm in changing the link to master.conf, which would mean that the file would be loaded after ispcp.conf? Thanks, Yves RE: Apache: Sites Enabled: 00_master.conf - joximu - 04-19-2008 07:51 AM try it. RE: Apache: Sites Enabled: 00_master.conf - HSorgYves - 04-20-2008 01:29 AM Doesn't work... :-( RE: Apache: Sites Enabled: 00_master.conf - joximu - 04-20-2008 03:19 AM So the answer is "no" :-))) If you don't wnat to have the ispcp site to be the default site, just write a onw vhost block in the 00_master - before! the ispcp... check with apache2 -S this will tell you which is the default vhost setting... RE: Apache: Sites Enabled: 00_master.conf - HSorgYves - 04-20-2008 07:56 AM I have been thinking to add a 00_default.conf; the result would be the same. But am I allowed to add the same vhost block in 00_default.conf/00_master.conf that is already present in ispcp.conf? Thanks, Yves RE: Apache: Sites Enabled: 00_master.conf - joximu - 04-20-2008 09:15 AM no, you should not add the same. But if you want one domain of ispcp.conf to be the default domain, add this block except for the lines ServerName and ServerAlias. Put only the line ServerName 123.45.67.89 (your IP) instead of the two... If this is loaded as first vhost then I think it's the default vhost... and points to the domain you want /J RE: Apache: Sites Enabled: 00_master.conf - HSorgYves - 04-20-2008 08:05 PM Thanks, Working fine this way. What about the first lines in ispcp.conf? Should I add them to 00_default.conf as well? Code: # Code: <IfModule mod_cband.c> RE: Apache: Sites Enabled: 00_master.conf - joximu - 04-20-2008 08:24 PM no - I think it's ok if they are there once. You could move your vhost block from 00_default to 00_master (before the master-vhost-block)... /J RE: Apache: Sites Enabled: 00_master.conf - HSorgYves - 04-21-2008 02:27 AM Yes that's true; but I prefer to keep things clear. 00_master is an ispCP file while 00_default is my own configuration to set the default domains. Some more information for others trying the same: You can set all IPs in one VirtualHost Block, simply use Code: <VirtualHost xxx.xxx.xxx.xxx:80 yyy.yyy.yyy.yyy:80> Best Regards, Yves |