Advertisement
Guest User

Untitled

a guest
May 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name lejournaldugers.local;
  4.  
  5. #charset koi8-r;
  6.  
  7. access_log /var/log/nginx/localhost.access.log;
  8. error_log /var/log/nginx/localhost.error.log;
  9. location / {
  10. root /home/leknoppix/public_html/lejournaldugers/public/;
  11. index index.html index.htm index.php;
  12. autoindex on;
  13. }
  14.  
  15. #error_page 404 /404.html;
  16.  
  17. # redirect server error pages to the static page /50x.html
  18. #
  19. error_page 500 502 503 504 /50x.html;
  20. location = /50x.html {
  21. root /usr/share/nginx/html;
  22. }
  23.  
  24. location ~ \.php$ {
  25. fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
  26. fastcgi_index index.php;
  27. root /home/leknoppix/public_html/lejournaldugers/public/;
  28. include fastcgi.conf;
  29. }
  30. # deny access to .htaccess files, if Apache's document root
  31. # concurs with nginx's one
  32. #
  33. #location ~ /\.ht {
  34. # deny all;
  35. #}
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement