Nginx isn’t listening correctly on port 80

Nginx seems to only listen on HTTPS. This is the root configuration for Port 80, which isn’t working (no response). I have two sub-domains configured separately, one of which DOES receive HTTP requests (mail.example.de) Cloud: server { listen 80; listen [::]:80; server_name cloud.example.de; # enforce https return 301 https://$server_name$request_uri; } Mail: server { listen 80…

Connecting to remote MYSQL database using FireDac and Delphi 10.3

When I attempt to connect to a remote mysql database server using the “remote IP address” using the Delphi 10.3 Firedac component I get an error message “Access denied for user ‘myuser’@’local IP address’ (using password: YES)”. How do I force Firedac to look for the remote IP address? The ‘server’ property in tFDConnection params…

Nginx not serving javascript files

I have a server running Nginx, and I have two locations in the same server block. I’m using this as a reverse proxy for my node.js express application. /etc/nginx/sites-available/example.com server { server_name example.com www.example.com; location / { proxy_pass http://localhost:8000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection ‘upgrade’; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } location /otherapp{…

let’s encrypt installed, but with cloudflare, browser throws SSL error

I’ve installed certbot, and run to create certificates with cloudflare global api key: certbot certonly –dns-cloudflare –dns-cloudflare-credentials /root/.secrets/cloudflare.ini -d “mydomain.com” -d “www.mydomain.com” –preferred-challenges dns-01 –non-interactive -m “[email protected]” –agree-tos it created the fullchain.pem and privkey.pem files which are I’ve added to my nginx configuration: ssl_certificate /etc/letsencrypt/live/mydomain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/mydomain.com/privkey.pem; nginx -t tested as successfully. So now, SSL…

resolv.conf custom nameserver using dhclient.conf gets removed on Google Cloud

According to https://cloud.google.com/compute/docs/internal-dns I have added this at the end of /etc/dhcp/dhclient.conf in order to have a custom nameserver on resolv.conf prepend domain-name-servers x.x.x.x; After a service networking restart resolv.conf file gets populated with the custom nameserver. The problem is that after a few hours (around 12), sometimes more (I can’t find exactly the time…