#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/mydomain.com/conf/vhost.conf
#/var/www/vhosts/system/mydomain.com/conf/vhost_ssl.conf
<IfModule mod_ssl.c>
<VirtualHost 111.111.111.111:443 >
ServerName "mydomain.com:443"
ServerAlias "
www.mydomain.com"
ServerAlias "ipv4.mydomain.com"
ServerAdmin "
[email protected]"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/mydomain.com/httpdocs"
CustomLog
/var/www/vhosts/system/mydomain.com/logs/access_ssl_log plesklog
ErrorLog
"/var/www/vhosts/system/mydomain.com/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "generalcourier" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir
"/var/www/vhosts/mydomain.com/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "59e97482-b25f-4e7b-bdb2-1bb3c4c9e4e0"
</IfModule>
Alias "/plesk-stat"
"/var/www/vhosts/system/mydomain.com/statistics"
<Location /plesk-stat/>
Options +Indexes </Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location> Alias /webstat
/var/www/vhosts/system/mydomain.com/statistics/webstat
Alias /webstat-ssl
/var/www/vhosts/system/mydomain.com/statistics/webstat-ssl
Alias /ftpstat
/var/www/vhosts/system/mydomain.com/statistics/ftpstat
Alias /anon_ftpstat
/var/www/vhosts/system/mydomain.com/statistics/anon_ftpstat
Alias /awstats-icon /usr/share/awstats/icon
SSLEngine on SSLVerifyClient none
SSLCertificateFile
/opt/psa/var/certificates/certD7ULavP
<IfModule mod_fcgid.c>
FcgidInitialEnv PP_CUSTOM_PHP_INI
/var/www/vhosts/system/mydomain.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php56-fastcgi
FcgidMaxRequestLen 134217728
</IfModule>
<Directory /var/www/vhosts/mydomain.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-
bin/cgi_wrapper/cgi_wrapper .php
Options +ExecCGI
</Files>
</IfModule>
SSLRequireSSL
Options -Includes -ExecCGI
</Directory>
<Directory
"/var/www/vhosts/system/mydomain.com/statistics">
AuthType Basic
AuthName "EstadÃsticas de dominio"
AuthUserFile
"/var/www/vhosts/system/mydomain.com/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs
/var/www/vhosts/mydomain.com/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
DirectoryIndex "index.html" "index.cgi" "index.pl"
"index.php" "index.xhtml" "index.htm" "index.shtml"
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www
\.generalcourier\.eu$ [NC]
RewriteRule ^(.*)$
https://mydomain.com$1
[L,R=301]
</IfModule>
<Directory /var/www/vhosts/mydomain.com>
AllowOverride AuthConfig FileInfo Indexes Limit
Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCG
I,Includes,IncludesNOEXEC
</Directory>
<IfModule mod_headers.c>
</IfModule>
</VirtualHost>
</IfModule>
<VirtualHost 111.111.111.111:80 >
ServerName "mydomain.com:80" ServerAlias
"
www.mydomain.com"
ServerAlias "ipv4.mydomain.com"
ServerAdmin "
[email protected]"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/mydomain.com/httpdocs"
CustomLog /var/www/vhosts/system/mydomain.com/logs/access_log
plesklog
ErrorLog "/var/www/vhosts/system/mydomain.com/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "generalcourier" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/mydomain.com/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "59e97482-b25f-4e7b-bdb2-
1bb3c4c9e4e0"
</IfModule>
Redirect permanent /plesk-stat
https://mydomain.com/plesk-
stat
Redirect permanent /webstat
https://mydomain.com/webstat
Redirect permanent /webstat-ssl
https://mydomain.com/webstat-ssl
Redirect permanent /ftpstat
https://mydomain.com/ftpstat
Redirect permanent /anon_ftpstat
https://mydomain.com/anon_ftpstat
Redirect permanent /awstats-icon
https://mydomain.com/awstats-icon
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<IfModule mod_fcgid.c> FcgidInitialEnv
PP_CUSTOM_PHP_INI /var/www/vhosts/system/mydomain.com/etc/php.ini
FcgidInitialEnv PP_CUSTOM_PHP_CGI_INDEX plesk-php56-
fastcgi
FcgidMaxRequestLen 134217728
</IfModule>
<Directory /var/www/vhosts/mydomain.com/httpdocs>
<IfModule mod_fcgid.c>
<Files ~ (\.fcgi$)>
SetHandler fcgid-script
Options +ExecCGI
</Files>
</IfModule>
<IfModule mod_fcgid.c>
<Files ~ (\.php$)>
SetHandler fcgid-script
FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
.php
Options +ExecCGI
</Files>
</IfModule>
Options -Includes -ExecCGI
</Directory>
<Directory "/var/www/vhosts/system/mydomain.com/statistics">
AuthType Basic
AuthName "EstadÃsticas de dominio"
AuthUserFile
"/var/www/vhosts/system/mydomain.com/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs /var/www/vhosts/mydomain.com/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
DirectoryIndex "index.html" "index.cgi" "index.pl"
"index.php" "index.xhtml" "index.htm" "index.shtml" <IfModule
mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.generalcourier\.eu$
[NC]
RewriteRule ^(.*)$
http://mydomain.com$1 [L,R=301]
</IfModule>
<Directory /var/www/vhosts/mydomain.com>
AllowOverride AuthConfig FileInfo Indexes Limit
Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCG
I,Includes,IncludesNOEXEC
</Directory>
<IfModule mod_headers.c>
</IfModule>
</VirtualHost>