Advertisement
Guest User

Untitled

a guest
Aug 13th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. server {
  2. listen 8080;
  3. server_name banhammer.us www.banhammer.us;
  4. access_log off;
  5. error_log /home/fez/logs/forum_error.log;
  6. root /home/fez/forum;
  7. client_max_body_size 200M;
  8.  
  9. location / {
  10. port_in_redirect off;
  11. index index.php;
  12. try_files $uri $uri/ /index.php?q=$uri&$args;
  13. }
  14.  
  15. # deny access to apache .htaccess files
  16. location ~ /\.ht {
  17. deny all;
  18. }
  19.  
  20. gzip on;
  21. gzip_vary on;
  22.  
  23. location ~ \.php$ {
  24. include /etc/nginx/fastcgi_params;
  25. fastcgi_pass unix:/tmp/php5-fpm.sock;
  26. fastcgi_index index.php;
  27. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  28. include fastcgi_params;
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement