Das geht doch ab Plesk 8 auch so, per klick auf Domains - "Domainname" - Setup oder meinst du etwas anderes ?
include /srv/www/vhosts/domain.de/conf/vhost.conf
<VirtualHost 111.222.333.444:80>
ServerName gallerie.domain.tld:80
SuexecUserGroup name psacln
ServerAdmin "mail@domain.tld"
DocumentRoot /srv/www/vhosts/domain.tld/subdomains/gallerie/httpdocs
CustomLog /srv/www/vhosts/domain.tld/statistics/logs/access_log plesklog
ErrorLog /srv/www/vhosts/domain.tld/statistics/logs/error_log
ScriptAlias /cgi-bin/ /srv/www/vhosts/domain.tld/subdomains/gallerie/cgi-bin/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /srv/www/vhosts/domain.tld/subdomains/gallerie/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule mod_perl.c>
<Files ~ (\.asp$)>
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/domain.tld/subdomains/gallerie/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir "/srv/www/vhosts/domain.tld/subdomains/gallerie/httpdocs:/tmp"
</IfModule>
<IfModule mod_python.c>
<Files ~ (\.py$)>
SetHandler python-program
PythonHandler mod_python.cgihandler
</Files>
</IfModule>
Options +Includes +ExecCGI
</Directory>
Alias "/error_docs" "/srv/www/vhosts/domain.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
</VirtualHost>
include /srv/www/vhosts/domain.de/conf/vhost.conf
include /srv/www/vhosts/domain.de/subdomains/subdomainname/conf/vhost.conf
/srv/www/vhosts/domain.tld/subdomains/subdomainname/conf/
<Directory srv/www/vhosts/domain.tld/subdomains/subdomainname/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag safe_mode off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag safe_mode off
</IfModule>
</Directory>
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domain.tld
/etc/init.d/apache2 reload
We use essential cookies to make this site work, and optional cookies to enhance your experience.