How to manually configure Plesk Virtual Host httpd.conf
10 ene
As you may know Plesk rewrites every apache configuration file on server. But it let’s you add some virtual host configuration inside each host directory.
You have to create httpd.conf files inside these directories:
- Domains
- /var/www/vhosts/domain.com/conf/httpd.conf
- Subdomains
- /var/www/vhosts/domain.com/subdomains/subdomain.com/conf/httpd.conf
Then, once you have finished with configuration files, you must say Plesk to reload these configurations:
- Per domain
# /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com- Global
# /usr/local/psa/admin/sbin/websrvmng -a
It is really useful to add permissions, rewrites, svn, or anything you want.
