Newer
Older
################################################
# ISPConfig General Apache Options
################################################
ServerTokens ProductOnly
ServerSignature Off
<tmpl_if name='apache_version' op='>=' value='2.4' format='version'>
<IfModule mod_ssl.c>
SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>
</tmpl_if>
################################################
# ISPConfig Logfile configuration for vlogger
################################################
<tmpl_if name='apache_version' op='>=' value='2.5' format='version'>
LogFormat '%v %h %l %u %t "%r" %>s %S "%{Referer}i" "%{User-Agent}i"' combined_ispconfig
<tmpl_else>
Daniel Jagszent
committed
LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
<tmpl_if name='logging' op='==' value='anon'>
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -p -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig env=!dontlog
</tmpl_if>
<tmpl_if name='logging' op='==' value='yes'>
Daniel Jagszent
committed
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig env=!dontlog
<Directory /var/www/clients>
AllowOverride None
</Directory>
# Do not allow access to the root file system of the server for security reasons
<Directory />
</Directory>
<Directory /var/www/conf>
AllowOverride None
</Directory>
# Except of the following directories that contain website scripts
<Directory /usr/share/phpmyadmin>
</Directory>
<Directory /usr/share/phpMyAdmin>
</Directory>
<Directory /srv/www/htdocs>
</Directory>
<Directory /usr/share/squirrelmail>
</Directory>
# Allow access to mailman on OpenSuSE
<Directory /usr/lib/mailman/cgi-bin>
</Directory>
<Directory /usr/lib/mailman/icons>
</Directory>
<Directory /var/lib/mailman/archives/>
Options +FollowSymLinks
# allow path to awstats and alias for awstats icons
<Directory /usr/share/awstats>
Daniel Jagszent
committed
Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-known/acme-challenge
<Directory /usr/local/ispconfig/interface/acme/.well-known/acme-challenge>
<IfModule mpm_itk_module>
AssignUserId www-data www-data
</IfModule>