astronom777

Untitled

Sep 16th, 2024
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.71 KB | None | 0 0
  1. server {
  2.         listen 80;
  3.         listen [::]:80;
  4.         server_name 91.107.123.57;
  5.         # SSL configuration
  6.         #
  7.         # listen 443 ssl default_server;
  8.         # listen [::]:443 ssl default_server;
  9.         #
  10.         # Note: You should disable gzip for SSL traffic.
  11.         # See: https://bugs.debian.org/773332
  12.         #
  13.         # Read up on ssl_ciphers to ensure a secure configuration.
  14.         # See: https://bugs.debian.org/765782
  15.         #
  16.         # Self signed certs generated by the ssl-cert package
  17.         # Don't use them in a production server!
  18.         #
  19.         # include snippets/snakeoil.conf;
  20.  
  21.         root /var/www/html;
  22.  
  23.         # Add index.php to the list if you are using PHP
  24.         index index.php index.html index.htm index.nginx-debian.html;
  25.  
  26.         server_name _;
  27.  
  28.         location / {
  29.                 # First attempt to serve request as file, then
  30.                 # as directory, then fall back to displaying a 404.
  31.                 try_files $uri $uri/ =404;
  32.         }
  33.  
  34.         # pass PHP scripts to FastCGI server
  35.         #
  36.         location ~ \.php$ {
  37.                 include snippets/fastcgi-php.conf;
  38.         #
  39.         #       # With php-fpm (or other unix sockets):
  40.                 fastcgi_pass unix:/run/php/php7.4-fpm.sock;
  41.         #       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  42.         #       include /etc/nginx/fastcgi_params;
  43.         #       # With php-cgi (or other tcp sockets):
  44.         #       fastcgi_pass 127.0.0.1:9000;
  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. }
  54.  
  55.  
Advertisement
Add Comment
Please, Sign In to add comment