Advertisement
Riben

Untitled

Oct 20th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.59 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4. server_name lentachan.xyz;
  5.  
  6.  
  7. #location /phpmyadmin {
  8. # root /usr/share/;
  9. # index index.php;
  10. #try_files $uri $uri/ =404;
  11.  
  12. #location ~ ^/phpmyadmin/(doc|sql|setup)/ {
  13. # deny all;
  14. # }
  15.  
  16. # location ~ /phpmyadmin/(.+\.php)$ {
  17. # fastcgi_pass unix:/run/php/php8.0-fpm.sock;
  18. # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  19. #include fastcgi_params;
  20. # include snippets/fastcgi-php.conf;
  21. # }
  22. }
  23. # SSL configuration
  24. #
  25. # listen 443 ssl default_server;
  26. # listen [::]:443 ssl default_server;
  27. #
  28. # Note: You should disable gzip for SSL traffic.
  29. # See: https://bugs.debian.org/773332
  30. #
  31. # Read up on ssl_ciphers to ensure a secure configuration.
  32. # See: https://bugs.debian.org/765782
  33. #
  34. # Self signed certs generated by the ssl-cert package
  35. # Don't use them in a production server!
  36. #
  37. # include snippets/snakeoil.conf;
  38.  
  39. root /var/www/html/lentachan.xyz;
  40.  
  41. # Add index.php to the list if you are using PHP
  42. index index.php index.html index.htm index.nginx-debian.html;
  43.  
  44. server_name _;
  45.  
  46. location / {
  47. # First attempt to serve request as file, then
  48. # as directory, then fall back to displaying a 404.
  49. try_files $uri $uri/ =404;
  50. }
  51.  
  52. # pass PHP scripts to FastCGI server
  53. #
  54. location ~ \.php$ {
  55. # include snippets/fastcgi-php.conf;
  56. try_files $uri =404;
  57. fastcgi_pass 127.0.0.1:9000;
  58. fastcgi_index index.php;
  59. include fastcgi_params;
  60. #
  61. # # With php-fpm (or other unix sockets):
  62. fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
  63. # # With php-cgi (or other tcp sockets):
  64. # fastcgi_pass 127.0.0.1:9000;
  65. #}
  66.  
  67. # deny access to .htaccess files, if Apache's document root
  68. # concurs with nginx's one
  69. #
  70. #location ~ /\.ht {
  71. # deny all;
  72. #}
  73. }
  74.  
  75.  
  76. # Virtual Host configuration for example.com
  77. #
  78. # You can move that to a different file under sites-available/ and symlink that
  79. # to sites-enabled/ to enable it.
  80. #
  81. #server {
  82. # listen 80;
  83. # listen [::]:80;
  84. #
  85. # server_name example.com;
  86. #
  87. # root /var/www/example.com;
  88. # index index.html;
  89. #
  90. # location / {
  91. # try_files $uri $uri/ =404;
  92. # }
  93. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement