Latest Server related questions

Score: 0
Azure Application Gateway Health Probes are not being resolved correctly by apache/nginx
io flag

I am using Azure ApplicationGateway and have implemented Health Probes. I have a number of health probes, with different domains.

I struggled with Apache for weeks, trying to get a healthy probes, but got nothing but certificate mismatch errors no matter what I tried.

After a lot of pain, and switching to nginx as a test, I've discovered that the probe hostnames are not matching correctly to the rig ...

Score: 0
n00dle avatar
iptables loses source address when forwarding to an internal virtual machine (Proxmox)
th flag

I have a Proxmox hypervisor. This proxmox is running a VM with HAProxy load balancer.

I am now trying to forward to this HAProxy via iptables port 80 and 443. Unfortunately the source address is lost and every request comes from 192.168.0.1 (Proxmox).

Am I missing a setting or is my forwarding wrong?
Forward:

iptables -A PREROUTING -t nat -i enp2s0 -d 148.XXX.XX.XX -p tcp --dport 80 -j DNAT --to-dest ...
Score: 0
Change nginx temp & log folder on Windows
ru flag

I installed nginx on Windows but when i execute it from a directory that's different from the folder that resides nginx.exe i get the following error:

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified)
nginx: the configuration file C:/Program Files/nginx-1.20.2/conf/nginx.conf syntax is ok
2022/01/13 08:36:21 [emerg] 136 ...
Score: 0
Some operations fail on Samba share
us flag

We are setting up a network share with Samba that is meant as external storage for a Linux server (Fedora 35). Reading and writing files works, permissions seem to be set up properly. But there are problems with two operations that we would like to be able to do. Both of them work on the same machine if the target directory is not on the share.

The first one is using the share to store Conda envi ...

Score: 0
BiancaP avatar
Postfix bounce mail without subject nor from address
th flag

I have a problem with my postfix servers. When I send an email to an non-existing domain or mail address I get a bounce mail (which is normal) without From address nor Subject. I tried to create my custom template for bounced mail as the documentation shows but I had no luck. I still receive the mail like that.

This is my bounced mail:

This is a MIME-encapsulated message.

--3F0F416065D.1642072227/ ...
Score: 0
Remove domain from hostname while using domain wildcard certificate
ro flag

I am setting up a small network with several servers such as vaultwarden, jenkins and gitlab.

I want to use https with a CA signed certificate. To do so, I have purchased a domain (let's say foobar.com) and have already obtained a wildcard certificate for *.hq.foobar.com.

When I access https://vaultwarden.hq.foobar.com/ I have no complains from my browser, and the certificate is valid.

Unsurprisingly, ...

Score: 0
How to access a SMB NAS installed on a Windows Domain from a .NET Core application containerized on Microsoft Service Fabric (On Prem)
es flag

We have to access a Windows domain SMB NAS from a .NET Core 3.1 application installed on a container; this container runs on Microsoft Service Fabric On Premise.

The current solution, before starting the .NET Core API inside a container, launches a Net Use command in order to mount the NAS on a specific volume with a specific user; with this approach the API can use the volume to access the files  ...

Score: 0
Afshin avatar
Why should I enable promiscuous mode?
cn flag

I'm currently using an environment lab for testing ESXi so I run nested ESX(two ESX are installed on ESX)

The problem is I was trying to install vCenter on both of my lab ESX and at the end of stage 1 of deploying vCenter, I got an error that says :

The installer is unable to connect to vcenter server management interface

After this, although it says I can start stage 2 with the port 5480 of the ...

Score: 0
Mecki avatar
Which Docker container layout pattern is to be avoided?
mv flag

I would like to run two web services on a single physical server using Docker. Both services require a web server and a SQL database. The following setups are thinkable ([ ... ] marks a Docker container):

  1. One docker container per service
[ sqld + httpd + service A ]
[ sqld + httpd + service B ]
  1. One docker container per process
[ sqld for A ] [ httpd for A ] [ service A ]
[ sqld for B ] [ httpd for B  ...
Score: 1
esp avatar
systemd process stdout/stderr
np flag
esp

When I run the service manually, it logs something when it starts.

But I cannot find this log anywhere when it starts as systemd process.

journalctl -u <service> only shows the records about the service starting and stopping, not the actual service output.

I tried adding config to /etc/systemd/system/<service>.service file:

StandardOutput=append:/var/opt/<service>/stdout.log
Standard ...
Score: 0
Nginx $args are being cleared before assigned
jp flag

The proxy request is being made:

location /tracking-ga4 {    
        proxy_method POST;
        proxy_set_header content-type "application/json";
        proxy_set_body '{ "client_id": "$arg_client_id", "user_id": "$arg_user_id", "non_personalized_ads": $google_pixel_non_personalized_ads, "events": [{ "name": "$google_pixel_name", "params": { "name_of_letter": "$arg_name_of_letter" } }] }';

      ...
Score: 0
Matf avatar
Can I hide domain.tld for a specific subfolder and show IP:PORT instead (Caddy webserver)?
cn flag

I use my personal website when testing web applications before they are mature enough to go in production on a dedicated server/website (distinct from my own). I am not a professional though, these are just side projects so there is no clear routine there and I don't have easy access to multiple machines or domains to clearly split things during the testing phase.

Therefore, when I need to share  ...

Score: 0
user3882511 avatar
nginx deploying multiple sevices (ports) on one docker
in flag

I'm struggling for three days now for my nginx config, therefore maybe someone can help...

My situation now:

nginx reverse proxy <--> one VM with one DOCKER which hosts multiple services on different ports (9000 to 9005).

If i test the docker build locally with 127.0.0.1 url instead of public domain everything works fine. If i try to run with https or even https on nginx i fail.

Failings means, i ca ...

Score: 1
Mosky1970 avatar
How does AWS Lightsail Container Service manage memory?
pk flag

I have a container deployment running on Lightsail that manipulates and returns a list of file-like objects. I'm using these objects because Lightsail container deployments do not support persistent volumes.

When I try to return these objects, I get an empty response which isn't the case when the container is running locally. Hence, I suspect this issue has something to do with the way containers d ...

Score: 0
Michal Charemza avatar
sudo to allow apt-get install of remote packages, but forbidding arbitrary commands
cn flag

I'm looking for a way to allow a user to install (only remote) packages via apt-get (or another mechanism?) but not allow them to run arbitrary commands as root.

I can get some of the way there via /etc/sudoers. Say I have this in my /etc/sudoers file

root ALL=(ALL:ALL) ALL
john ALL=NOPASSWD:/usr/bin/apt,/usr/bin/apt-get

Then John appears limited to run apt and apt-get via sudo. But... there do seem to  ...

Score: 0
Asem Abuelhija avatar
Running ps command with 'Irix mode' off
cl flag

I know that within the interactive 'top' screen, I can press 'Shift + i' to turn off 'Irix mode'

Is there a way to do the same thing with 'ps' command?

I am trying the below mini script to print out the top 10 processes that are consuming the CPU, but I want the CPU value to be relative to all cores.

[root@jo00-sat01 ~]# ps -eo pcpu,pid,args,user | (read -r; printf "%s\n" "$REPLY"; sort -k 1 -r -n) |head ...

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.