Current time: 12-24-2024, 01:47 AM Hello There, Guest! (LoginRegister)


Post Reply 
ispcp "custom" virtualhost and NameVirtualHost
Author Message
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #1
ispcp "custom" virtualhost and NameVirtualHost
Hey! I was just wondering... Where is the "template" that ispcp builds apache's virtualhosts?

On some ubuntu ispcp server I would like to have added virtualhosts as
*:80 and ufcorse NameVirtualHost as *:80

I was changing /root/ispcp-omega-1.0.5/configs/ubuntu/apache/parts/*_entry.tpl

files and manually wrote *:80 for each virtualhost/namevirtualhost, restarted daemon, but hosts are stil generated as SOME_IP:80 and
NameVirtualHost SOME_IP:80

Any idea?
04-07-2010 12:32 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: ispcp "custom" virtualhost and NameVirtualHost
Please Post the nextime into the correct Forum Wink

=> moved
04-07-2010 12:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #3
RE: ispcp "custom" virtualhost and NameVirtualHost
Sorry, noticed Smile Any solution yet?
04-07-2010 12:48 AM
Find all posts by this user Quote this message in a reply
Jadawin Offline
Junior Member
*

Posts: 26
Joined: Nov 2009
Reputation: 0
Post: #4
RE: ispcp "custom" virtualhost and NameVirtualHost
(04-07-2010 12:32 AM)Boter Wrote:  I was changing /root/ispcp-omega-1.0.5/configs/ubuntu/apache/parts/*_entry.tpl

It would be more useful if you change the right configs Smile
/etc/ispcp/apache/parts/*_entry.tpl
(This post was last modified: 04-07-2010 02:59 AM by Jadawin.)
04-07-2010 02:59 AM
Find all posts by this user Quote this message in a reply
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #5
RE: ispcp "custom" virtualhost and NameVirtualHost
Hm, will check. Thanks!
Actually that don't work. Is there anything else to do? I edited /etc/ispcp/apache/parts/*_entry.tpl

I changed as I need, but no changes (when I add subdomain it still generates old configs), restarted apache and ispcp daemon.

Any idea?
(This post was last modified: 04-07-2010 03:57 AM by Boter.)
04-07-2010 02:59 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #6
RE: ispcp "custom" virtualhost and NameVirtualHost
If you update the templates, it should apply to newly added domains/subdomains, but if you are trying to update existing domains/subdomains, you'll need to rebuild your config (see the documentation section of the website).

You should be able to change /etc/ispcp/apache/parts/{dmn_entry.tpl, als_entry.tpl, sub_entry.tpl) to to for example:

<VirtualHost {DMN_IP}:80>

to

<VirtualHost *:80>


I don't fully understand why you want to do this though. Doing this removes the ability to seperate domains onto seperate IP's, which is something that is required for SSL sites for instance. Is this some work around in an attempt to do load balancing or something?

Also, if you manually update apache (or other) configs which are maintained by ispcp, you need to overwrite the "working" copy with your updated copy. Example here would be to update /etc/ispcp/apache/working/ispcp.conf if you change vhosts manually. Otherwise, your manual changes will be overwritten next time ispcp modifies the config file.
(This post was last modified: 04-07-2010 04:48 AM by pgentoo.)
04-07-2010 04:45 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)