Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- location / {
- try_files $uri /index.php$is_args$args;
- }
- location /static/ {
- alias /path/to/tabun/static/;
- expires 7d;
- }
- location /storage/ {
- alias /path/to/tabun/storage/;
- expires 7d;
- }
- location ~ \.php$ {
- root /path/to/tabun;
- fastcgi_pass 127.0.0.1:9510;
- fastcgi_param REDIRECT_STATUS 200;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_read_timeout 600;
- include fastcgi_params;
- }
- location ~ /(classes|config|engine|templates|celery_tasks|tmp) {
- deny all;
- return 404;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement