mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
Create suphp.stpl
This commit is contained in:
parent
e33da7cb1f
commit
b6940a900c
1 changed files with 42 additions and 0 deletions
42
install/rhel/templates/web/httpd/suphp.stpl
Normal file
42
install/rhel/templates/web/httpd/suphp.stpl
Normal file
|
@ -0,0 +1,42 @@
|
|||
<VirtualHost %ip%:%web_ssl_port%>
|
||||
|
||||
ServerName %domain_idn%
|
||||
%alias_string%
|
||||
ServerAdmin %email%
|
||||
DocumentRoot %docroot%
|
||||
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
||||
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
||||
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
||||
CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
|
||||
CustomLog /var/log/%web_system%/domains/%domain%.log combined
|
||||
ErrorLog /var/log/%web_system%/domains/%domain%.error.log
|
||||
SSLEngine on
|
||||
SSLVerifyClient none
|
||||
SSLCertificateFile %ssl_crt%
|
||||
SSLCertificateKeyFile %ssl_key%
|
||||
%ssl_ca_str%SSLCertificateChainFile %ssl_ca%
|
||||
|
||||
<IfModule itk.c>
|
||||
AssignUserID %user% %group%
|
||||
</IfModule>
|
||||
<IfModule !mod_ruid2.c>
|
||||
SuexecUserGroup %user% %group%
|
||||
</IfModule>
|
||||
# <IfModule mod_ruid2.c>
|
||||
# RMode config
|
||||
# RUidGid %user% %group%
|
||||
# RGroups apache
|
||||
# </IfModule>
|
||||
<Directory %sdocroot%>
|
||||
AllowOverride All
|
||||
SSLRequireSSL
|
||||
Options +Includes -Indexes
|
||||
suPHP_Engine ON
|
||||
suPHP_UserGroup %user% %group%
|
||||
</Directory>
|
||||
<Directory %home%/%user%/web/%domain%/stats>
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
Include /usr/local/vesta/data/users/%user%/conf/web/%web_system%.%domain%.conf*
|
||||
|
||||
</VirtualHost>
|
Loading…
Add table
Add a link
Reference in a new issue