#1  
Old 18th January 2010, 21:14
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default Custom entry in apache vhost

I need to enter custom stuff in an apache vhost config file....and need it to stay there. As you know ispconfig willr emove all custom modifications later on.

How can I do this?
Reply With Quote
Sponsored Links
  #2  
Old 19th January 2010, 00:38
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default

I have the same problem due to special actions for two web sites, hopefully there is a way where the information for a virtual host will not get over written. I thoutht there was a place for special directives in ISPConfig, but have not found as of yet.
Reply With Quote
  #3  
Old 19th January 2010, 01:11
aurasdoom aurasdoom is offline
Junior Member
 
Join Date: Jan 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can modify the vhost template if you want for every site:
/usr/lib (i think) /ispconfig3/server/conf/vhost.conf.master

Quote:
Originally Posted by Mr. Print View Post
I thoutht there was a place for special directives in ISPConfig, but have not found as of yet.
Off the top of my head, because my server is offline right now, go to Websites -> click on the website -> And in the last tab above the website details you find the custom apache directives.

Last edited by aurasdoom; 19th January 2010 at 01:15.
Reply With Quote
  #4  
Old 19th January 2010, 05:58
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
Default

aurasdoom, Really appreciate the reply. I'm using ISPConfig 2., However I found the vhost.conf.master
/root/ispconfig/

One more question. I have two web sites that run cgi scripts and Coldfusion in the web directory (I'm aware of the security issue, I didn't create the site) Where in this file would I add my changes such
<directory
my directive permissions
<directory
Here is my master
{FP_RESOURCE_CONFIG}
{FP_ACCESS_CONFIG}
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#

{SERVERIP}

#
#


######################################
# Vhost: {SERVERNAME}
######################################
#
#
<VirtualHost {IP}>
{HTTPD_INCLUDE}
{SUEXEC}
ServerName {SERVERNAME}
ServerAdmin {SERVERADMIN}
DocumentRoot {DOCUMENTROOT}
{SERVERALIAS}
{DIRECTORYINDEX}
{CGI}
ErrorLog {WEB_ERROR_LOG}
{PHP}
{RUBY}
{PYTHON}
{SSI}
{WAP}
{STATSALIAS}
{ERRORALIAS}
{ERROR}
AliasMatch ^/~([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? {HTTPD_ROOT}/{WEB}/user/$1/web/$3
{REWRITE_RULE}
{FRONTPAGE}
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</IfModule>
{WEBDAV}
</VirtualHost>
#
{SSL}

Thanks again for your reply
Reply With Quote
  #5  
Old 19th January 2010, 08:54
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default

I know I can enter apache directives via ispconfig 3, but that does not always work. The problem occures if you already have something in the vhost conf file and need to modify it.

I also modified the apache template but this does not help because I need specific conf file per site.

For example I already have following in all of my apache vhosts:

<IfModule mpm_itk_module>
AssignUserId web11 client7
</IfModule>


but I need to have:

<IfModule mpm_itk_module>
AssignUserId web11 client7
MaxClientsVHost 50
</IfModule>



or

<IfModule mpm_itk_module>
AssignUserId web11 client7
MaxClientsVHost 100
</IfModule>

depending on the site usage etc...
Reply With Quote
  #6  
Old 19th January 2010, 11:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

Just add it in the apache directives field of the website in ispconfig and click on save. Or you modify the vhost maetr template.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 19th January 2010, 11:22
grungy grungy is offline
Senior Member
 
Join Date: Dec 2008
Posts: 152
Thanks: 13
Thanked 14 Times in 9 Posts
Default

I can not use master template cuz I need specific settings per site.

If I add it via ispconfig other vhosts get messed up, I reported the bug. Any other way?
Reply With Quote
  #8  
Old 19th January 2010, 11:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,488
Thanks: 813
Thanked 5,259 Times in 4,123 Posts
Default

Quote:
If I add it via ispconfig other vhosts get messed up, I reported the bug. Any other way?
There is no such bug. All data that you enter in the apache directives field is copied exactly to the vhost. You just mixed up the order of your code as you modified the master template. If you want to override a setting from apache directieves field, the code in the master.cf that shall be overridden has to be before the place where the apache directives code is included.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 20th January 2010, 04:02
Mr. Print Mr. Print is offline
Member
 
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
 
Default

grungy,

I have solved the problem with special directory in conf (vhost) in your ISP Control Panel where settings are for web site you will see Apache Directives enter any special website specific directives within there and save. They will work for that specfic site only. Be very careful that your directive is correct. It will appear in Vhost_isponfig.conf at the beginning of the web site.

I hope this helps and is clear.
Reply With Quote
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
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 20:13
problems with suexec gobokster Installation/Configuration 7 7th May 2009 13:33
LDAP tree population error ehpmail Installation/Configuration 0 5th February 2009 22:40
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 02:28.


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