V
vixiom
Guest
Hi,
I'm trying to change the root directory of a subdomain so I can install a cakephp app in that subdomain. With a vhost.conf file I can get it to work on a top level domain just not with a subdomain.
With a top level domain I create a vhost.conf file like this...
# start vhost.conf
DocumentRoot /home/httpd/vhosts/domain.com/httpdocs/app/webroot/
<Directory /home/httpd/vhosts/domain.com/httpdocs/app/webroot/>
php_admin_value safe_mode 0
php_admin_value open_basedir
"/home/httpd/vhosts/domain.com/httpdocs:/tmp:/usr/share/pear"
# options
Options Indexes ExecCGI FollowSymLinks MultiViews
AddHandler cgi-script .cgi
# .htaccess so cake's urls work properly
AllowOverride all
Order allow,deny
Allow from all
</Directory>
# end vhost.conf
and then % /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
to apply the changes. I tried making a vhost.conf in my subdomain's conf directory but that doesn't seem to do anything.
thanks
I'm trying to change the root directory of a subdomain so I can install a cakephp app in that subdomain. With a vhost.conf file I can get it to work on a top level domain just not with a subdomain.
With a top level domain I create a vhost.conf file like this...
# start vhost.conf
DocumentRoot /home/httpd/vhosts/domain.com/httpdocs/app/webroot/
<Directory /home/httpd/vhosts/domain.com/httpdocs/app/webroot/>
php_admin_value safe_mode 0
php_admin_value open_basedir
"/home/httpd/vhosts/domain.com/httpdocs:/tmp:/usr/share/pear"
# options
Options Indexes ExecCGI FollowSymLinks MultiViews
AddHandler cgi-script .cgi
# .htaccess so cake's urls work properly
AllowOverride all
Order allow,deny
Allow from all
</Directory>
# end vhost.conf
and then % /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
to apply the changes. I tried making a vhost.conf in my subdomain's conf directory but that doesn't seem to do anything.
thanks