
18th January 2010, 21:14
|
|
Senior Member
|
|
Join Date: Dec 2008
Posts: 112
Thanks: 5
Thanked 7 Times in 4 Posts
|
|
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?
|

19th January 2010, 00:38
|
|
Member
|
|
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
|
|
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.
|

19th January 2010, 01:11
|
|
Junior Member
|
|
Join Date: Jan 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
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.
|

19th January 2010, 05:58
|
|
Member
|
|
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
|
|
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
|

19th January 2010, 08:54
|
|
Senior Member
|
|
Join Date: Dec 2008
Posts: 112
Thanks: 5
Thanked 7 Times in 4 Posts
|
|
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...
|

19th January 2010, 11:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,193 Times in 3,211 Posts
|
|
Just add it in the apache directives field of the website in ispconfig and click on save. Or you modify the vhost maetr template.
|

19th January 2010, 11:22
|
|
Senior Member
|
|
Join Date: Dec 2008
Posts: 112
Thanks: 5
Thanked 7 Times in 4 Posts
|
|
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?
|

19th January 2010, 11:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,193 Times in 3,211 Posts
|
|
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.
|

20th January 2010, 04:02
|
|
Member
|
|
Join Date: May 2009
Location: Chattanooga, TN USA
Posts: 39
Thanks: 3
Thanked 1 Time in 1 Post
|
|
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.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:53.
|
|
Recent comments
19 hours 5 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 7 hours ago
1 day 15 hours ago
2 days 1 hour ago
2 days 1 hour ago
2 days 5 hours ago
2 days 9 hours ago
2 days 10 hours ago