2011-06-27 00:59:13 +03:00
|
|
|
<VirtualHost %ip%:%web_ssl_port%>
|
2011-06-14 00:22:25 +03:00
|
|
|
|
|
|
|
|
ServerName %domain_idn%
|
|
|
|
|
ServerAlias %alias_idn%
|
|
|
|
|
ServerAdmin %email%
|
|
|
|
|
DocumentRoot %docroot%
|
2011-07-29 10:23:34 +03:00
|
|
|
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
|
|
|
|
|
Alias /vstats/ %home%/%user%/web/%domain%/stats/
|
|
|
|
|
Alias /error/ %home%/%user%/web/%domain%/document_errors/
|
2011-06-14 00:22:25 +03:00
|
|
|
SuexecUserGroup %user% %group%
|
|
|
|
|
CustomLog /var/log/httpd/domains/%domain%.bytes bytes
|
|
|
|
|
CustomLog /var/log/httpd/domains/%domain%.log combined
|
2011-06-28 23:03:41 +03:00
|
|
|
%elog%ErrorLog /var/log/httpd/domains/%domain%.error.log
|
2011-06-14 00:22:25 +03:00
|
|
|
<Directory %docroot%>
|
|
|
|
|
AllowOverride AuthConfig FileInfo Indexes Limit
|
|
|
|
|
SSLRequireSSL
|
|
|
|
|
Options +Includes -Indexes +ExecCGI
|
2011-08-26 15:18:52 +03:00
|
|
|
php_admin_flag engine off
|
|
|
|
|
Action phpcgi-script /cgi-bin/php
|
|
|
|
|
AddHandler phpcgi-script .php
|
2011-06-14 00:22:25 +03:00
|
|
|
</Directory>
|
2011-07-29 10:23:34 +03:00
|
|
|
<Directory %home%/%user%/web/%domain%/stats>
|
2011-06-14 00:22:25 +03:00
|
|
|
AllowOverride All
|
|
|
|
|
</Directory>
|
2011-07-29 10:23:34 +03:00
|
|
|
php_admin_value open_basedir %home%/%user%/web:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp
|
2011-06-14 00:22:25 +03:00
|
|
|
SSLEngine on
|
|
|
|
|
SSLVerifyClient none
|
|
|
|
|
SSLCertificateFile %ssl_cert%
|
|
|
|
|
SSLCertificateKeyFile %ssl_key%
|
|
|
|
|
|
2011-08-11 23:22:16 +03:00
|
|
|
Include %home%/%user%/conf/shttpd.%domain%.conf*
|
2011-06-15 01:11:06 +03:00
|
|
|
|
2011-06-14 00:22:25 +03:00
|
|
|
</VirtualHost>
|
|
|
|
|
|