2012-05-15 15:51:43 +03:00
|
|
|
<VirtualHost %ip%:%web_ssl_port%>
|
|
|
|
|
|
|
|
|
|
ServerName %domain_idn%
|
|
|
|
|
%alias_string%
|
|
|
|
|
ServerAdmin %email%
|
2012-06-29 13:09:32 +03:00
|
|
|
DocumentRoot %sdocroot%
|
2012-05-15 15:51:43 +03:00
|
|
|
%cgi%ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
|
|
|
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
|
|
|
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
|
|
|
|
SuexecUserGroup %user% %group%
|
|
|
|
|
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
|
|
|
|
CustomLog /var/log/httpd/domains/%domain%.log combined
|
|
|
|
|
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
2012-06-29 13:09:32 +03:00
|
|
|
<Directory %sdocroot%>
|
2012-05-15 15:51:43 +03:00
|
|
|
AllowOverride AuthConfig FileInfo Indexes Limit
|
|
|
|
|
SSLRequireSSL
|
|
|
|
|
Options +Includes -Indexes %cgi_option%
|
|
|
|
|
php_admin_flag engine off
|
|
|
|
|
Action phpcgi-script /cgi-bin/php
|
|
|
|
|
AddHandler phpcgi-script .php
|
|
|
|
|
</Directory>
|
|
|
|
|
<Directory %home%/%user%/web/%domain%/stats>
|
|
|
|
|
AllowOverride All
|
|
|
|
|
</Directory>
|
|
|
|
|
php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp
|
|
|
|
|
SSLEngine on
|
|
|
|
|
SSLVerifyClient none
|
|
|
|
|
SSLCertificateFile %ssl_crt%
|
|
|
|
|
SSLCertificateKeyFile %ssl_key%
|
|
|
|
|
%ssl_ca_str%SSLCertificateChainFile %ssl_ca%
|
|
|
|
|
|
|
|
|
|
Include %home%/%user%/conf/shttpd.%domain%.conf*
|
|
|
|
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
|