Return to Snippet

Revision: 10335
at December 20, 2008 06:07 by naehrstoff


Updated Code
ServerAlias www.childdomain.com
DocumentRoot /var/www/vhosts/parentdomain.com/httpdocs

### vhost.conf ###
<Directory /var/www/vhosts/parentdomain.com/httpdocs>
<IfModule sapi_apache2.c>
	php_admin_flag engine on
	php_admin_flag safe_mode on
	php_admin_value open_basedir "/var/www/vhosts/parentdomain.com/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
	php_admin_flag engine on
	php_admin_flag safe_mode on
	php_admin_value open_basedir "/var/www/vhosts/parentdomain.com/httpdocs:/tmp"
</IfModule>
	Options -Includes -ExecCGI
</Directory>

Revision: 10334
at December 19, 2008 14:27 by naehrstoff


Initial Code
1. Datei «vhost.conf» im Verzeichnis «%webroot%/conf/ machen
2. Dann den Befehl «/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domainname» ausführen


Im Beispiel auf dem Genotec VDS-Server der würmlibicker sieht das so aus:

ServerAlias www.awpschweiz.ch
DocumentRoot /var/www/vhosts/procal.ch/httpdocs

### vhost.conf ###
<Directory /var/www/vhosts/procal.ch/httpdocs>
<IfModule sapi_apache2.c>
	php_admin_flag engine on
	php_admin_flag safe_mode on
	php_admin_value open_basedir "/var/www/vhosts/procal.ch/httpdocs:/tmp"
</IfModule>
<IfModule mod_php5.c>
	php_admin_flag engine on
	php_admin_flag safe_mode on
	php_admin_value open_basedir "/var/www/vhosts/procal.ch/httpdocs:/tmp"
</IfModule>
	Options -Includes -ExecCGI
</Directory>
###

Und der Shell-Befehl so:
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=awpschweiz.ch

Initial URL

                                

Initial Description
1. Create file "vhost.conf" in "%webroot%/conf/ if it doesn't exist already
2. Update Plesk's configuration with "/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=childdomain.com"

Initial Title
Plesk vhost configuration

Initial Tags

                                

Initial Language
Other