server { listen 80; listen [::]:80; #listen 443 ssl; #listen [::]:443 ssl; server_name www.devdungeon.com; #ssl_certificate /etc/letsencrypt/live/devdungeon.com/fullchain.pem; #ssl_certificate_key /etc/letsencrypt/live/devdungeon.com/privkey.pem; #ssl_ciphers HIGH:!aNULL:!MD5; # Map a static dir location /camserver/static/ { alias /path/to/static/; } # Reverse proxy location /camserver/ { proxy_pass http://localhost:8002/; proxy_set_header X-Real-IP $remote_addr; } # List directory contents location /images { autoindex on; # Use local time instead of UTC for di lists autoindex_localtime on; alias /path/to/images/; } root /var/www/html/; index index.php index.html; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; # Find right socket in /run/php/ fastcgi_pass unix:/run/php/php7.3-fpm.sock; include fastcgi_params; } location ~ /\.ht { deny all; } }