Submitted by kingrst on Tue, 07/26/2011 - 00:11
I have noticed that when a user configures "Website Redirects" and then their account is disabled (Manually) that the AliasMatch line is added below any RedirectMatch lines that are used to redirect parts of the domain.
Instead the server should add the AliasMatch line that disables the Apache portion of the Virtual Host so that users get the disabled message instead of actually being redirected.
Example with 1 Website Redirect and account disabled:
RedirectMatch /(.)$ http://jsitconsulting.net AliasMatch ^/.$ /etc/webmin/virtual-server/disabledweb/13116484435940.html
Status:
Active
Comments
Submitted by JamieCameron on Tue, 07/26/2011 - 20:11 Comment #1
Thanks for pointing this out .. I'll look into fixing it for the next release.
Submitted by kingrst on Tue, 07/26/2011 - 21:52 Comment #2
Thanks Jamie!
Submitted by JamieCameron on Wed, 07/27/2011 - 19:25 Comment #3
Actually, your proposed fix won't work :-( It turns out that Apache always processes Redirects before Aliases, so the ordering in the config doesn't matter ...
Submitted by kingrst on Thu, 07/28/2011 - 08:12 Comment #4
Hmm, that stinks.
What if you do all the Redirecting in .htaccess and disabling in httpd.conf? Apache will always run what is in httpd.conf before .htaccess.
Submitted by JamieCameron on Thu, 07/28/2011 - 10:45 Comment #5
That would break if .htaccess files are disabled in the apache config though..
Submitted by kingrst on Thu, 07/28/2011 - 14:15 Comment #6
Make .htaccess and enabled requirement for Redirects?
I dunno, just ideas :p
Submitted by JamieCameron on Thu, 07/28/2011 - 14:47 Comment #7
Yeah, that might work ... I will look into this some more and see if there is another solution.