vesta/data/templates/apache_unlim.tpl
2011-06-28 23:03:41 +03:00

35 lines
1.3 KiB
Smarty

<VirtualHost %ip%:%web_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 All
Options +Includes -Indexes +ExecCGI
php_admin_value upload_tmp_dir %home%/%user%/tmp
php_admin_value upload_max_filesize 60M
php_admin_value max_execution_time 60
php_admin_value post_max_size 60M
php_admin_value memory_limit 60M
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 none
Include %home%/%user%/conf/%domain%.httpd.*
</VirtualHost>