Advertisement
Guest User

Untitled

a guest
Apr 11th, 2015
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. server {
  2. listen 81;
  3.  
  4. root /data/www/joomla;
  5. index index.php index.html index.htm;
  6.  
  7. server_name blabla.org;
  8.  
  9. error_page 404 /404.html;
  10.  
  11. error_page 500 502 503 504 /50x.html;
  12. location = /50x.html {
  13. root /usr/share/nginx/www;
  14. }
  15.  
  16. # pass the PHP scripts to FastCGI server listening on the php-fpm socket
  17. location ~ \.php$ {
  18. try_files $uri =404;
  19. fastcgi_pass unix:/var/run/php5-fpm.sock;
  20. fastcgi_index index.php;
  21. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  22. include fastcgi_params;
  23. }
  24. location / {
  25. try_files $uri $uri/ /index.php?$args;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement