server { listen 80; listen [::]:80; server_name _; location ^~ /.well-known/ { root /var/www/html; default_type "text/plain"; } location / { return 301 https://$host$request_uri; } } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name chaturbate100.com; ssl_certificate /etc/letsencrypt/live/chaturbate100.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/chaturbate100.com/privkey.pem; index index.php index.html index.htm; root /var/www/chaturbate100.com; location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|ico|bmp|woff)$ { expires 30d; access_log off; } location ~ \.php$ { try_files $uri $uri/ =404; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name; fastcgi_pass unix:/run/php/php7.3-fpm.sock; } location /ws/ { proxy_pass http://localhost:8080; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } location ~ ^/(cmd|list)/ { access_log off; allow 127.0.0.1; deny all; proxy_pass http://localhost:8080; } }