Advertisement
Guest User

Untitled

a guest
Dec 18th, 2011
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. server {
  2. root /usr/share/nginx/www;
  3. index index.php index.html index.htm;
  4. try_files $uri $uri/ /index.php;
  5. server_name localhost;
  6.  
  7. location = /favicon.ico {
  8. log_not_found off;
  9. access_log off;
  10. }
  11.  
  12. location = /robots.txt {
  13. allow all;
  14. log_not_found off;
  15. access_log off;
  16. }
  17.  
  18. location ~ /\. {
  19. deny all;
  20. access_log off;
  21. log_not_found off;
  22. }
  23.  
  24. location ~* \.(js|css|png|jpg|jpeg|gif|ico) {
  25. expires 24h;
  26. log_not_found off;
  27. }
  28.  
  29. location / {
  30. root /usr/share/nginx/www/wordpress;
  31.  
  32. location ~ \.php$ {
  33. include fastcgi_params;
  34. fastcgi_pass unix:/tmp/php5-fpm.sock;
  35. fastcgi_index index.php;
  36. }
  37. }
  38.  
  39. location /pma {
  40. root /usr/share/nginx/www/phpmyadmin;
  41.  
  42. location ~ \.php$ {
  43. include fastcgi_params;
  44. fastcgi_pass unix:/tmp/php5-fpm.sock;
  45. fastcgi_index index.php;
  46. }
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement