Latest Server related questions

Score: 1
Apache Rewrite Based on Query String
gb flag

I'm trying to detect the presence of a particular name/value pair in the query string and, if it exists, do a thing. I'm trying to do this in a conf file that's stored in conf-available/ and after a2enconf has been run to enable it. The code is small:

RewriteCond %{QUERY_STRING} foo=bar [NC]
RewriteRule ^(.*)$ http://linkedin.com [R=301,L]

No, redirecting to linkedin (or anywhere else) isn't my  ...

Score: 0
Vitas avatar
Defender tamper protection off on Windows Server
jp flag

I am investigating a ticket that Virus & threat protection and App & browser control are now disabled on some servers in our network.

enter image description here

They want me to check why it happened and how to prevent this in the future. I tried to check in event log / security if there is event id 1121 but unfortunately the log is too short and contains only last 2 hours of events, so I didn't find anything.

My que ...

Score: -1
MrGamecase avatar
Can not access company website from within LAN domain
eg flag

This is probably something simple but I'm having a brain fart trying to sort this out.

I'm trying to mimic an existing physical location setup by a previous engineer.

I've set up a new physical site [Site 2], I've setup a new domain controller/DNS [example2.uk] this matches the company website [Example2.uk], all the site computers can join the domain and work as expected, the only issue I'm coming a ...

Score: 0
Nir O. avatar
What could be the reason that `apt update` says certificate is NOT trusted whereas curl says `SSL certificate verify ok`
cn flag

I am trying to add docker to my Debian 11 bullseye installation. until now, I have ran -

apt clean
apt update
update-ca-certificates
apt-get install -y ca-certificates
apt reinstall ca-certificates

but when I run apt update I keep getting

Err:4 https://download.docker.com/linux/debian bullseye InRelease              
  Certificate verification failed: The certificate is NOT trusted. The certificate issu ...
Score: 0
JYOTI PRAKASH MALLICK avatar
stress-ng: Simulate specific CPU and Memory Percentage
no flag

Goal : For performance test I m using stress-ng and I want to consume 100% CPU of 3 out of 4 Core and 80% of entire memory for 30 min (this is very extreme test condition). And I have few other scenario.

I have tried with the command:

stress-ng -c 3 -l 100 --vm-bytes 8G --vm-keep -m 1 --aggressive

enter image description here

It is consuming the all the 4 CORE and 8GB is not getting consumed

How to achieve this ?

Score: 0
Salvatore D'angelo avatar
Extra DNS entries in the Linux routing table
au flag

I have a Linux machine Ubuntu 22.04 with two interfaces that I called bond0 and bond1. This machine has IP 10.242.87.123 and the following name servers:

nameserver 161.26.0.7
nameserver 161.26.0.8

This server is part of a Patroni/PostgreSQL cluster and we changed the neplan to let it talk with the other two machines of the same cluster (10.242.23.122 and 10.242.23.126). Here the neplan:

network:
 ...
Score: 0
Ruslan F. avatar
Cwd of a process started from hard link path
US flag

I have an app which is starting by path which contains a folder which is hard link. If I look for process current working directory it is same as source of a hard link. The main problem is that app has relative path for writing logs and etc. So logs are written to a relative path of the original path. Is it possible for process to consider it's logical path as cwd?

Score: -3
Why should I choose Xeon or Epic when Ryzen are way faster?
us flag

I'm selecting 2 servers to run a world-facing web application for a customer. One will host the web server, the other the DB.

I can choose between Xeon and Ryzen CPUs and.. oh, my! Xeons are way more expensive and apparently way slower. Why would someone choose the former over the latter?

Yes, I know that Xeon officially support EEC RAM while Ryzen support in unofficial, but, still, I don't feel comforta ...

Score: 0
pileup avatar
Moved app to Default Application Pool with ApplicationPoolIdentity and there are permission errors
th flag

Running a PHP 8.2 app.

I changed the app to use the Default Application Pool under the user ApplicationPoolIdentity instead of the previous Custom pool and custom account, but now I get:

The stream or file C:\inepub...\logfile.log could not be opened in append mode: Failed to open stream: Permission denied

I then thought I need to add the user IUSR to the users under security and give it all the pe ...

Score: 0
Don40 avatar
Postfix/Dovecot Not receiving external emails in Ubuntu 16.04
ae flag

I have read all of the threads and can't figure out what is the problem. I can send emails. I can receive emails from my localhost and my other email names of the same domain, but I cannot receive emails from external emails like Gmail etc.

Everything is sent and authenticated, but nothing is received.

Here are the configs for Dovecot and Postfix:

sudo doveconf -n
# 2.3.14 (cee3cbc0d): /etc/dovecot/dovec ...
Score: 0
Alien Life Form avatar
How is php-fpm socket folder ({/var,}/run/php-fpm) created on Linux?
ru flag

I am setting up multiple php versions on CentOS7 (native and from remi repos). As installed, the native php-fpm ( is setup on a unix socket, while the (remi) php74-php-fpm would listen on a TCP socket. I changed that by setting:

  listen = /run/php-fpm/php74.sock
  ...
  listen.owner = nobody
  listen.group = nobody
  listen.mode  = 0666

which is OK as long as both services are running. However if I s ...

Score: 0
How to have dnsmasq resolve local domains, but also use DHCP-provided name servers?
in flag

I'm using Pi Hole on my local network, and in addition to providing DNS service, it's responsible for allocating IPs via DHCP, and clients are provided with its IPs to use for DNS.

This all works fine by itself - a client joins the network, gets an IP and DNS server from DHCP and all is good.

I then have Laravel Valet on my local macOS dev machine. One of Valet's key features is to map the .test TL ...

Score: 0
How to add persistent IP address in powershell
us flag

Why can I successfully add an IP address with this command

New-NetIPAddress -IPAddress 192.168.0.168 -PrefixLength 24 -InterfaceIndex 34

but the same command fails for persistent address

New-NetIPAddress -IPAddress 192.168.0.168 -PrefixLength 24 -InterfaceIndex 34 -PolicyStore PersistentStore

New-NetIPAddress : Invalid parameter PolicyStore PersistentStore
At line:1 char:1
+ New-NetIPAddress -IP ...
Score: 0
Ox3 avatar
Proxypass not functioning "500 internal server error"
gb flag
Ox3

I am annoyed at having to constantly type in mydomain.com:10000 to access an application I have. I read on here that you can set up proxypass so I can get app.mydomain.com to serve up mydomain.com:10000so its simple and I don't have to type in the port every time.

I set up the config as per this thread on serverfault but when I try to access it I get the following error

Internal Server Error The ser ...

Score: 1
Dwayne O avatar
Recover Raid in Synology DSM 7
mq flag

After a DSM update, an issue with Synology branded cache drives caused my pool to crash and become unavailable. The 3 dots on the bottom only had the option to remove the pool, no option to enable read/write or repair the volume. I reached out to Synology support and after a week, they were able to get the pool back in read only mode so I could back up my data.

Having remote access enabled for th ...

Score: 1
Bob avatar
How to find RDS public IP. - AWS
mf flag
Bob

I have a command to connect the RDS instance, but I don’t know where this public IP address comes from. Where I can get the public IP address? I took over a project. There is a RDS connection. Recently the connection get a time-out issue. The connection command is like this:

ssh -L 3310:dev.instid.us-east-1.rds.amazonaws.com:3306 [email protected] 

(this IP is not the real IP address, for some ...

Score: 1
Budianto IP avatar
Why does MySQL 5.7 inside a docker container always crash?
cn flag

I have a MySQL 5.7 docker container that was provisioned via a docker-compose file, the file looks like this:

version: '3'

# Run command: docker compose --env-file .env.local up
services:
  # Database
  db_hm:
    image: mysql:5.7
    volumes:
      - db_data_hm:/var/lib/mysql
    restart: always
    ports:
      - '127.0.0.1:3316:3306'
    environment:
      MYSQL_ROOT_PASSWORD: ${HD_DB_PASSWORD}
  ...
Score: 1
Jackie avatar
When I declare multiple NGINX server blocks why do they affect each other?
ng flag

I have the following server blocks...

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /run/nginx.pid;
events {
    worker_connections 1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
   ...
Score: 0
Christopher King avatar
Establish Trust Between Two Active Directory Domains with a Common Root
us flag

In my lab environment, I'd like to create a trust relation between two Active Directory domains that share a common root. One is home.acme.com and the other is work.acme.com. When I create both domains as separate forests and then use the AD Trust UI flow to create a forest wide two way trust in both domains for forest wide authentication, I get an error

The operation failed. The error is: The sp ...

Score: 0
HerrimanCoder avatar
How do I split DNS routing between a domain and subdomain to 2 different locations?
fr flag

I have a domain registered with namecheap: ezsaltdelivers.com. I set the custom DNS to route to my Bluehost VPS using ns1.bluehost.com and ns2.bluehost.com. This all works fine. Website up and running, DNS routing.

But then I realized I need to make a change. I need ezsaltdelivers.com to route to a Wix website (instead of the Bluehost nameservers), and I need my new subdomain (app.ezsaltdelivers.co ...

Score: 0
Pie avatar
Routing And Remote Access with VPN Installed On Same Server
es flag
Pie

Setup

I have a Windows Server 2022 with Routing and Remote Access (RRAS) installed.

enter image description here

The server has two (NICs) ethernet ports.

I have the following setup in RRAS.

Ethernet 1 is the Switch -> Server link and Ethernet 2 is the Server -> Client link.

enter image description here

Issue

The client is able to get internet access until the VPN software (OpenVPN / WireGaurd) is enabled on the server.

I am trying to get the cl ...

Score: -1
Farzan avatar
Windows Servers with Citrix + Credential Guard > CPU use from average 30% to 90-100%. Ideas?
sn flag

It has been observed that Windows Servers with Citrix and "Credential Guard" feature turned on; have jumped in CPU use from average 30% to 90-100%. This is a work in progress and Microsoft has acknowledged it but has there been anyone experiencing the same issue?

Score: 0
stav_nan avatar
Apache Gateway to Dockerized FPM Container?
gw flag

I have a dockerized app with a web fpm interface (monica:fpm-alpine), and a vps on the internet.

I want my vps to be an https gateway to this app.

I thought I could use a virtual host include file and apache mod_proxy to do this, but all I get is grief. The docker logs don't suggest a

This virtual host apache include file has:

ProxyPass / fcgi://localhost:9432/
ProxyPassReverse / fcgi://localhost: ...
Score: 0
cianyika avatar
postfix send for one lan onlyif have 2 eth
bs flag

I have server ubuntu whit 2 network card and i want output 1 lan for postfix and dns, other lan for http ,dns, ftp etc. My configuracion is :

uname -a
Linux mail.domain.com 5.15.0-72-generic #79-Ubuntu SMP Wed Apr 19 08:22:18 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

sudo route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         19 ...
Score: 0
NAT pre/output/post routing/forwarding fails a few minutes after a reboot. What would ask the firewall to stop forwarding?
cn flag

This morning (May 5, 2023), I found that my LAN stopped working on my Ubuntu 18.04 installation. All computers are locked out because the main server FORWARD rules are being ignored.

When I first start the computer, it works as expected. Nothing was installed (one of the first things I checked) and the forwarding has been working for like 10 years. I did not change my firewall. No installation... Just a ...

Score: 0
Learner avatar
Redirect rule IIS
im flag

We have a linux server which is running our old website for example abcd.com. Now we changed our website and it's being hosted on IIS. for example xyz.com. We have a redirect rule setup on linux server for redirect any queries made to abcd.com to xyz.com . Problem is now our teams wants to shut off the old server, with linux server down, people who have bookmarked abcd.com goes to site not available bec ...

Score: 0
Export Server certificate To use in XAMPP for SSL
cn flag

I had to upgrade to XAMPP 8.2.4 on our new OFFLINE web server when we replaced our OFFLINE web server. Both servers are Windows Server 2019. Our old OFFLINE web server was running 8.0.0. In 8.1.0 php uses secure channels and we need to setup SSL. I have a CA setup on my Offline network and have a CA issued certificate on the new server. I need to setup certificate (.crt and .key) file to direct to with  ...

Score: 0
Ben Edwards avatar
Migrating server and backup server to bigger RAID 1 (software) arrays
br flag

I have 2 boxes. The server (actually an ownCloud server) and a backup server. Both are running Ubuntu servers.

The main server has a RAID 1 array of 2x2TB drives.
The backup server has a RAID 1 array of 2x4TB drives (it is running incremental time machine type rsync type backups).

I am getting 2 new 8TB drives so I can double the capacity.

What I want to do is

  1. mirror the backup drives (2x4TB)  ...
Score: 0
Feuermurmel avatar
Avoid missing changes with PathChanged while unit is running
bo flag

I want to monitor a file and run a command that applies the content of the file to my system, whenever the file it changes. I'm currently using a path unit triggering a service unit to do that. In the example below, the command simply copies the contents of /somefile to /otherfile:

# /etc/systemd/system/example.unit
[Service]
ExecStart=/usr/bin/cp /somefile /otherfile
# /etc/systemd/system/example ...
Score: 0
Nginx, reverse proxy and HTTPS
bd flag

I have a problem setting up reverse proxy in nginx for HTTPS.

I have set up Tomcat HTTPS connector on 127.0.0.1:443. It works:

% openssl s_client -showcerts -connect 127.0.0.1:443
CONNECTED(00000005)
depth=2 C = PL, O = Unizeto Technologies S.A., OU = Certum Certification Authority, CN = Certum Trusted Network CA
verify return:1
depth=1 C = PL, O = Unizeto Technologies S.A., OU = Certum Certification  ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.