New answers tagged

0 votes
Accepted

Nginx blocking static files in docker-compose

i've fixed this by commenting/deleting line in nginx configuration file try_files #try_files $uri $uri/ =404; try_files Checks the existence of files in the specified order and uses the first ...
user avatar
2 votes
Accepted

How to setup reverse dns (rDNS) to my unmanaged vps server

You have to set this up with the hosting provider. You own the domain names, they own the IP addresses. You can set forward lookups, they have to configure reverse lookups. However, it you are on a “...
user avatar
  • 3,270
0 votes

docker group gets dropped from 'groups' after some time, and with it, my user's membership

Sharing this since it cost me hours. At the moment when you see the docker group, restart the system. Which you do not like to do when many windows are open and docker containers run. But that made it ...
user avatar
0 votes

django.db.utils.OperationalError: could not connect to server: Connection refused

You have to enable listen addresses if you are using remote database. cd /etc/postgresql/12.x/main/ open file named postgresql.conf sudo nano postgresql.conf add this line to that file ...
user avatar
  • 1
0 votes

Nginx downloads source code instead running it with PHP-FPM over Docker

OK, thanks to first answer, I experimented on that a little. Looked on notes on Nginx FASTCGI notex, the 4th advice to set SCRIPT_FILENAME as in alpine it seems that it's not included Now it works, ...
user avatar
0 votes

Nginx downloads source code instead running it with PHP-FPM over Docker

Remove the nested location. Try: location /api { root /var/www; try_files /www/index.php =404; include fastcgi_params; fastcgi_pass php_fpm; }
user avatar
0 votes
Accepted

How to create auto redirect to 301 https + proxy_pass in NGINX for one location /

If you want to serve your backend only via HTTPS, then you need to define your backend in HTTPS server block, for example like this: # HTTP server for redirect server { listen 80; server_name ...
user avatar
0 votes

In the bind mount "hostPath:containerPath:ro" what dose the ro part do?

ro means read-only: https://docs.docker.com/engine/reference/run/#volume-shared-filesystems -v, --volume=[host-src:]container-dest[:<options>]: Bind mount a volume. The comma-delimited `options` ...
user avatar
  • 449
0 votes

Increasing the size of /var/ on centos7

If it is a VM hopefully you can just add one more disk to it and use that space to extend the volume. Here is a description how you can extend: https://www.linuxtechi.com/extend-lvm-partitions/ ...
user avatar
  • 181

Top 50 recent answers are included