Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes auto;
- events {
- worker_connections 1024;
- use epoll;
- }
- http {
- sendfile on;
- tcp_nopush on;
- tcp_nodelay on;
- keepalive_timeout 65;
- types_hash_max_size 2048;
- server {
- listen 80 default_server;
- listen [::]:80 default_server ipv6only=on;
- listen 443 ssl;
- server_name tux-n.com;
- root /usr/share/nginx/html;
- ssl_certificate /etc/letsencrypt/live/tux-in.com/cert.pem;
- ssl_certificate_key /etc/letsencrypt/live/tux-in.com/privkey.pem;
- location ~ [^/]\.php(/|$) {
- fastcgi_split_path_info ^(.+?\.php)(/.*)$;
- if (!-f $document_root$fastcgi_script_name) {
- return 404;
- }
- # Mitigate https://httpoxy.org/ vulnerabilities
- fastcgi_param HTTP_PROXY "";
- fastcgi_param DOCUMENT_ROOT "/var/www/html";
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- }
- location / {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement