Sven A.
New Pleskian
So this is wrong? But how do I change this? If I change it by hand it will be changed back later from Plesk (at updates or so).
Code:
<IfModule mod_ssl.c>
<VirtualHost xx.xxx.xxx.xxx:7081 >
ServerName "mydomain.tld:443"
ServerAlias "www.mydomain.tld"
ServerAlias "ipv4.mydomain.tld"
ServerAdmin "[email protected]"
UseCanonicalName Off
DocumentRoot "/var/www/vhosts/mydomain.tld/httpdocs"
CustomLog /var/www/vhosts/system/mydomain.tld/logs/access_ssl_log plesklog
ErrorLog "/var/www/vhosts/system/mydomain.tld/logs/error_log"
<IfModule mod_suexec.c>
SuexecUserGroup "wdhgw" "psacln"
</IfModule>
<IfModule mod_userdir.c>
UserDir "/var/www/vhosts/mydomain.tld/web_users/*"
</IfModule>
<IfModule mod_sysenv.c>
SetSysEnv PP_VHOST_ID "5cb2a36a-c9eb-43d8-8e14-bc713f0f752d"
</IfModule>
ScriptAlias "/cgi-bin/" "/var/www/vhosts/mydomain.tld/httpdocs/cgi-bin/"
Alias "/plesk-stat" "/var/www/vhosts/system/mydomain.tld/statistics"
<Location /plesk-stat/>
Options +Indexes
</Location>
<Location /plesk-stat/logs/>
Require valid-user
</Location>
Alias /webstat /var/www/vhosts/system/mydomain.tld/statistics/webstat
Alias /webstat-ssl /var/www/vhosts/system/mydomain.tld/statistics/webstat-ssl
Alias /ftpstat /var/www/vhosts/system/mydomain.tld/statistics/ftpstat
Alias /anon_ftpstat /var/www/vhosts/system/mydomain.tld/statistics/anon_ftpstat
Alias /awstats-icon /usr/share/awstats/icon
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /opt/psa/var/certificates/cert-UI2T1H
SSLCACertificateFile /opt/psa/var/certificates/cert-9GmfWB
TimeOut 600
<Directory /var/www/vhosts/mydomain.tld/httpdocs>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
<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/mydomain.tld/php-fpm.sock|fcgi://127.0.0.1:9000
</Files>
</IfModule>
SSLRequireSSL
Options -Includes +ExecCGI
</Directory>
<Directory "/var/www/vhosts/system/mydomain.tld/statistics">
AuthType Basic
AuthName "Domainstatistiken"
AuthUserFile "/var/www/vhosts/system/mydomain.tld/pd/d..httpdocs@plesk-stat"
require valid-user
</Directory>
Alias /error_docs /var/www/vhosts/mydomain.tld/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
<IfModule mod_security2.c>
</IfModule>
</VirtualHost>
</IfModule>