Latest Server related questions

Score: 0
Ivan avatar
SSL subdomain doesn't redirect
cn flag

I am trying to visit app.example.com.

  1. When I type app.example.com, it goes to example.com.
  2. If I type https://app.example.com, it goes to app.example.com.

Why is the first happening?

Here's the nginx.conf

# APP =====================================================

server {
    listen 80;
    server_name app.example.com; 

    return 301 https://app.example.com$request_uri;
}

server {
    listen 443  ...
Score: 0
Why is virt-install failing with “Read-only file system” when specifying initrd on a locally mounted ISO?
co flag

I’m using virt-install to create an Ubuntu machine using the official Ubuntu server live ISO. This command has been working in the past, but stopped working at some point (maybe after upgrading the host OS from Ubuntu 18.04 to 20.04, but I’m not sure).

$ mkdir image-builder-68692987-installer
$ mount ubuntu-21.10-live-server-amd64.iso image-builder-68692987-installer
$ virt-install --name image-bu ...
Score: 0
How to access X-Forwarded-For header on HAProxy behind AWS Loadbalancer
tl flag

On HAProxy instances running on K8S I need to block certain IP addresses manually on HAProxy. Currently I am failing already to log them. Per the AWS docs the loadbalancers set the X-Forwarded-For request header and fill in the clients IP address.

When trying to log this header (and hence the clients IP), I always get empty strings with HAProxy version 2.0.18 and 2.2.20. So I guess, I misconfigured HAPr ...

Score: 0
Is there specificity in DNS?
ch flag
WoJ

I own a domain (say, example.com) and wanted to:

  • automatically update ext.example.com with my public DNS (via a script that will make the update once the ISP-provided IP changes) → this works
  • redirect the apex domain (example.com) to ext.example.com)
  • use a wildcard *.example.com to point to ext.example.com

To this I set up the relevant DNS entries as (+ SOA, NS)

           IN DNAME  ext.example.co ...
Score: 0
manu muraleedharan avatar
Docker COPY fails with no such file or directory, but i am root and can access the file
es flag

Simple dockerfile like this:

FROM tomcat:latest
RUN cp -R /usr/local/tomcat/webapps.dist/* /usr/local/tomcat/webapps
COPY /home/dockeradmin/*.war /usr/local/tomcat/webapps

Third statement fails saying no such file or directory. I am running this as root, inside /root. /home/dockeradmin and *.war file is owned by dockeradmin user, but as root i have access to it.

I can run ls /home/dockeradmin/*.war ...

Score: 0
Aayush Dahal avatar
proxy:error] [pid 137137] (111)Connection refused: AH00957: HTTP: attempt to connect to ip:49000
ph flag

My site was running fine and then I updated nuxt.config.js. Then after that, the site starts to show Service Unavailable.

I am using pm2 to start / deploy the app. Its vps server with apache in it.

Its showing:

Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

But, if I run npm run dev the site loads f ...

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.