serverfault.com

VN:F [1.9.22_1171]
Rating: 6.0/10 (1 vote cast)

Common Server issues – FAQs and answers from those in the know

redirect no https Site A to https Site B

19 January 2026 @ 2:26 pm

I have this rule set in apache RewriteEngine ON RewriteCond %{HTTP_HOST} http://www.siteA.co.uk$ [NC] RewriteCond %{HTTP_HOST} http://SiteA.co.uk$ [NC] RewriteCond %{HTTP_HOST} ^SiteA.co.uk$ [NC] RewriteRule ^(.*)$ https://www.SiteB.co.uk/$1 [R=301,L] http://siteA site redirects perfect, but the http://www.siteA keeps giving me Fornidden you do not have permission Any assistance greatly appreciated Many thanks Patrick

How do I build a download server on AWS?

19 January 2026 @ 2:24 pm

We're handling pretty heavy data for our customers, and usually at the end of a project they are going to download the entire set. Up until now we did that by just giving them a presigned url to a list of zip-files on the S3. But now I've received new requirements. In the future, we'll need to be able to restrict the maximum number of downloads of individual files, measure the outgoing traffic (to be able to tell whether the download was completed or not among other things), register the user downloading them, prohibit concurrent downloads for the same customer, etc. My first thought was to build a download server on an EC2 instance that regulates access and through which the files from the S3 files would be streamed. Then I looked at the network performance of EC2 instances and realized that there's no instance type made for a task like this. We're talking about individual files 50GB in size, with a peak concurrency of about 20 files. So I'd need some serious bandwidt

Microsoft Windows Load Balancer Issue - Only works when one node was converged instead of two nodes

19 January 2026 @ 2:12 pm

I'm new for the Microsoft Network load balancer setups. Currently I facing issue when setup windows load balancer with two nodes with multicast approaches. Below are the summary of setups/issues: Setups 2 VMs' for node 1 and node 2, having the 2 different IP address and different MAC address, with same ethernet card/ NIC. Configured the NLB as multicast approach, and have asked my network team to add a static arp entry on the network infrastructure (router/firewall/switches) as advised by microsoft, (Link https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-network-to-support-nlb-operation-mode?source=recommendations) Configured both of the nodes in one cluster, having one new Virtual IP address/Cluster IP address that

How can I configure Azure so that I get an email alert when someone accesses/views keys in my Azure subscription?

18 January 2026 @ 11:33 pm

A few people can access my Azure subscription via https://portal.azure.com. How can I configure Azure so that I get an email alert when someone accesses/views keys in my Azure subscription? My Azure subscription mostly contain Azure Cognitive Resources if that matters, and each Azure Cognitive Resource has 2 keys.

Systemd enforcing different permission checks on timer & service invoked rsync command vs login

18 January 2026 @ 10:59 pm

Am looking to copy a postgres backup folder structure to a cifs mount. Using cp works, but using rsync gives permission denied on change dir and and stat of destination: rsync: [sender] change_dir "/var/lib/pgsql" failed: Permission denied (13) rsync: [Receiver] ERROR: cannot stat destination "/var/lib/pgsql/mnt/Drive/Backups/TradingDB": Permission denied (13) rsync error: errors selecting input/output files, dirs (code 3) at main.c(772) [Receiver=3.4.1] The rsync command works from the command line but fails when invoked by a systemd timer & service invoking a bash script. Running the script compleets with no errors. The rsync command that fails in the service/script but works on the command line and login invoked script is: `if sudo rsync -av --no-perms --no-owner --verbose $FILENAME /var/lib/pgsql/mnt/Drive/Backups/TradingDB;` which at runtime is: `root : PWD=/ ; USER=

How come with systemd-timesyncd installed on Debian 12, "timedatectl status" says "synchronized: no"? & hwclock command not found?

18 January 2026 @ 8:37 pm

Why is this? "Set time and date automatically" is applied, so shouldn't timedatectl status say "System clock synchronized: yes"? How can I test it? I already set the clock manually. I enabled, started the service, and set "timedatectl set-ntp true". Also util-linux and util-linux-extra are installed, but hwclock command is not found. /etc/default/hwclock is present, whatever that is.

Apache web server returns error 500 when trying to load a page using a web browser from another PC

18 January 2026 @ 7:44 pm

I am trying to configure a LAMP server on my raspberry pi 4 8gb that is currently running Raspbian. I installed PHP, mysql, PHPmyadmin and I recently set up VSFTPD to allow me to access the files located in the /var/www/html folder so I can upload PHP scripts and other media related to the website. The problem is that when I try to access a web page from another PC connected to the same LAN it returns error 500. The strange thing is that PHPmyadmin is still working: when I type the following URL into the browser: 192.168.100.11/phpmyadmin the entire PHPmyadmin GUI shows up correctly. I created a new user called "ftpuser" for the FTP server and I changed the /var/www/html owner with chown ftpuser html

How to ensure Disk replication uses 10 Gb network instead of 1 Gb management network in XCP-ng XOSTOR cluster?

18 January 2026 @ 4:50 pm

I am creating a 3-node XCP-ng cluster using XOSTOR for shared storage replication. The replication factor is 3. Each node has two network interfaces: 1 Gb management network (host management, pool communication, XOA access only) Node1: 192.168.200.161 Node2: 192.168.200.162 Node3: 192.168.200.163 10 Gb storage network (intended exclusively for storage replication) Node1: 192.168.212.11 Node2: 192.168.212.12 Node3: 192.168.212.13 The 1 Gb network is strictly for management traffic, and the requirement is that all disk replication traffic must use only the 10 Gb network. How to check/ensure that all replication traffic goes to the 10G network. Output of linstor n list is given below enter image description here

Password authentication fails on Ubuntu

18 January 2026 @ 4:07 pm

After running sudo passwd -e user1, the system displayed: "passwd: password changed." Immediately after that, I logged out of the session. However, when I tried to log in again, the system displayed the error message: "Sorry, password authentication is not working." I suspected that forcing password expiration might be the cause, so I booted into recovery mode, gained root access, and attempted to reset or change the password for user1. After doing this, the problem persists and I am unable to log in using password authentication. I am not sure if the issue is related to PAM configuration, account status, or something else triggered by the password expiration command. Any guidance or suggestions on how to recover password-based login for this user would be greatly appreciated.

Combining home directory from two Linux distributions and using the combined directory from both?

18 January 2026 @ 3:41 pm

I'm going to have the same home directory mounted on both a SLES 15 SP6 machine and an Oracle Linux 9.4 machine - which do not even have the same hardware (both are x86_64 but may have a different number of sockets, CPU vendor, disk combination etc.). I currently have a home directory on each of them, and they're going to get merged, so the same home directory is going to be mounted for me on both these machines. This might seem like a strange thing to do, because files generated by the different distros will clash; but - it's going to happen (and without the system administrators devising a scheme for how this will work, assuming that users only 'really' care about one of the machines or the other but never both). My question is how to effectively perform this merging so that one gets a home directory that is actually usable from both machines, without clashes causing any disruptions, and with possible simultaneous use. I think I have already figured out a de