Advertisement
Lykaon

Untitled

Nov 23rd, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. server {
  2.  
  3. listen 80;
  4. listen [::]:80 default_server;
  5.  
  6. server_name lykaon.de;
  7.  
  8.  
  9. location / {
  10. root /home/lupo/lykaon/www;
  11. index index.php index.html index.htm;
  12. }
  13.  
  14. error_page 404 /404.html;
  15. location = /404.html {
  16. root /usr/share/nginx/ht,ml;
  17. }
  18.  
  19. error_page 500 502 503 504 /50x.html;
  20. location = /50x.html {
  21. root /usr/share/nginx/html;
  22. }
  23.  
  24.  
  25. # PHP auf einem Socket
  26. location ~ \.php$ {
  27. if (!-f $request_filename)
  28. {
  29. return 404;
  30. }
  31.  
  32. root /usr/share/nginx/html;
  33. fastcgi_pass unix:/var/run/php5-fpm.sock;
  34. fastcgi_index index.php;
  35. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  36. include fastcgi_params;
  37.  
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement