Latest Server related questions

Score: 1
NGINX Cors allow origin not match origin
cn flag

I have a big problem in my website.

Since i moved from Apache webserver to Nginx the ads in my site are not working.

I added these lines in my website config file in nginx:

add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Origin,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type' always; ...
Score: 1
IPv6 multipath routing with configurable weight
us flag

With Linux kernel 4.14, when I add IPv6 multipath routes with weights (10 & 30), they are getting added with same weight '1'. IPv4 route does not have this issue.

I checked with exact same steps in a different machine with Linux kernel 4.19, where the weights displayed in output seems to match the configuration.

Please help to find what is causing this difference. Could any changes that went int ...

Score: 0
kaounKaoun avatar
Create local yum repository for a package which is available on http
in flag

I am trying to create local yum repo for packages. I have followed steps here to create the repo: https://phoenixnap.com/kb/create-local-yum-repository-centos

But now, I want to create repo for a package helix-swarm which is available here: http://package.perforce.com/yum/rhel/7/x86_64/

Based on the answer here How can I create a yum repository from downloaded packages? , it seems I can do it by dow ...

Score: 1
palik avatar
systemd: Unknown lvalue 'ExecCondition' in section 'Service
ng flag

Why systemd complains?

Jul  5 09:55:33 st701a-9 systemd[1]: [/etc/systemd/system/load-xyz-modules.service:7] Unknown lvalue 'ExecCondition' in section 'Service'

The service configuration /etc/systemd/system/load-xyz-modules.service:

[Unit]
Description=Load xyz kernel modules

[Service]
RemainAfterExit=yes
Type=oneshot
ExecCondition=/bin/sh -c '***'
ExecStart=/bin/sh -c '***'
ExecStop=/bin/sh -c '***' ...
Score: 0
Moh-Aw avatar
Virtual Windows 2019 Server / Files in share randomly not accessible
ve flag

We run an application in which users can create and validate files on a virtual machine (VMWare) equipped with Microsoft Windows Server 2019 Standard.

The users work on terminal servers (Windows Server 2012). They transfer the files to our server via a share.

We're running into the problem, that now and then all user sessions are frozen. The application goes into 'not responding'. The main applicati ...

Score: 0
into avatar
windows backup server (windows server 2012 R2) difference in backup dates
cn flag

Windows Backup Server is doing successful backups on a shared folder at QNAP NAS.

But dates of backups on the server and dates on NAS are different.

Last backup on the server was on 04.07.2021 and it was successful but on NAS it shows the date of 1st backup 02.07.2021....

I set up a scheduled backup so it works once a day.

Can someone explain to me if that is a normal thing or if there is some catch?

 ...
Score: 0
phiob avatar
Rewrite and Cache Response URLs in reverse proxy
id flag

Currently we have a software solution which needs do call home, e.g. for auto update it needs to contact an azure container registry. We are restricted to only have outgoing connections to example.com, all other outgoing connections are blocked by the firewalls of the customers. Therefore all connections we need to operate the software have to go through our reverse proxy.

Therefore we created a reverse ...

Score: 3
Evy Bongers avatar
How can I run a systemd service after network link has been established?
us flag

A while ago I set up a systemd service to run after network comes online per the documentation. This is the unit file:

[Unit]
Description=Refresh Pacman mirrorlist with Reflector.
Documentation=https://wiki.archlinux.org/index.php/Reflector
Wants=network-online.target
After=network-online.target nss-lookup.target

[Service]
Type=oneshot
ExecStart=/usr/bin/reflector @/etc/xdg/reflector/reflector.conf
Cac ...
Score: 2
FlyingPenguin avatar
From AWS to GCP - Is downtime unavoidable during migration?
mx flag

I'm trying to migrate a bitnami wordpress from AWS to GCP. I would like to avoid downtime during the migration. As a new learner, I am not sure how to best handle this.

I have encountered some roadblocks. Typically on Load Balancer and SSL

  1. I would like to use a load balancer on GCP. I prefer Google's managed certificate but the domain's IP is tied to AWS's server. I have to release them from AWS  ...

Score: 1
solveit avatar
Coredns ACL plugin for restricting domain from Kubernetes Pod
ar flag

How can I use use coredns acl plugin for the domain based access [blocking/allowing] the egress calls ? As per my use case I want to control the outgoing calls from my pod.
something like this :

. {
    acl {
        allow net stackoverflow.com
        block net google.com
    }
}

Note: I see in my default pods that coredns pod is already present with image: rancher/coredns-coredns:1.8.3. I understan ...

Score: 0
Fastest way to copy files locally in linux
in flag

So for performance reasons I decided to move 2TB of small files, randomly written during some time - from a 14TB SATA HDD to a 4TB m.2 NVME SSD, both locally attached.

I've been struggling for 2 days straight to get reasonable copy performance.

cp gets ~15MB/s, wich gives me an estimate of about two days of nonstop copying

rsync is even worse at ~5MB/s

I guess the poor performance is due to a random ...

Score: 2
oliverplaner avatar
Linux host routing VLAN traffic cannot receive or make network connections
bs flag

I have a CentOS 7 system that has three interfaces. I recently converted one on those interfaces to using VLANs. This system servers as a firewall and router between the various networks. Everything seemed to be working as expected, except one item. I cannot connect into or out of the CentOS system from/to any hosts on the VLANs.

For example, if I ssh from 192.168.32.95 (a host on VLAN 32) to ...

Score: 1
How to Implement Rate Limiting in Azure Web Application Firewall(WAF)?
br flag

I am looking to implement global rate limiting to Azure WAF. I have created custom rate limiting rules but they are IP based. I know Azure DDoS protection provides a certain coverage limit. But my goal is to have a maximum limit of HTTP requests that I can serve before my application gets unstable or infrastructure cost goes too high. I do have things like maximum no. of K8 pods and their CPU limits def ...

Score: 2
FlyingPenguin avatar
How can I remove a self signed root certificate?
mx flag

I'm using bitnami wordpress on GCP. I'm new to server networking.

There is this root signed certificate that I can't changed. I have not installed any SSL on the server. I've searched through the bitnami wordpress documentation but can't find any mention about this.

I've tried to delete the certificates I found on the server in the directory and generate a temp SSL but still it shows insecure connec ...

Score: 2
user3908406 avatar
How to limit root disk space for pod
gb flag

I have pod deployed on a node with 100gb volume. I only want a pod to have 50gb root disk space.

So I have such config in deployment.yaml:

         resources:
            requests:
              ephemeral-storage: "50G"
            limits:
              ephemeral-storage: "70G"

But when I checked the container (there is only 1 container in the pod) I saw all the disk space on the node was allocated to ...

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.