Remove Plesk default host from Apache conf in opensuse

Yesterday, I struggled with a problem on my virtual server that Plesk automatically sets /srv/www/vhosts/default/htdocs as the htdocs directory of the Apache.

Anyway, the greatest advantage of the Apache configuration of opensuse is its biggest problem: everything is set up very modularly. There are many things you can edit and install with yast and there are many that you can not. The point is that you will have to decide at one point if you tweak a setting manually and give up searching on Google for the appropriate solution with yast or some rpm manager or whatever the best solution should be.

Then you will haveto start searching in the VERY modularly set up apache config directory /etc/apache2/.

I could solve my problem by deleting the file /etc/apache2/conf.d/zz010_psa_httpd.conf. Files from this directory are included automatically in the file /etc/apache2/default-server.conf into the Apache configuration by the directive
Include /etc/apache2/conf.d/*.conf

/etc/apache2/default-server.conf itself is included into the main config file httpd.conf of Apache by the directive
Include /etc/apache2/default-server.conf

Phew…

Posted in apache, Plesk, Uncategorized Tagged with: apache, Plesk
  • Christian Ruocco

    Dude i could kiss you. I was batting to understand why this f*cking Plesk kept coming up instead of my VH! I was ready to smash my Mac! Thank you SO MUCH! PS: This was under Ubuntu, preinstalled on a Host.de virtual server.