vesta/data/templates/apache_phpcgi.stpl
2011-06-28 23:03:41 +03:00

41 lines
1.5 KiB
Plaintext

<VirtualHost %ip%:%web_ssl_port%>
ServerName %domain_idn%
ServerAlias %alias_idn%
ServerAdmin %email%
DocumentRoot %docroot%
ScriptAlias /cgi-bin/ %home%/%user%/domains/%domain%/cgi-bin/
Alias /vstats/ %home%/%user%/domains/%domain%/stats/
Alias /error/ %home%/%user%/domains/%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
<Directory %docroot%>
AllowOverride AuthConfig FileInfo Indexes Limit
SSLRequireSSL
Options +Includes -Indexes +ExecCGI
php_admin_value upload_tmp_dir %home%/%user%/tmp
php_admin_value upload_max_filesize 10M
php_admin_value max_execution_time 20
php_admin_value post_max_size 8M
php_admin_value memory_limit 32M
php_admin_flag mysql.allow_persistent off
php_admin_flag safe_mode off
php_admin_value session.save_path %home%/%user%/tmp
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f %email%'
</Directory>
<Directory %home%/%user%/domains/%domain%/stats>
AllowOverride All
</Directory>
php_admin_value open_basedir %home%/%user%/domains:%home%/%user%/tmp:/bin:/usr/bin:/usr/local/bin:/var/www/html:/tmp
SSLEngine on
SSLVerifyClient none
SSLCertificateFile %ssl_cert%
SSLCertificateKeyFile %ssl_key%
Include %home%/%user%/conf/%domain%.shttpd.*
</VirtualHost>