
NameVirtualHost 0.0.0.0:7080
NameVirtualHost [00000:000:000:000::0]:7080
NameVirtualHost 0.0.0.0:7080

NameVirtualHost 127.0.0.1:7080
NameVirtualHost 0.0.0.0:7081
NameVirtualHost [0000:000:000:000::2]:7081
NameVirtualHost 0.0.0.0:7081

NameVirtualHost 127.0.0.1:7081

ServerName "example.com"
ServerAdmin "srv@example.com"

DocumentRoot /tmp

<IfModule mod_logio.c>
	LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>
<IfModule !mod_logio.c>
	LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" plesklog
</IfModule>

TraceEnable off

ServerTokens ProductOnly

<Directory "/var/www/vhosts">
	AllowOverride "All"
	Options SymLinksIfOwnerMatch
	Order allow,deny
	Allow from all

	<IfModule sapi_apache2.c>
		php_admin_flag engine off
	</IfModule>

	<IfModule mod_php5.c>
		php_admin_flag engine off
	</IfModule>

</Directory>

<Directory "/usr/lib/mailman">
	AllowOverride "All"
	Options SymLinksIfOwnerMatch
	Order allow,deny
	Allow from all
	<IfModule sapi_apache2.c>
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine off
	</IfModule>
</Directory>

<IfModule mod_headers.c>
	Header add X-Powered-By PleskLin
</IfModule>

<IfModule mod_security2.c>
	SecRuleEngine DetectionOnly
	SecRequestBodyAccess On
	SecRequestBodyLimit 134217728
	SecResponseBodyAccess Off
	SecResponseBodyLimit 524288
	SecAuditEngine On
	SecAuditLog "/var/log/modsec_audit.log"
	SecAuditLogType serial
</IfModule>

#Include "/etc/httpd/conf/plesk.conf.d/ip_default/*.conf"

<VirtualHost \
	0.0.0.0:7080 \
	[00000:000:000:0000::2]:7080 \
	0.0.0.0:7080 \
	127.0.0.1:7080 \
	>
	ServerName "default"
	UseCanonicalName Off
	DocumentRoot /tmp
	ScriptAlias "/cgi-bin/" "/var/www/vhosts/default/cgi-bin"

	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>

	<Directory "/var/www/vhosts/default/cgi-bin">
		AllowOverride None
		Options None
		Order allow,deny
		Allow from all
	</Directory>

	<Directory "/var/www/vhosts/default/htdocs">

		<IfModule sapi_apache2.c>
			php_admin_flag engine on
		</IfModule>

		<IfModule mod_php5.c>
			php_admin_flag engine on
		</IfModule>

	</Directory>

</VirtualHost>

<IfModule mod_ssl.c>

	<VirtualHost \
		0.0.0.0:7081 \
		127.0.0.1:7081 \
		>
		ServerName "default-0_0_0_0"
		UseCanonicalName Off
		DocumentRoot /tmp
		ScriptAlias "/cgi-bin/" "/var/www/vhosts/default/cgi-bin"

		SSLEngine on
		SSLVerifyClient none
		SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem

		<Directory "/var/www/vhosts/default/cgi-bin">
			AllowOverride None
			Options None
			Order allow,deny
			Allow from all
		</Directory>

		<Directory "/var/www/vhosts/default/htdocs">

			<IfModule sapi_apache2.c>
				php_admin_flag engine on
			</IfModule>

			<IfModule mod_php5.c>
				php_admin_flag engine on
			</IfModule>

		</Directory>

	</VirtualHost>
	<VirtualHost \
		[00000:000:000:000::2]:7081 \
		127.0.0.1:7081 \
		>
		ServerName "default-0000_000_000_00000__2"
		UseCanonicalName Off
		DocumentRoot /tmp
		ScriptAlias "/cgi-bin/" "/var/www/vhosts/default/cgi-bin"

		SSLEngine on
		SSLVerifyClient none
		SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem

		<Directory "/var/www/vhosts/default/cgi-bin">
			AllowOverride None
			Options None
			Order allow,deny
			Allow from all
		</Directory>

		<Directory "/var/www/vhosts/default/htdocs">

			<IfModule sapi_apache2.c>
				php_admin_flag engine on
			</IfModule>

			<IfModule mod_php5.c>
				php_admin_flag engine on
			</IfModule>

		</Directory>

	</VirtualHost>
	<VirtualHost \
		0.0.0.0:7081 \
		127.0.0.1:7081 \
		>
		ServerName "default-0_0_0_0"
		UseCanonicalName Off
		DocumentRoot /tmp
		ScriptAlias "/cgi-bin/" "/var/www/vhosts/default/cgi-bin"

		SSLEngine on
		SSLVerifyClient none
		SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem

		#SSLCACertificateFile "/usr/local/psa/var/certificates/cert-nLy6Z1"

		<Directory "/var/www/vhosts/default/cgi-bin">
			AllowOverride None
			Options None
			Order allow,deny
			Allow from all
		</Directory>

		<Directory "/var/www/vhosts/default/htdocs">

			<IfModule sapi_apache2.c>
				php_admin_flag engine on
			</IfModule>

			<IfModule mod_php5.c>
				php_admin_flag engine on
			</IfModule>

		</Directory>

	</VirtualHost>

</IfModule>

<VirtualHost \
	0.0.0.0:7080 \
	[0000:000:000:000::2]:7080 \
	0.0.0.0:7080 \
	127.0.0.1:7080 \
	>
	DocumentRoot /tmp
	ServerName lists
	ServerAlias lists.*
	UseCanonicalName Off

	ScriptAlias "/mailman/" "/usr/lib/mailman/cgi-bin/"

	Alias "/icons/" "/var/www/icons/"
	Alias "/pipermail/" "/var/lib/mailman/archives/public/"

	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>

	<Directory "/var/lib/mailman/archives/">
		Options FollowSymLinks
		Order allow,deny
		Allow from all
	</Directory>

</VirtualHost>

<IfModule mod_ssl.c>
	<VirtualHost \
		0.0.0.0:7081 \
		[00000:000:000:0000::2]:7081 \
		0.0.0.0:7081 \
		127.0.0.1:7081 \
		>
		DocumentRoot /tmp
		ServerName lists
		ServerAlias lists.*
		UseCanonicalName Off

		ScriptAlias "/mailman/" "/usr/lib/mailman/cgi-bin/"

		Alias "/icons/" "/var/www/icons/"
		Alias "/pipermail/" "/var/lib/mailman/archives/public/"

		SSLEngine on
		SSLVerifyClient none
		SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem

		<Directory "/var/lib/mailman/archives/">
			Options FollowSymLinks
			Order allow,deny
			Allow from all
		</Directory>

	</VirtualHost>
</IfModule>

<IfModule mod_rpaf.c>
	RPAFproxy_ips 0.0.0.0 [00000:000:000:00000::2] 0.0.0.0
</IfModule>
<IfModule mod_rpaf-2.0.c>
	RPAFproxy_ips 0.0.0.0 [0000:000:000:0000::2] 0.0.0.0
</IfModule>
<IfModule mod_remoteip.c>
	RemoteIPInternalProxy 0.0.0.0 [0000:000:000:0000::2] 0.0.0.0
	RemoteIPHeader X-Forwarded-For
</IfModule>
