Überdauernde apache2 Änderungen in plesk

Customizable httpd.include per domain

In Plesk each domain has virtual hosts configuration stored in a separate file:

/var/www/vhosts/example.com/conf/httpd.include

Subdomain vhost.conf path:

/var/www/vhosts/example.com/subdomains/mysubdomain/conf/vhost.conf

This file is overwritten each time the virtual host configuration is changed, thus any manual alterations made to the file are discarded. To use custom directives or redefine those inserted by Plesk, you need to create the files vhost.conf and/or vhost_ssl.conf with necessary directives in the directory /home/httpd/vhosts/<domain-name>/conf/

If any (or both) of these files exist by the time the main configuration file is generated, Plesk inserts the appropriate directive Include /home/httpd/vhosts/example.com/conf/vhost.conf or Include /home/httpd/vhosts/example.com/conf/vhost_ssl.conf into the HTTP and/or HTTPS virtual host context respectively.

For security reasons, only root can create the vhost.conf and vhost_ssl.conf files.

For the changes to take effect, you need to run the following:

/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=guldener.net

Example-Code for editing open_basedir or safe_mode

<Directory /var/www/vhosts/example.com/subdomains/mysubdomain/httpdocs>
        php_admin_value open_basedir "/var/www/vhosts/example.com/subdomains/mysubdomain/httpdocs:/usr/bin/convert:/tmp"
        php_admin_value safe_mode 0
</Directory>

source:
ftp://download1.sw-soft.com/Plesk/Plesk7.1/Doc/html/plesk-7-reloaded-adm...
examples:
http://www.gadberry.com/aaron/2006/02/09/plesk_vhost/

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Sie können syntax highlighting von Quelltext aktivieren, indem Sie folgende Tags einsetzen: <code>, <blockcode> The supported tag styles are: <foo>, [foo]. PHP-Quelltext kann auch in "<?php ... ?>" oder "<% ... %>" eingepackt werden.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zeilen und Absätze werden automatisch erzeugt.
  • Sie dürfen andere Beitrage mit [quote] Tags Zitieren.

Weitere Informationen über Formatierungsoptionen

CAPTCHA
Diese Frage dient dazu festzustellen, ob Sie ein Mensch sind und um automatisierte SPAM-Beiträge zu verhindern.
Image CAPTCHA
Enter the characters shown in the image.
 

Too Cool for Internet Explorer