Advertisement
Yuuki_Asuna

nginx.conf

Jun 3rd, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 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. server_name dev.fioregaming.com
  20. return 301 https://$server_name$request_uri;
  21. }
  22.  
  23. server {
  24.  
  25. # SSL configuration
  26.  
  27. listen 443 ssl http2 default_server;
  28. listen [::]:443 ssl http2 default_server;
  29. include snippets/ssl-dev.fioregaming.com.conf;
  30. include snippets/ssl-params.conf;
  31.  
  32. location ~ /.well-known {
  33. allow all;
  34. }
  35.  
  36. root /var/www/html;
  37.  
  38. # Add index.php to the list if you are using PHP
  39. index index.html index.htm index.nginx-debian.html;
  40.  
  41. server_name _;
  42.  
  43. location / {
  44. # First attempt to serve request as file, then
  45. # as directory, then fall back to displaying a 404.
  46. try_files $uri $uri/ =404;
  47. }
  48.  
  49. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  50. #
  51. #location ~ \.php$ {
  52. # include snippets/fastcgi-php.conf;
  53. #
  54. # # With php7.0-cgi alone:
  55. # fastcgi_pass 127.0.0.1:9000;
  56. # # With php7.0-fpm:
  57. # fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  58. #}
  59.  
  60. # deny access to .htaccess files, if Apache's document root
  61. # concurs with nginx's one
  62. #
  63. #location ~ /\.ht {
  64. # deny all;
  65. #}
  66. }
  67.  
  68.  
  69. # Virtual Host configuration for example.com
  70. #
  71. # You can move that to a different file under sites-available/ and symlink that
  72. # to sites-enabled/ to enable it.
  73. #
  74. #server {
  75. # listen 80;
  76. # listen [::]:80;
  77. #
  78. # server_name example.com;
  79. #
  80. # root /var/www/example.com;
  81. # index index.html;
  82. #
  83. # location / {
  84. # try_files $uri $uri/ =404;
  85. # }
  86. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement