Virtualmin cannot access re-enabled Virtual Server

Issue:

After disabling a website through disabling the virtual server in Virtualmin, then re-enabled the virtual server, there’s error in accessing the website with error log:

AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.

Solution:

  1. Back to Virtualmin, select the problem web server
  2. Choose Server Configuration -> Website Redirects
  3. Delete the URL Path: ^/, and just leave /dav (if exist)

Tricks:

Most forums suggest editing .htaccess file in the root html directory, but it does not help

The main reason for such error is that the permission/ownership of public_html excluded the user of the specific virtual server, in my case, the ownership of the directory was set as “apache:apache”, and it created the problem that virtualmin could not create a file called disabled_by_virtualmin.html. Action point 3 of the Solution above can solve this issue just once, changing the ownership of the directory, public_html to “[web server user]:apache” can cure the issue for good.

Config:

  • CentOS        7.2.1511
  • Virtualmin    5.04
Close Menu