Plesk, subdomains and vhost.conf

I'm creating a script that will automatically create subdomains for users of a website. For that script, I want to use common files so that I only need to update one set of files in order to update all subdomains. I'm running into problems with open_basedir settings.

I've pasted the following code into my vhost.conf for the domain:

ServerName alin.directnovelty.com:80
SuexecUserGroup directnovelty psacln
DocumentRoot /home/httpd/vhosts/directnovelty.com/subdomains/alin/httpdocs
CustomLog /home/httpd/vhosts/directnovelty.com/statistics/logs/access_log combined
ErrorLog /home/httpd/vhosts/directnovelty.com/statistics/logs/error_log
ScriptAlias /cgi-bin/ /home/httpd/vhosts/directnovelty.com/subdomains/alin/cgi-bin/
Alias /webstat /home/httpd/vhosts/directnovelty.com/statistics/webstat/
Alias /ftpstat /home/httpd/vhosts/directnovelty.com/statistics/ftpstat/
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /home/httpd/vhosts/directnovelty.com/subdomains/alin/httpdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_value open_basedir "/home/httpd/vhosts/directnovelty.com/subdomains/alin/httpdocs:/tmp"
</IfModule>
Options -Includes +ExecCGI
</Directory>
Alias "/error_docs" "/home/httpd/vhosts/directnovelty.com/error_docs"
ErrorDocument 400 /error_docs/bad_request.html
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
ErrorDocument 500 /error_docs/internal_server_error.html

I copied the code above from the httpd.include file for the domain and adjusted the open_basedir restriction to allow me to continue development.

This allows me to access the common files for that particular subdomain, but not for any other subdomains. How can I make default settings for ALL subdomains? I think the only important setting is the open_basedir, but I could be wrong.

Any advice?

 

 

 

 

Top