# Important: A copy of this file exists in install/tpl/ folder.
# Edit both files when applying changes.

################################################
# ISPConfig General Apache Options
################################################
ServerTokens ProductOnly
ServerSignature Off
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm standard_index.html

################################################
# ISPConfig Logfile configuration for vlogger
################################################

SetEnvIf Request_URI "^/datalogstatus.php$" dontlog

LogFormat "%v %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig

<Directory /var/www/clients>
    AllowOverride None
		Require all denied
	</Directory>

# Do not allow access to the root file system of the server for security reasons
<Directory />
	Options -Indexes
    AllowOverride None
		Require all denied
	</Directory>

<Directory /var/www>
  Options -Indexes
</Directory>

<Directory /var/www/conf>
    AllowOverride None
		Require all denied
	</Directory>

# Except of the following directories that contain website scripts
<Directory /usr/share/phpmyadmin>
				Require all granted
		</Directory>

<Directory /usr/share/phpMyAdmin>
				Require all granted
		</Directory>

<Directory /srv/www/htdocs>
				Require all granted
		</Directory>

<Directory /usr/share/squirrelmail>
				Require all granted
		</Directory>

# Allow access to mailman on OpenSuSE
<Directory /usr/lib/mailman/cgi-bin>
				Require all granted
		</Directory>

<Directory /usr/lib/mailman/icons>
				Require all granted
		</Directory>

<Directory /var/lib/mailman/archives/>
        Options +FollowSymLinks
				Require all granted
		</Directory>

# allow path to awstats and alias for awstats icons
<Directory /usr/share/awstats>
				Require all granted
		</Directory>

Alias /awstats-icon "/usr/share/awstats/icon"


<IfModule mod_ssl.c>
  SSLStaplingCache shmcb:/var/run/ocsp(128000)
</IfModule>

<Directory /var/www/php-cgi-scripts>
  AllowOverride None
    Require all denied
  </Directory>

<Directory /var/www/php-fcgi-scripts>
  AllowOverride None
    Require all denied
  </Directory>
