Advertisement
Guest User

Untitled

a guest
Jan 17th, 2024
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.74 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. # https://www.nginx.com/resources/wiki/start/
  5. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
  6. # https://wiki.debian.org/Nginx/DirectoryStructure
  7. #
  8. # In most cases, administrators will remove this file from sites-enabled/ and
  9. # leave it as reference inside of sites-available where it will continue to be
  10. # updated by the nginx packaging team.
  11. #
  12. # This file will automatically load configuration files provided by other
  13. # applications, such as Drupal or Wordpress. These applications will be made
  14. # available underneath a path with that package name, such as /drupal8.
  15. #
  16. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  17. ##
  18.  
  19. # Default server configuration
  20. #
  21. server {
  22.     listen 5394 default_server;
  23.     listen [::]:5394 default_server;
  24.  
  25.     # SSL configuration
  26.     #
  27.     # listen 443 ssl default_server;
  28.     # listen [::]:443 ssl default_server;
  29.     #
  30.     # Note: You should disable gzip for SSL traffic.
  31.     # See: https://bugs.debian.org/773332
  32.     #
  33.     # Read up on ssl_ciphers to ensure a secure configuration.
  34.     # See: https://bugs.debian.org/765782
  35.     #
  36.     # Self signed certs generated by the ssl-cert package
  37.     # Don't use them in a production server!
  38.     #
  39.     # include snippets/snakeoil.conf;
  40.  
  41.     root /var/www;
  42.  
  43.     # Add index.php to the list if you are using PHP
  44.     #index index.html index.htm index.nginx-debian.html;
  45.         index index.php index.html index.htm;
  46.  
  47.     server_name _;
  48.  
  49.    
  50.  
  51.        location ~ \.php$ {
  52.                include snippets/fastcgi-php.conf;
  53.                fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
  54.         }
  55. }
  56.  
  57.  
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement