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

Nginx seems to be sending files as directories to PHP #125

Open
mraymond opened this issue Apr 22, 2014 · 0 comments
Open

Nginx seems to be sending files as directories to PHP #125

mraymond opened this issue Apr 22, 2014 · 0 comments

Comments

@mraymond
Copy link
Contributor

I have Dokku set up and using this buildpack. Browsing to anyphpfile.php/anything/here will result in a 403 error, "Access Denied". I believe this is conflicting with trying to use this rewrite rule.

#Hardcoded URL since it tries to use a port
rewrite ^(.*)index.php(.*)$ http://urltoapp$2    permanent;

I can change it to this

rewrite ^(.*)anythingElse(.*)$ http://urltoapp$2    permanent;

and browsing to /anythingElse/test will redirect to /test.

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