• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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