A
ArchStanton
Guest
How to create a vhost.conf file in the skel directory for subdomains?
I'm creating a bunch of subdomains that I would like to be able to include php files from the parent domain. Of course open_basedir restriction is a problem. I am going to try using the skeletons to add a conf directory with a vhost.conf file to overcome this problem. Will the skel files work with the subdomains?
Does the @domain_name@ refer to the parent domain, or the subdomain? How would I create a conf file that would accomplish the following:
The following obviously would not work, but does anyone know something similar to this that would?
I'm creating a bunch of subdomains that I would like to be able to include php files from the parent domain. Of course open_basedir restriction is a problem. I am going to try using the skeletons to add a conf directory with a vhost.conf file to overcome this problem. Will the skel files work with the subdomains?
Does the @domain_name@ refer to the parent domain, or the subdomain? How would I create a conf file that would accomplish the following:
Code:
<Directory /home/httpd/vhosts/domain.com/subdomains/sub_name/httpdocs>
php_admin_value open_basedir "/home/httpd/vhosts/domain.com/httpdocs:/home/httpd/vhosts/domain.com/subdomains/sub_name/httpdocs:/tmp"
</Directory>
The following obviously would not work, but does anyone know something similar to this that would?
Code:
<Directory /home/httpd/vhosts/@domain_name@/subdomains/@sub_domain_name@/httpdocs>
php_admin_value open_basedir "/home/httpd/vhosts/@domain_name@/httpdocs:/home/httpd/vhosts/@domain_name@/subdomains/@sub_domain_name@/httpdocs:/tmp"
</Directory>