0

We run multiple sites off one server using vhosts. On one Friday night, we found ourselves with an issue where we needed to kill outside access to all the sites. At the time, we found ourselves altering every vhosts config to kill outside access.

Is there a way to limit all sites running on vhosts to only be accessible from one IP (our office IP) without having to alter each of their configs?

2 Answers 2

0

Don't put your settings in a VirtualHost section. This way, they will be applicable to all Vhosts.

  • Settings in a VirtualHost section apply to the concerned Vhost.
  • Settings in the global section apply to all the vhosts.
0

Have each vhost include the same file which contains the blocking settings.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .