#ATTENTION!
#
#DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
#SO ALL YOUR CHANGES WILL BE LOST THE NEXT TIME THE FILE IS GENERATED.
#IF YOU REQUIRE TO APPLY CUSTOM MODIFICATIONS, PERFORM THEM IN THE FOLLOWING FILES:
#/var/www/vhosts/system/admin77152779.localhost/conf/vhost.conf
#/var/www/vhosts/system/admin77152779.localhost/conf/vhost_ssl.conf
<IfModule mod_ssl.c>

	<VirtualHost 46.37.14.151:7081 >
		ServerName "admin77152779.localhost:443"
		ServerAlias "www.admin77152779.localhost"
		ServerAlias "ipv4.admin77152779.localhost"
		ServerAdmin "sales@ceb.it"
		UseCanonicalName Off

		DocumentRoot "/var/www/vhosts/admin77152779.localhost/httpdocs"
		CustomLog /var/www/vhosts/system/admin77152779.localhost/logs/access_ssl_log plesklog
		ErrorLog "/var/www/vhosts/system/admin77152779.localhost/logs/error_log"

		<IfModule mod_suexec.c>
			SuexecUserGroup "vb" "psacln"
		</IfModule>

		<IfModule mod_userdir.c>

			UserDir "/var/www/vhosts/admin77152779.localhost/web_users/*"
		</IfModule>

		<IfModule mod_sysenv.c>
			SetSysEnv PP_VHOST_ID "b1746dd9-3661-4c54-8328-738ff8150580"
		</IfModule>

		Alias "/plesk-stat" "/var/www/vhosts/system/admin77152779.localhost/statistics"
		<Location  /plesk-stat/>
			Options +Indexes
		</Location>
		<Location  /plesk-stat/logs/>
			Require valid-user
		</Location>
		Alias /webstat /var/www/vhosts/system/admin77152779.localhost/statistics/webstat
		Alias /webstat-ssl /var/www/vhosts/system/admin77152779.localhost/statistics/webstat-ssl
		Alias /ftpstat /var/www/vhosts/system/admin77152779.localhost/statistics/ftpstat
		Alias /anon_ftpstat /var/www/vhosts/system/admin77152779.localhost/statistics/anon_ftpstat
		Alias /awstats-icon /usr/share/awstats/icon

		SSLEngine on
		SSLVerifyClient none
		SSLCertificateFile /opt/psa/var/certificates/certWpPLaPv

		<Directory /var/www/vhosts/admin77152779.localhost/httpdocs>

			<IfModule mod_fcgid.c>
				<Files ~ (\.fcgi$)>
					SetHandler fcgid-script
					Options +ExecCGI
				</Files>
			</IfModule>
			<IfModule mod_proxy_fcgi.c>
				<Files ~ (\.php$)>
					SetHandler proxy:unix:///var/www/vhosts/system/admin77152779.localhost/php-fpm.sock|fcgi://127.0.0.1:9000
				</Files>
			</IfModule>

			SSLRequireSSL

			Options -Includes -ExecCGI

		</Directory>

		<Directory "/var/www/vhosts/system/admin77152779.localhost/statistics">
			AuthType Basic
			AuthName "Domain statistics"
			AuthUserFile "/var/www/vhosts/system/admin77152779.localhost/pd/d..httpdocs@plesk-stat"
			require valid-user
		</Directory>

		Alias /error_docs /var/www/vhosts/admin77152779.localhost/error_docs
		ErrorDocument 400 /error_docs/bad_request.html
		ErrorDocument 401 /error_docs/unauthorized.html
		ErrorDocument 403 /error_docs/forbidden.html
		ErrorDocument 404 /error_docs/not_found.html
		ErrorDocument 500 /error_docs/internal_server_error.html
		ErrorDocument 405 /error_docs/method_not_allowed.html
		ErrorDocument 406 /error_docs/not_acceptable.html
		ErrorDocument 407 /error_docs/proxy_authentication_required.html
		ErrorDocument 412 /error_docs/precondition_failed.html
		ErrorDocument 414 /error_docs/request_uri_too_long.html
		ErrorDocument 415 /error_docs/unsupported_media_type.html
		ErrorDocument 501 /error_docs/not_implemented.html
		ErrorDocument 502 /error_docs/bad_gateway.html
		ErrorDocument 503 /error_docs/maintenance.html

		IncludeOptional "/opt/psa/admin/conf/file_sharing.conf*"

		<Directory /var/www/vhosts/admin77152779.localhost>
			AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCGI,Includes,IncludesNOEXEC
		</Directory>

		#extension letsencrypt begin
		Alias /.well-known/acme-challenge "/var/www/vhosts/default/htdocs/.well-known/acme-challenge"

		<Location /.well-known/acme-challenge/>
			# Require all granted
			Order Deny,Allow
			Allow from all
			Satisfy any
		</Location>

		<LocationMatch "^/.well-known/acme-challenge/(.*/|)\.">
			# Require all denied
			Order Allow,Deny
			Deny from all
		</LocationMatch>
		#extension letsencrypt end
	</VirtualHost>

</IfModule>

<VirtualHost 46.37.14.151:7080 >
	ServerName "admin77152779.localhost:80"
	ServerAlias "www.admin77152779.localhost"
	ServerAlias "ipv4.admin77152779.localhost"
	ServerAdmin "sales@ceb.it"
	UseCanonicalName Off

	DocumentRoot "/var/www/vhosts/admin77152779.localhost/httpdocs"
	CustomLog /var/www/vhosts/system/admin77152779.localhost/logs/access_log plesklog
	ErrorLog "/var/www/vhosts/system/admin77152779.localhost/logs/error_log"

	<IfModule mod_suexec.c>
		SuexecUserGroup "vb" "psacln"
	</IfModule>

	<IfModule mod_userdir.c>

		UserDir "/var/www/vhosts/admin77152779.localhost/web_users/*"
	</IfModule>

	<IfModule mod_sysenv.c>
		SetSysEnv PP_VHOST_ID "b1746dd9-3661-4c54-8328-738ff8150580"
	</IfModule>

	Redirect permanent /plesk-stat https://admin77152779.localhost/plesk-stat
	Redirect permanent /webstat https://admin77152779.localhost/webstat
	Redirect permanent /webstat-ssl https://admin77152779.localhost/webstat-ssl
	Redirect permanent /ftpstat https://admin77152779.localhost/ftpstat
	Redirect permanent /anon_ftpstat https://admin77152779.localhost/anon_ftpstat
	Redirect permanent /awstats-icon https://admin77152779.localhost/awstats-icon

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

	<Directory /var/www/vhosts/admin77152779.localhost/httpdocs>

		<IfModule mod_fcgid.c>
			<Files ~ (\.fcgi$)>
				SetHandler fcgid-script
				Options +ExecCGI
			</Files>
		</IfModule>
		<IfModule mod_proxy_fcgi.c>
			<Files ~ (\.php$)>
				SetHandler proxy:unix:///var/www/vhosts/system/admin77152779.localhost/php-fpm.sock|fcgi://127.0.0.1:9000
			</Files>
		</IfModule>

		Options -Includes -ExecCGI

	</Directory>

	<Directory "/var/www/vhosts/system/admin77152779.localhost/statistics">
		AuthType Basic
		AuthName "Domain statistics"
		AuthUserFile "/var/www/vhosts/system/admin77152779.localhost/pd/d..httpdocs@plesk-stat"
		require valid-user
	</Directory>

	Alias /error_docs /var/www/vhosts/admin77152779.localhost/error_docs
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 401 /error_docs/unauthorized.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html
	ErrorDocument 405 /error_docs/method_not_allowed.html
	ErrorDocument 406 /error_docs/not_acceptable.html
	ErrorDocument 407 /error_docs/proxy_authentication_required.html
	ErrorDocument 412 /error_docs/precondition_failed.html
	ErrorDocument 414 /error_docs/request_uri_too_long.html
	ErrorDocument 415 /error_docs/unsupported_media_type.html
	ErrorDocument 501 /error_docs/not_implemented.html
	ErrorDocument 502 /error_docs/bad_gateway.html
	ErrorDocument 503 /error_docs/maintenance.html

	IncludeOptional "/opt/psa/admin/conf/file_sharing.conf*"

	<Directory /var/www/vhosts/admin77152779.localhost>
		AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCGI,Includes,IncludesNOEXEC
	</Directory>

	#extension letsencrypt begin
	Alias /.well-known/acme-challenge "/var/www/vhosts/default/htdocs/.well-known/acme-challenge"

	<Location /.well-known/acme-challenge/>
		# Require all granted
		Order Deny,Allow
		Allow from all
		Satisfy any
	</Location>

	<LocationMatch "^/.well-known/acme-challenge/(.*/|)\.">
		# Require all denied
		Order Allow,Deny
		Deny from all
	</LocationMatch>
	#extension letsencrypt end
</VirtualHost>