• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

How to include domain-specific Apache configuration directives into web server config

E

EmmanuelJ

Guest
I have checked the ressource for this but it doesnt work:
I have write:
I have replaced my real domain with mydmain.com
I would change the directory root for a subdomains http et https on the same documentroot for a subdomains

/var/www/vhosts/mydmain.com/subdomains/intranet/conf
[root@srv01 conf]# ls -al
total 24
drwxr-x--- 2 root psaserv 4096 Apr 26 15:31 .
drwxr-xr-x 7 root root 4096 Apr 26 13:48 ..
-rw-r--r-- 1 root root 559 Apr 26 15:19 vhost.conf
-rw-r--r-- 1 root root 223 Apr 26 13:33 vhost_ssl.conf

vhost_ssl.conf
DocumentRoot /var/www/vhosts/mydmain.com/subdomains/intranet/httpdocs/web


<Directory /var/www/vhosts/mydmain.com/subdomains/intranet/httpdocs/web>
php_admin_value open_basedir none
AllowOverride All
</Directory>

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=mydmain.com
/etc/init.d/httpd restart

but it' doesnt work I always have the defulat page, anybody knows why ?
thanks
 
I use that command:

~ /usr/local/psa/admin/bin/websrvmng -a -v

the httpd restart should not be necessary, the script does it (and that throws an error if your conf is not correct).
 
Back
Top