Advertisement
Guest User

Untitled

a guest
May 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.61 KB | None | 0 0
  1. server {
  2.         server_name domain.tld;
  3.  
  4.         root /sample/web/root;
  5.         index index.html index.php;
  6.  
  7.         # set expiration of assets to MAX for caching
  8.         location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
  9.                 expires max;
  10.                 log_not_found off;
  11.         }
  12.  
  13.         location / {
  14.                 # Check if a file or directory index file exists, else route it to index.php.
  15.                 try_files $uri $uri/ /index.php;
  16.         }
  17.  
  18.         location ~* \.php$ {
  19.                 fastcgi_pass 127.0.0.1:9000;
  20.                 include fastcgi.conf;
  21.         }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement