Advertisement
Guest User

Nginx server vplastico.com.br

a guest
Jan 18th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. ##
  2. # You should look at the following URL's in order to grasp a solid understanding
  3. # of Nginx configuration files in order to fully unleash the power of Nginx.
  4. # http://wiki.nginx.org/Pitfalls
  5. # http://wiki.nginx.org/QuickStart
  6. # http://wiki.nginx.org/Configuration
  7. #
  8. # Generally, you will want to move this file somewhere, and start with a clean
  9. # file but keep this around for reference. Or just disable in sites-enabled.
  10. #
  11. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  12. ##
  13.  
  14. # Default server configuration
  15. #
  16. server {
  17. listen 80 default_server;
  18. listen [::]:80 default_server;
  19.  
  20. # SSL configuration
  21. #
  22. # listen 443 ssl default_server;
  23. # listen [::]:443 ssl default_server;
  24. #
  25. # Self signed certs generated by the ssl-cert package
  26. # Don't use them in a production server!
  27. # include snippets/snakeoil.conf;
  28. #
  29. # ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # don’t use SSLv3 ref: POODLE
  30. # ssl_ciphers HIGH:!aNULL:!MD5;
  31. # ssl_prefer_server_ciphers on;
  32.  
  33. root /var/www/vplastico.com.br;
  34.  
  35. # Add index.php to the list if you are using PHP
  36. index index.html index.htm index.nginx-debian.html;
  37.  
  38. server_name _;
  39.  
  40. location / {
  41. # First attempt to serve request as file, then
  42. # as directory, then fall back to displaying a 404.
  43. try_files $uri $uri/ =404;
  44. }
  45.  
  46. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  47. #
  48. #location ~ \.php$ {
  49. # include snippets/fastcgi-php.conf;
  50. #
  51. # # With php5-cgi alone:
  52. # fastcgi_pass 127.0.0.1:9000;
  53. # # With php5-fpm:
  54. # fastcgi_pass unix:/var/run/php5-fpm.sock;
  55. #}
  56.  
  57. # deny access to .htaccess files, if Apache's document root
  58. # concurs with nginx's one
  59. #
  60. #location ~ /\.ht {
  61. # deny all;
  62. #}
  63. }
  64.  
  65. # Virtual Host configuration for example.com
  66. #
  67. # You can move that to a different file under sites-available/ and symlink that
  68. # to sites-enabled/ to enable it.
  69. #
  70. #server {
  71. # listen 80;
  72. # listen [::]:80;
  73. #
  74. # server_name example.com;
  75. #
  76. # root /var/www/example.com;
  77. # index index.html;
  78. #
  79. # location / {
  80. # try_files $uri $uri/ =404;
  81. # }
  82. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement