Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8943 default_server ssl;
- listen [::]:8943 default_server ssl;
- ssl on;
- ssl_certificate /etc/letsencrypt/live/REDACTED-0001/fullchain.pem;
- ssl_certificate_key /etc/letsencrypt/live/REDACTED-0001/privkey.pem;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers HIGH:!aNULL:!MD5;
- ssl_buffer_size 0;
- # SSL configuration
- #
- # listen 443 ssl default_server;
- # listen [::]:443 ssl default_server;
- #
- # Note: You should disable gzip for SSL traffic.
- # See: https://bugs.debian.org/773332
- #
- # Read up on ssl_ciphers to ensure a secure configuration.
- # See: https://bugs.debian.org/765782
- #
- # Self signed certs generated by the ssl-cert package
- # Don't use them in a production server!
- #
- # include snippets/snakeoil.conf;
- root /var/www/nginxlive;
- # Add index.php to the list if you are using PHP
- index index.html index.htm index.nginx-debian.html index.php;
- server_name localhost;
- proxy_set_header Connection '';
- proxy_http_version 1.1;
- chunked_transfer_encoding off;
- proxy_buffering off;
- proxy_cache off;
- proxy_buffer_size 0;
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ =404;
- }
- # pass PHP scripts to FastCGI server
- #
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- # With php-fpm (or other unix sockets):
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- # With php-cgi (or other tcp sockets):
- #fastcgi_pass 127.0.0.1:9000;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
- }
- # Virtual Host configuration for example.com
- #
- # You can move that to a different file under sites-available/ and symlink that
- # to sites-enabled/ to enable it.
- #
- #server {
- # listen 80;
- # listen [::]:80;
- #
- # server_name example.com;
- #
- # root /var/www/example.com;
- # index index.html;
- #
- # location / {
- # try_files $uri $uri/ =404;
- # }
- #}
Add Comment
Please, Sign In to add comment