• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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