Advertisement
Guest User

Untitled

a guest
Sep 25th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. the first example just rewrites everything to /public/, so when you configure nginx, just set the <code> root /path/to/public/<code>
  2.  
  3. this is the second one that should be
  4. <code>
  5. rewrite ^/(.*)*$ /index.php break;
  6. </code>
  7.  
  8.  
  9. So all together, after server{ should look like;
  10.  
  11. <code>
  12. location / {
  13. root /path/to/public;
  14. rewrite ^/(.*)*$ /index.php break;
  15.  
  16. location ~* ^.+\.(jpg|jpeg|gif|css|js)$ {
  17. root /path/to/public;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement