• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

vhost.conf

P

PedstersPlanet

Guest
I need to use a vhost.conf for a domain (for a php_admin_flag setting), but when I create the vhost.conf file in

/var/www/vhosts/<domain>/conf/

and issue the

/usr/local/psa/admin/bin/websrvmng --reconfigure-vhost --vhost-name=<domain>

I see no

Include /var/www/vhosts/<domain-name>/conf/vhost.conf
in /var/www/vhosts/<domain-name>/conf/httpd.include

What is going on?
 
do

Code:
touch /var/www/vhosts/domain.com/conf/vhost.conf
nano -w /var/www/vhosts/domain.com/conf/vhost.conf

place in it

Code:
<Directory /var/www/vhosts/domain.com/httpdocs>
php_value whatever whatever
</Directory>

Then run

Code:
/usr/local/psa/admin/bin/websrvmng -u --vhost-name=domain.com

restart apache
Code:
service httpd restart
 
Back
Top