Question

I have an apache server configured with multiple NameVirtualHosts running on the same IP. This all works fine.

However, because of the "include conf.d/*" directive, apache also picks up config for cacti and phpmyadmin, which add in aliases for /cacti and /phpmyadmin, and those aliases appear to be valid for all virtualhosts. That is to say, I can go to http://firstvirtualhost/cacti and also http://secondvirtualhost/cacti, and I get the same page.

In my case, the default namevirtualhost is publicly visible, and I do not want tools like phpmyadmin or cacti to be visible under that URL

In fact, I don't want any random package to be able to make itself visible across all virtualhosts simply by creating a file for itself in conf.d.

Était-ce utile?

La solution

You have to delete the line include conf.d from the global Apache configuration file, and optionally add it to your own private virtual host configuration file.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top