• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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