Latest Server related questions

Score: 0
guettli avatar
Use .kube/config Client certs in curl
cn flag

If you use kubectl get pod foo -v10 you see a curl line, but this does not work.

Example:

guettli@p15:~$ curl -k -v -XGET  -H "Accept: application/json;as=Table;v=v1;g=meta.k8s.io,application/json;as=Table;v=v1beta1;g=meta.k8s.io,application/json" -H "User-Agent: kubectl/v1.23.4 (linux/amd64) kubernetes/e6c093d" 'https://127.0.0.1:44529/api/v1/namespaces/default/pods/busybox' 

*   Trying 127.0.0.1:44529. ...
Score: 0
Nginx locations configuration
br flag
Vv.

I have config

location ~ \.(pdf)$ {
    expires 2h;
}

location / {
    ...backend rules...
}

Now I want the first block to be executed only for really existing pdfs, otherwise the request would be passed to the backend. I suppose I should add in the first location block try_files $uri @backend:

location ~ \.(pdf)$ {
    try_files $uri @backend;
    expires 2h;
}

location / {
    ...backend rules...
}
 ...
Score: 0
How do I display the entire firewalld state?
cn flag

I'm trying to work out why a firewall is not behaving as I think I've asked it to behave, and thus trying to work out how to get firewalld to show its complete set of rules, in some format resembling an iptables configuration file. Or some other format – I don't much care – as long as it's as least as readable as an iptables or pf configuration (ie, this is a pretty low bar to clear!).

  • Command ...
Score: 0
How to forward the .config file to remote host together with the agent?
in flag

I have a GitLab server configured on a non-standard port. I am using ssh protocol to clone and push, and I have configured the correct port entry in the .config file of ssh.

Now, I need to connect to the GitLab server from a remote pc. I want to use the forward agent functionality to avoid creating a new public/private key on the PC and a new remote config file.

The forward agent option seems to wor ...

Score: 0
pepoluan avatar
How to set the 'source address' ProxySQL uses to connect to MariaDB?
tr flag

I'm deploying ProxySQL on Docker. When I try connecting to my database via ProxySQL, MariaDB rejected my login attempt as follows:

Access denied for user 'usarr'@'172.18.0.1'

(172.18.0.1 is the container's "internal" IP address.)

The Docker host itself has LAN address of 192.168.9.22. And the user configured in MariaDB is 'usarr'@'192.168.9.%'

How do I configure ProxySQL to connect as usarr@192.168 ...

Score: 0
Costa Michailidis avatar
How to redirect an old subdomain with Route53
id flag

I've redirected an old subdomain blog.mysite.com to my homepage mysite.com with a CNAME record in Route53, but.... it doesn't work. I get no server response at all.

Is there something I'm doing wrong?

Update: Now I get a 403 from Cloudfront.

enter image description here

CNAME Record

Score: 0
ajax1515 avatar
Best Practice: Should Multiple Wordpress Sites be installed on a single VPS Instance or on individual VPS instances? Pros/Cons?
cm flag

We have a a few dozen Wordpress sites, each with their own domain and database schema. They are running on a single dedicated Linux server currently. We would like to migrate them to their own VPS to isolate them from the rest of our production stack for both security and organizational reasons. Our hosting provider has an option for a single cloud VPS and also has an option for a private VPS Parent in  ...

Score: 1
How to use smart websocket client from Windows to connect to a running websocket server on virtualbox?
sd flag

Here is my setup:

  1. Windows 8.1 with Ubuntu 18.04 within VirtuablBox 6.0
  2. Run a websocket server at 127.0.0.1:8083 within VirtuablBox
  3. Within the VirtuablBox, I can connect to the websocket server with websocat ws://127.0.0.1:8083

What is the setup I should use in order for me to connect to the websocket server through the Chrome extension(i.e Smart Websocket Client) running on Windows host machine. ...

Score: 0
mojo avatar
Squid listening on additional, non-configured ports
iq flag

I have squid (5.4.1, FreeBSD 12.3-RELEASE) configured to serve on these ports:

squid    squid      47309 12 tcp46  *:65128               *:*
squid    squid      47309 13 tcp46  *:65129               *:*

65129 is the https listener. Now there are 2 ports open, additionally, one of them should be the cachemgr, the other propably some sort of remote configuration util?

Add.: the first one responds to netcat ...

Score: 0
Naomi Lin avatar
Kubernetes CNI connect any logical Router between different MACVLAN (different subnet) is it possible?
in flag

currently I had explore Multus CNI for my experimental project about migrate Virtual Machine or some of Application that we don't want (cannot change source code) about IP address so I had constraint to challenge that I need to use fixed IP currently I had succeed in using Multus with Pod that have secondary IP via MacVLAN accross Node in my Kubernetes already. I had two subnet 192.168.15.0/24 (Public ...

Score: 0
how to reduce high memory usage in buff/cache?
cn flag

I got 4 WordPress site running on a 2gb Debian server, but only two of them got traffics, totals around 800 to 1000 page view per day, but got high memory usage in buff/cache, more than 1gb.

is it normal to have high memory usage in buff/cache? how to reduce some? thanks

screenshot buff/cache memory usage

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.