Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes 1;
- events {
- worker_connections 1024;
- }
- http {
- include mime.types;
- default_type application/octet-stream;
- charset utf-8;
- source_charset utf-8;
- ignore_invalid_headers on;
- max_ranges 0;
- recursive_error_pages on;
- server_tokens off;
- sendfile on;
- keepalive_timeout 65;
- limit_req_zone $binary_remote_addr
- zone=gulag:1m rate=60r/m;
- gzip on;
- gzip_vary on;
- root /var/www/;
- server {
- listen 80;
- server_name mydomain.net *.mydomain.net;
- location / {
- index index.html index.htm index.lp index.lua index.php;
- }
- location ~* ^.+\.(jpg|jpeg|gif|css|png|js|xml)$ {
- expires 30d;
- }
- # Lua
- location ~ ^.+\.(lp|lua)$ {
- add_header X-Powered-By Lua/5.1;
- try_files $uri = 404;
- fastcgi_pass localhost:9001;
- fastcgi_index index.lp;
- fastcgi_param SCRIPT_FILENAME
- $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- # PHP
- location ~ \.php$ {
- try_files $uri = 404;
- fastcgi_pass localhost:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME
- $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- location ~ /\.ht {
- deny all;
- }
- } # server:80
- } # http
Advertisement
Add Comment
Please, Sign In to add comment