Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8080;
- server_name banhammer.us www.banhammer.us;
- access_log off;
- error_log /home/fez/logs/forum_error.log;
- root /home/fez/forum;
- client_max_body_size 200M;
- location / {
- port_in_redirect off;
- index index.php;
- try_files $uri $uri/ /index.php?q=$uri&$args;
- }
- # deny access to apache .htaccess files
- location ~ /\.ht {
- deny all;
- }
- gzip on;
- gzip_vary on;
- location ~ \.php$ {
- include /etc/nginx/fastcgi_params;
- fastcgi_pass unix:/tmp/php5-fpm.sock;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement