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

[documentation request] NGINX rewrite rule #142

Closed
panique opened this issue Nov 9, 2014 · 4 comments · Fixed by #179
Closed

[documentation request] NGINX rewrite rule #142

panique opened this issue Nov 9, 2014 · 4 comments · Fixed by #179

Comments

@panique
Copy link
Owner

panique commented Nov 9, 2014

Heyyy,

if somebody is running MINI on nginx, could you please post your nginx rewrite rules ? Please note that index.php is now in /public folder, not in root folder anymore.

FYI: Rewrite-rules from the old php-mvc:
#55
#60

@panique
Copy link
Owner Author

panique commented Nov 12, 2014

Btw excellent nginx/iis guidelines here for Slim (note that slim uses the index.php in the root folder, not in /public):

https://github.com/codeguy/Slim

@iouxui
Copy link

iouxui commented Nov 27, 2014

I was taking a look at the same thing it just so happens :).

The only issue I'm facing right now is that I can't see the output from the debugging on lines 93, 94 and 95 of /application/core/application.php. Nothing echo's out, so I can't see what's happening there.

Setting the index to public/ and using try_files is a step in the right direction. Data shows up, the URL's stay in the browser, just the content doesn't change as it should when the call is made.

I've been testing:

root /path/to/public;
# Linking the index root to where the public folder resides.

index index.php;

location / {
    try_files $uri $uri/ /index.php?$uri;
}

But I've not had any success just yet.

@panique
Copy link
Owner Author

panique commented Dec 11, 2014

btw interesting converter for htaccess: http://winginx.com/en/htaccess

@panique
Copy link
Owner Author

panique commented Dec 11, 2014

jeroenseegers added a commit to jeroenseegers/mini that referenced this issue Feb 25, 2015
Example nginx config added which can be used as contents of `/etc/nginx/sites-enabled/default`.

Closes panique#142 and panique#55.
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

Successfully merging a pull request may close this issue.

1 participant