Advertisement
andreymal

tabun config: nginx sites-enabled/tabun.conf

Nov 3rd, 2018
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.65 KB | None | 0 0
  1. server {
  2.   listen 80;
  3.  
  4.   server_name localhost;
  5.  
  6.   location / {
  7.     try_files $uri /index.php$is_args$args;
  8.   }
  9.  
  10.   location /static/ {
  11.     alias /path/to/tabun/static/;
  12.     expires 7d;
  13.   }
  14.  
  15.   location /storage/ {
  16.     alias /path/to/tabun/storage/;
  17.     expires 7d;
  18.   }
  19.  
  20.   location ~ \.php$ {
  21.     root /path/to/tabun;
  22.     fastcgi_pass  127.0.0.1:9510;
  23.     fastcgi_param  REDIRECT_STATUS    200;
  24.     fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
  25.     fastcgi_read_timeout 600;
  26.     include fastcgi_params;
  27.   }
  28.  
  29.   location ~ /(classes|config|engine|templates|celery_tasks|tmp) {
  30.     deny all;
  31.     return 404;
  32.   }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement