Latest Server related questions

Score: 1
How to make nginx use request port for try_files redirect?
jp flag

I have nginx listening on port 80 in a docker container which maps the port to 8080.

When I go to http://example.com:8080/test nginx redirects me to http://example.com/test/ while I would expect it to be http://example.com:8080/test/.

Nginx configuration:

server {
  listen 80;
  location /test {
    try_files $uri $uri/ /test.html;
  }
}

How do I make nginx use the request origin to make the redire ...

Score: 1
SFTP change default directory
tn flag

I'm setting up SFTP for a group of users I want to only have SFTP access, for the purposes of uploading files to the server. I already have them jailed to their own home directories, and have blocked shell logins. Each home directory has a subfolder for receiving uploads. I would like SFTP connections to automatically change to this upload folder on login. Pretty standard.

I am using the ForceCommand ...

Score: 0
inadmin avatar
running powershell command does not take the piped value
cn flag

please tell me what wrong with this syntax:

$computername = 'moti10'
copy C:\sylink\sylink.xml \\$computername\c$\intel\
copy C:\sylink\SylinkDrop.exe \\$computername\c$\intel\
copy c:\sylink\SylinkDropCommand.xml \\$computername\c$\intel\
cd "C:\Users\Administrator\Downloads\pstools\"
psexec" $computername -d -h c:\intel\sylinkdrop.exe
  1. it does not copy the files to the destination computer
  2. psexec
Score: 0
AhmFM avatar
K8s nodeLocalDns pod times out connecting to coreDns after upgrading base os to ubuntu20.04 ConnectX-4 card
gr flag

Team,

I have Mellanox Nic ConnectX-4 on a k8s worker node and it hosts a nodeLocal dns pod on it. The nodeLocalDns pod is timing out when trying to connect to coreDns service on k8s cluster.

Same works on Ubuntu18.

Versions failing with

k8s v1.13.5 Baremetal
Ubuntu 20.04.4 LTS   
kernel 5.4.0-100-generic   
docker://19.3.13

below works well.

 k8s v1.13.5 Baremetal
 Ubuntu 18.04.2 LTS   
 kernel  ...
Score: 0
hfontanez avatar
Testing Spring Boot API results in HTTP 405 (Method not Allowed) on PUT
in flag

I created an API which I deployed to Tomcat Server. During development, I would start the application from Eclipse and test the end point using Postman. From Eclipse, the application runs fine. I would see my bot (created with Selenium WebDriver) starting, hitting the targeted pages, clicking the scripted elements, and finishing the process.

I modified the POM to build a WAR file which I manually ...

Score: 2
Harry avatar
Is there some way to change windows disk size without actually increase it?
in flag

What I mean is, for test purpose, Can I change the disk size showed for Windows without actually increase it.

For example, in "this computer", the real disk size is: 50gb, but I'd like to change some setting on windows to make it think that the disk is 100gb. And of course, some way to return the correct size.

Score: 1
Andrew D. avatar
How can I use a plugin in ingress-nginx to wrap a request?
es flag

I'm trying to use the lua-circuit-breaker plugin with ingress-nginx in a Kubernetes cluster. I want to set up two upstream servers such that the first is "wrapped" with this circuit breaker, and it falls back to a different upstream endpoint in case the circuit breaker is open. Both upstream servers are Kubernetes Services.

There are 2 things that I am unsure of at the moment.

  1. The plugin support of ...
Score: 1
Sherman W avatar
Connection through SSH tunnel initially slow
mx flag

I have built an SSH tunneling service that runs in an Alpine based container, based on the approach outlined here: https://github.com/cagataygurturk/docker-ssh-tunnel

The service connects via IdentityFiles, and sets up multiple ControlSockets and tunnels.

I am testing this out against an Amazon Linux bastion, tunneling through to a PostgreSQL database.

SSH login and tunnel creation is correct, and the tu ...

Score: 1
Carel avatar
Cloudfront security headers causes CORS issues
cn flag

I have two different Vue.JS apps deployed to AWS S3 + Cloudfront. The first has the domain set up in Route53, while the second has the domain set up in Google's domain service.

Both of the apps works completely fine. Recently I tried using the cloudfront predefined security headers under the "behavior" settings:

enter image description here

The header policy has all of the following:

enter image description here

The first app (with the domain configured i ...

Score: 0
Lighttpd mod_fastcgi respond only if conf file is using root url pattern
us flag

I have running lighttpd 1.4.59 on Lubuntu 21.10. My lighttpd.conf contains:

fastcgi.server = ( 
"/" => ((
                "bin-path" => "/var/www/html/script.fcgi",
                "socket" => "127.0.0.1:80",
                "min-procs" => 1,
                "max-procs" => 1,
                "doc-root" => "/"
            )))

There are still no problems and both 'localhost' and 'local ...

Score: 0
Appleoddity avatar
Why doesn't the Fedora EPEL repo have Nginx v1.20.2?
ng flag

I have some Amazon Linux 2 EC2 instances.

I've installed the Amazon Linux 2 EPEL topic and the EPEL repo:

amazon-linux-extras install epel

I've installed the latest available version of nginx:

yum install nginx

The version I get is 1.20.1.

1.20.2 appears to have been released on November 16th, 2021. If I take a closer look I can see the EPEL repo is pointing at a fedoraproject.org repo:

Partial content ...

Score: 0
Suddenly dig +nocmd pop3.pauperis.org aaaa +noall +answer returns nothing
cn flag

the command dig +nocmd pop3.pauperis.org aaaa +noall +answer returns the followingin my laptop:

pop3.pauperis.org.  3111    IN  CNAME   pauperis.org.
pauperis.org.       3111    IN  AAAA    2001:41d0:1:8ade::1

but the same command on my server, suddenly, after no apparent config change returns nothing:

# dig +nocmd pop3.pauperis.org aaaa +noall +answer
#

This is the response on my server but with ...

Score: 0
Viktor avatar
Best server option for Django project
cn flag

I have a Django on Postgres web application. It's a business management software. There are no serious calculations going on, but there's a lot of requests from a database. Right now it's running on lightsail $5/month 1 core/1GB-ram debian server and it takes about 5 seconds to load some pages that require a lot of database read/write operations. I will try to optimize the algorithms in the future. In t ...

Score: 0
B.U avatar
Experiencing latency with haproxy load balancer
it flag
B.U

I'm experiencing high latency with haproxy load balancer when backend configuration uses private network IP addresses.

But when I replace backend server addresses with public IP address or Reverse DNS name I experience no latency.

  • What is causing the latency?
  • If one uses public IP or fqdn or Reverse DNS name, does network traffic bypasses haproxy?
  • Is it allowed to use public IP or fqdn or Revers ...

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.