<Directory /var/www/edi.redsoft.cz>
		AllowOverride None
				Require all granted
		</Directory>

<VirtualHost *:80>
					DocumentRoot /var/www/clients/client2/web29/web
			
		ServerName edi.redsoft.cz
		ServerAdmin webmaster@edi.redsoft.cz

		ErrorLog /var/log/ispconfig/httpd/edi.redsoft.cz/error.log


		<IfModule mod_ssl.c>
		</IfModule>

		<Directory /var/www/edi.redsoft.cz/web>
				# Clear PHP settings of this website
				<FilesMatch ".+\.ph(p[345]?|t|tml)$">
						SetHandler None
				</FilesMatch>
				Options +FollowSymLinks
				AllowOverride All
								Require all granted
						</Directory>
		<Directory /var/www/clients/client2/web29/web>
				# Clear PHP settings of this website
				<FilesMatch ".+\.ph(p[345]?|t|tml)$">
						SetHandler None
				</FilesMatch>
				Options +FollowSymLinks
				AllowOverride All
								Require all granted
						</Directory>




		# suexec enabled
		<IfModule mod_suexec.c>
			SuexecUserGroup web29 client2
		</IfModule>
		<IfModule mod_fastcgi.c>
				<Directory /var/www/clients/client2/web29/cgi-bin>
										Require all granted
								    </Directory>
				<Directory /var/www/edi.redsoft.cz/web>
					<FilesMatch "\.php[345]?$">
						SetHandler php5-fcgi
					</FilesMatch>
				</Directory>
				<Directory /var/www/clients/client2/web29/web>
					<FilesMatch "\.php[345]?$">
						SetHandler php5-fcgi
					</FilesMatch>
				</Directory>
                Action php5-fcgi /php5-fcgi
				Alias /php5-fcgi /var/www/clients/client2/web29/cgi-bin/php5-fcgi-*-80-edi.redsoft.cz
                FastCgiExternalServer /var/www/clients/client2/web29/cgi-bin/php5-fcgi-*-80-edi.redsoft.cz -idle-timeout 300 -host 127.0.0.1:9038 -pass-header Authorization
		</IfModule>
		<IfModule mod_proxy_fcgi.c>
			ProxyPassMatch ^/(.*\.php[345]?(/.*)?)$ fcgi://127.0.0.1:9038/var/www/clients/client2/web29/web/$1
		</IfModule>


		# add support for apache mpm_itk
		<IfModule mpm_itk_module>
			AssignUserId web29 client2
		</IfModule>

		<IfModule mod_dav_fs.c>
		# Do not execute PHP files in webdav directory
			<Directory /var/www/clients/client2/web29/webdav>
				<ifModule mod_security2.c>
					SecRuleRemoveById 960015
					SecRuleRemoveById 960032
				</ifModule>
				<FilesMatch "\.ph(p3?|tml)$">
					SetHandler None
				</FilesMatch>
			</Directory>
			DavLockDB /var/www/clients/client2/web29/tmp/DavLock
			# DO NOT REMOVE THE COMMENTS!
			# IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
      # WEBDAV BEGIN
			# WEBDAV END
		</IfModule>


#RewriteEngine on
#RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent]
</VirtualHost>
