<VirtualHost *:85>
	ServerAdmin webmaster@localhost
	
	DocumentRoot /var/www/ikerg
	<Directory />
		Options FollowSymLinks
		AllowOverride None
	</Directory>
	<Directory /var/www/ikerg>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
	</Directory>

	#Maintenance page
	ErrorDocument 503 /maintenance.html
	ErrorDocument 502 /maintenance.html
	RewriteEngine on
	RewriteCond %{DOCUMENT_ROOT}/.maintenance -f
	RewriteCond %{REQUEST_FILENAME} !/maintenance(\.html|/.+)
	RewriteRule ^.*$    /maintenance.html [L]	
	
	#Potrzebne do poprawnego przetwarzania zapytan WMS
	AllowEncodedSlashes On

	ProxyPreserveHost On
	ProxyPassMatch   ^/(cgi-bin/mapserv.*|maintenance(\.html|/.+))$ !
	ProxyPass        / http://192.168.0.10:8181/ nocanon	
	ProxyPassReverse / http://192.168.0.10:8181/
	<Location />
		Order allow,deny
		Allow from all
	</Location>

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	ErrorLog /var/log/apache2/ikerg.error.log
	CustomLog /var/log/apache2/ikerg.access.log combined

</VirtualHost>