Advertisement
ewwink

nginx ewwink

Nov 26th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.30 KB | None | 0 0
  1. nano /usr/local/apps/nginx/etc/conf.d/common => nginx htaccess
  2. if (!-e $request_filename)
  3. {
  4.         rewrite ^(.+)$ /index.php?q=$1 last;
  5. }
  6. #catch all
  7. error_page 404 = /index.php;
  8.  
  9. location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
  10.                 expires max;
  11.                 log_not_found off;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement