Report this

What is the reason for this report?

Disable Virtualhosts with mpm_itk enabled

Posted on March 14, 2016
Ricky Cain

By Ricky Cain

Owner of CainTech Services LLC

So, I’ve enabled the mpm module as well mpm_itk so that each virtualhost runs as a different user. This works great, as one can imagine along with the security benefits. The problem, i’m having is this your able to a2ensite virtualhost config files as much as you want. However you cannot disable virtualhost config files because they aren’t owned by www-data/apache no longer.

Does anyone know the command to disable virtualhosts with the mpm_itk module enabled? It is not a simple a2disconf.

An example of commands used goes like this

a2disconf nen.com.conf

ERROR: Conf nen.com does not exist!

sudo a2disconf

Your choices are: charset localized-error-pages other-vhosts-access-log phpmyadmin security Which conf(s) do you want to disable (wildcards ok)?

sudo a2ensite nen.com.conf

Site nen.com already enabled



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Did you tryed with:

a2dissite webpage.com

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.