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 support - Add Rewrites rules #407

Closed
svenkatreddy opened this issue Apr 9, 2014 · 8 comments
Closed

Nginx support - Add Rewrites rules #407

svenkatreddy opened this issue Apr 9, 2014 · 8 comments

Comments

@svenkatreddy
Copy link

Can someone please add instructions to support for nginx server?

I personally used this project on apache and later i tried to move to nginx. i'm facing issues with rewrite rules.

Why nginx?
Apache has serious configuration issues especially for low memory boxes
nginx is super fast

Amount of work?
I'm not expert on nginx but i'm definitely sure, it is just couple of correct rewrite rules to make it work.

@svenkatreddy svenkatreddy changed the title Nginx Rewrites rules not supported Nginx support - Add Rewrites rules Apr 9, 2014
@panique
Copy link
Owner

panique commented Apr 9, 2014

[edit: closing this was accidential, ticket is now open again]

@panique panique closed this as completed Apr 9, 2014
@svenkatreddy
Copy link
Author

If not you, someone from community willl add support for nginx.
Simply closing down doesn't make it any better.
i'm not asking you to help me, i'm asking to help the project ( i was just describing the situation dude).
Please know facts about NGINX. (if someone could add support for nginx would make this repo much better and more useful)

@GrahamCampbell
Copy link
Contributor

@svenkatreddy
Copy link
Author

@GrahamCampbell I tried this if (!-e $request_filename){
rewrite ^/dist/(.+)$ index.php?url=$1 last;
}
it's not working
Any thoughts on this

@nerdalertdk
Copy link

this should work

add this to your server block

location / {
    try_files $uri $uri/ @rewrite;
}
location @rewrite {
    rewrite ^/(.*)$ /index.php?_url=/$1;
}

@kylemarimon
Copy link

Has anyone been able to get this working with Nginx?

@ghost
Copy link

ghost commented Apr 13, 2015

How do it with Nginx?

@panique panique reopened this Apr 13, 2015
@panique
Copy link
Owner

panique commented Apr 13, 2015

@ALL: Please dont post into this ticket, as it's extrmeely old! I really dont know how people land here, maybe via Google ?

Have a look here for the current nginx-ticket, also with a sexy solution:
#622

xoxo

@panique panique closed this as completed Apr 13, 2015
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

5 participants