Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th May 2010, 14:45
edi00 edi00 is offline
Member
 
Join Date: May 2010
Posts: 41
Thanks: 7
Thanked 0 Times in 0 Posts
Default The "default" site is usles in in the ISPConfig 3

The Ubuntu provides the "default" site folder in /etc/apache2/sites-available to be used as a template for other sites.

However, if I add my "mod_perl2" configuration the ISPC3 will ignore such manual addition so I must manually add my changes to new site.

Furthermore, if I want to update my site via the ISPC3 it will erase all my manual changes and ISPC3 will create its own default..... no good!

Is there any way how to work around this problem?
Reply With Quote
Sponsored Links
  #2  
Old 29th May 2010, 15:39
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,458
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

No need to work around anything, you just changed the wrong files. For example the default site in ubuntu is just the default site, it is there if no specific vhost is created, it is not a template for any other site.

Also never edit any vhost file manually. They are not made for manual edits. There are 2 easy methods for adding custom configuration for a vhost:

a) Add your custom code in the apache directives field of the website.
b) If a setting shall be changed for all new sites, then change the vhost template in /usr/local/ispconfig/server/conf/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 29th May 2010, 17:04
edi00 edi00 is offline
Member
 
Join Date: May 2010
Posts: 41
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
a) Add your custom code in the apache directives field of the website.
b) If a setting shall be changed for all new sites, then change the vhost template in /usr/local/ispconfig/server/conf/
Can you be little bit more specific?... please.

I wan to make changes to all sites which I create..... which file should I modify "vhost.conf.master"?... and how?
Lets say I want to add this:
Code:
#mod-perl
Alias  /perl/ /var/www/clients/client1/web4/perl/
<Directory /var/www/clients/client1/web4/perl>
    Order allow,deny
    Allow from all
</Directory>

# the /clients/client1/web4 are variable based on site.
# and /perl should create directory
Also please show the apache directives used in the website in which file they should be used.
Thanks.

Last edited by edi00; 29th May 2010 at 17:06.
Reply With Quote
  #4  
Old 29th May 2010, 17:38
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,458
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
Default

As I explained, there are two options.

a) Post the code from your above post in the apache directives field. Thats all.

or b) Modify the vhost.conf.master file and add it there. Instead of setting a fixed path /var/www/clients/client1/web4, use one of the placeholder variables, in this case:

{tmpl_var name='document_root'}
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 29th May 2010, 17:42
edi00 edi00 is offline
Member
 
Join Date: May 2010
Posts: 41
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
As I explained, there are two options.

a) Post the code from your above post in the apache directives field. Thats all.

or b) Modify the vhost.conf.master file and add it there. Instead of setting a fixed path /var/www/clients/client1/web4, use one of the placeholder variables, in this case:

{tmpl_var name='document_root'}
Got the b) but unclear on a) The "apache directives field" where?... which file vhost?
Reply With Quote
  #6  
Old 29th May 2010, 17:55
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,458
Thanks: 813
Thanked 5,240 Times in 4,108 Posts
 
Default

Quote:
Originally Posted by edi00 View Post
Got the b) but unclear on a) The "apache directives field" where?... which file vhost?
no file. the apache directives field is on the options tab of the website settings in the ispconfig interface.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
edi00 (29th May 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 installed on Debian Lenny... and now... how to create a site? manarak General 6 19th May 2009 16:34
ISPConfig installation into multiple OpenVZ containers letezo Installation/Configuration 11 3rd March 2009 22:47
added site but ispconfig doesnt created a dir dr_dbox General 6 26th June 2008 14:25
ISPConfig administration site caching images satyannair Installation/Configuration 4 8th April 2008 15:37
site works but ISPConfig login gone? Boon-Dog-Danny Installation/Configuration 6 4th August 2006 13:01


All times are GMT +2. The time now is 08:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.