Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include tip in README to disable Apache's handling of PHP files #17

Open
rdlugosz opened this issue Sep 12, 2011 · 0 comments
Open

Include tip in README to disable Apache's handling of PHP files #17

rdlugosz opened this issue Sep 12, 2011 · 0 comments

Comments

@rdlugosz
Copy link

It seems that Apache will preempt your Rails app and any associated redirects created with rack-rewrite if the PHP handler is enabled & the request url is for something like "/contact.php".

Not really an issue with rack-rewrite, but since redirecting php scripts is the first example use case in the readme, it seems worthwhile to mention that you need to include the following directive either in the VirtualHost section of httpd.conf or in an .htaccess file in the root of your app's public directory:

php_flag engine off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant