In Hosting Control Panels, Hosting Guides

Overriding Apache settings for specific domains using a vhost.conf

Stefan Posted by

The best way to apply domain specific settings on a VPS/Dedicated server running Plesk is to use a vhost.conf file. Most settings in the php.ini file can be overwritten on a domain-by-domain basis using a vhost.conf file (which you’ll need to create).

If you want to set settings for http:

If you want to set settings for https:

An example entry you could place in a vhost.conf file to set register_long_arrays is:

After you finish editing the vhost.conf file run the following commands (as root) to make the vhost.conf take effect for the domain:

then:

And that’s it!

Stefan

Author Stefan

More posts by Stefan

Talk with one of our hosting experts today


Or call 0800 033 7074