Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the first example just rewrites everything to /public/, so when you configure nginx, just set the <code> root /path/to/public/<code>
- this is the second one that should be
- <code>
- rewrite ^/(.*)*$ /index.php break;
- </code>
- So all together, after server{ should look like;
- <code>
- location / {
- root /path/to/public;
- rewrite ^/(.*)*$ /index.php break;
- location ~* ^.+\.(jpg|jpeg|gif|css|js)$ {
- root /path/to/public;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement