Red Hat Bugzilla – Bug 859799
Server status can be overwritten by .htaccess file
Last modified: 2015-05-14 18:59:45 EDT
Description of problem:
A php/perl application's status can be overwritten by .htaccess file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a php/perl application
2. In app's repo, touch .htaccess file in the index folder.
eg, for php cartridge
3. Add followings to .htaccess and git push
RewriteRule ^server-status$ - [R=404,L]
4. Check app's status from CLI, access app's website.
rhc app status -a $appname
Result returned from CLI:
Application 'php1' is either stopped or inaccessible
But website is accessible, .htaccess has overwritten app's status
Message returned from CLI should show app is running.
This bug is separated from bug 838783.
For python app, I can't reproduce.
There does not appear to be a way to prevent this in .htaccess without also just removing mod_rewrite. Leaving open for comment for a few days to collect feedback but intending to close with the status of "cantfix".