Skip to content

Commit 687cc56

Browse files
committed
added mod_ruid2 template support
1 parent 4e732e1 commit 687cc56

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

data/templates/apache_default.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
3333
SSLVerifyClient none
3434
SSLCertificateFile %ssl_cert%
3535
SSLCertificateKeyFile %ssl_key%
36+
<IfModule mod_ruid2.c>
37+
RMode config
38+
RUidGid %user% %group%
39+
RGroups apache
40+
</IfModule>
3641

3742
Include %home%/%user%/conf/shttpd.%domain%.conf*
3843

data/templates/apache_default.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
AllowOverride All
2929
</Directory>
3030
php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp
31+
<IfModule mod_ruid2.c>
32+
RMode config
33+
RUidGid %user% %group%
34+
RGroups apache
35+
</IfModule>
36+
3137
Include %home%/%user%/conf/httpd.%domain%.conf*
3238

3339
</VirtualHost>

data/templates/apache_unlim.stpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
SSLCertificateFile %ssl_cert%
3535
SSLCertificateKeyFile %ssl_key%
3636

37+
<IfModule mod_ruid2.c>
38+
RMode config
39+
RUidGid %user% %group%
40+
RGroups apache
41+
</IfModule>
42+
3743
Include %home%/%user%/conf/shttpd.%domain%.conf*
3844

3945
</VirtualHost>

data/templates/apache_unlim.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
AllowOverride All
2929
</Directory>
3030
php_admin_value open_basedir none
31+
32+
<IfModule mod_ruid2.c>
33+
RMode config
34+
RUidGid %user% %group%
35+
RGroups apache
36+
</IfModule>
37+
3138
Include %home%/%user%/conf/httpd.%domain%.conf*
3239

3340
</VirtualHost>

0 commit comments

Comments
 (0)