rethus
Registered User
Ich habe die Skeleton-Datei vhost.conf so verändert, dass automatisch der Zugriff von der Hauptdomain auf die Subdomains zulässig ist.
Nun möchte ich aber auch gerne, dass beim Anlegen der Subdomains die Subdomains auch Zugriff auf die Hauptdomain haben.
Derzeit erzeugt vhost.conf mit dem Befehl:
die folgende vhos.conf-Direktive:
Funktionieren tuts aber nur mit der verwendeten Subdomain!!!
Wie kann ich nun sicherstellen, dass beim Anlegen einer neuen Subdomain eine andere vhost.conf erzeugt wird, die folgenden Code erzeugt:
hauptdomain.de ist die Basis-Domain. adminbereich ist eine Subdomain.
Nun möchte ich aber auch gerne, dass beim Anlegen der Subdomains die Subdomains auch Zugriff auf die Hauptdomain haben.
Derzeit erzeugt vhost.conf mit dem Befehl:
PHP:
<Directory /var/www/vhosts/@domain_name@/httpdocs>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/@domain_name@/httpdocs:/var/www/vhosts/@domain_name@/subdomains:/tmp"
</IfModule>
</Directory>
die folgende vhos.conf-Direktive:
PHP:
<Directory /var/www/vhosts/hauptdomain.de/httpdocs>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/hauptdomain.de/httpdocs:/var/www/vhosts/hauptdomain.de/subdomains:/tmp"
</IfModule>
</Directory>
Funktionieren tuts aber nur mit der verwendeten Subdomain!!!
Wie kann ich nun sicherstellen, dass beim Anlegen einer neuen Subdomain eine andere vhost.conf erzeugt wird, die folgenden Code erzeugt:
PHP:
<Directory /var/www/vhosts/hauptdomain.de/subdomains/adminbereich/httpdocs>
<IfModule mod_php5.c>
php_admin_flag engine on
php_admin_value open_basedir "/var/www/vhosts/hauptdomain.de/httpdocs:/var/www/vhosts/hauptdomain.de/subdomains:/tmp"
</IfModule>
</Directory>
hauptdomain.de ist die Basis-Domain. adminbereich ist eine Subdomain.