myth494

Defult.conf

Jun 1st, 2015
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. # The default server
  2. #
  3. server {
  4. listen 80 default_server;
  5. server_name example.com;
  6.  
  7. #charset koi8-r;
  8.  
  9. #access_log logs/host.access.log main;
  10.  
  11. # Load configuration files for the default server block.
  12. include /etc/nginx/default.d/*.conf;
  13.  
  14. location / {
  15. root /usr/TechnicSolder/public;
  16. index index.php index.html index.htm;
  17. }
  18.  
  19. error_page 404 /404.html;
  20. location = /404.html {
  21. root /usr/share/nginx/html;
  22. }
  23.  
  24. # redirect server error pages to the static page /50x.html
  25. #
  26. error_page 500 502 503 504 /50x.html;
  27. location = /50x.html {
  28. root /usr/share/nginx/html;
  29. }
  30.  
  31. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  32. #
  33. #location ~ \.php$ {
  34. # proxy_pass http://127.0.0.1;
  35. #}
  36.  
  37. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  38. #
  39. location ~ \.php$ {
  40. root /etc/nginx/;
  41. fastcgi_pass 127.0.0.1:9000;
  42. fastcgi_index index.php;
  43. fastcgi_param SCRIPT_FILENAME $fastcgi_path_info;
  44. include fastcgi_params;
  45. }
  46.  
  47. # deny access to .htaccess files, if Apache's document root
  48. # concurs with nginx's one
  49. #
  50. #location ~ /\.ht {
  51. # deny all;
  52. #}
  53. }
Advertisement
Add Comment
Please, Sign In to add comment