Home directory for Active Directory authenticated users based on parsed username

I have an NFS share with user home directories mounted on a web server. I want to enable UserDir in apache, but the home directories are not a straight-forward “/home/username” path. Instead, they’re organized into a hierarchy based on their username. For example, a username may be ab1234 (always two letters followed by four numbers).…

How to connect to Postgres Cloud Sql without public IP from Cloud Run

There is a documentation on the Cloud SQL for Cloud Run connection(https://cloud.google.com/sql/docs/postgres/connect-run), but it contains the following line: Note: These instructions require your Cloud SQL instance to have a public IP address configured. Is there any way to use Postgres Cloud SQL from Cloud Run if Cloud SQL does not expose public IP address?

How to make systemd monitor processes started using a shell script in the service file?

I have written a service file in Linux that calls a script which starts multiple processes with one as primary and others as secondary. SERVICE FILE: [Unit] Description=TEST service Requires=abc.service Wants=def.service RefuseManualStop=yes [Service] Type=Forking KillSignal=SIGTERM # We prefix ‘-‘ to tell systemd that ignore the non-zero return values on stop service ExecStart=-/bin/bash test_abc.sh ExecStopPost=-/root/.abc/abc_stop.sh #…

How to allow remote connection to SQL Server instance only to specific public IP Address (white-list) & restrict access to all other IP’s

How do I allow remote connection to SQL Server instance only to specific public IP Address (white-list)? For example, login from SSMS to SQL Server instance hosted on Windows dedicated server allowing access only from specific public IP. Also, the need to restrict access to all other IP’s, i,e to prevent login from SSMS. Below…

Why do I get mixed http/1.1 and h2 requests to the same server?

I have set up my apache2 to support http2 roughly following https://http2.pro/doc/Apache. Everything runs smoothly, but when I check connections to my Nextcloud and Roundcube instances in Chromiums dev tools, SOME requests are executed via h2, but most are still http/1.1. Is this normal? Of course, the websites are called via https (Let’s Encrypt) and have…