Latest Server related questions

Score: 0
Nginx if cookie exists, use proxy, if not, run php to create cookie and check again
in flag

I'm trying to create a condition with nginx that if a cookie does not exists, the nginx run index.php to create the cookie, and if a cookie exists, then the nginx goes to proxy.

How I can do this? I'm tried like this:

location / {

  if ($cookie_test = false) {
     try_files $uri $uri/ /teste.php?$args;
     include /etc/nginx/fastcgi_params;
     fastcgi_pass 127.0.0.1:9000;

  } else {

       add_ ...
Score: 0
Tyler avatar
Debugging slower running code
br flag

I'm not a system or network admin but this seemed like the best place to ask this question. If not please direct me to where because I have been banging my head against the wall trying to figure this issue. The issue being the server with faster CPUs is running my processing code in double the time (slower)...

I have 2 servers.

1st(older server):

  • 2x 7402 EPYC CPU
  • Gigabyte Motherboard (R182-Z92-00) ...
Score: 0
Franks_Emma avatar
IPTABLES rule in DNS rec running bind
ru flag

We have 4 DNS Recursive server and 2 authoritative server all of them running CentOs7 and Bind.

So we authorize only DNS 53 port for the anycast interface in rec servers. For iptables we found this rule:

4 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED

So my question is this a can security issue, it needed or no besides we are only need to allow a port53 for dns on the anycast interface. ...

Score: 0
Xionous avatar
FreeIPA user_add fails to add user "user already exists" when it doesn't
tf flag

I am getting an error when trying to create users in FreeIPA. Can someone help me figure out the problem?

ipa: ERROR: user with name "ttest" already exists
ipa user_show ttest
ipa: ERROR: ttest: user not found
ipa user_find ttest
---------------
0 users matched
---------------
----------------------------
Number of entries returned 0
----------------------------
ldapsearch -x -b "cn=accounts,dc=... ...
Score: 0
Aussie avatar
Is there a way to set up a catchall username for all server domains?
cn flag

I know there's a way to set a catchall for any username for a specific domain in Postfix's virtual file, but is there a way to do the opposite? To set up a specific username@ any domain to map to a specific account?

i.e.

@mydomain.com [email protected]

but like this:

certainname@ [email protected]

which will catchall for a specific username at any domain?

Score: 0
Suporte Informatika avatar
TLS authentication issues with Outlook + Dovecot + Postfix + CentOS 8
us flag

I hope you are well! I'm new with unmanaged VPS and I'm running a Contabo server with CentOS 8 and AaPanel my problem is with the SMTP connection with Outlook, my server is only accepting SMPT connections with STARTTLS or without any kind of encryption, but I would like to accept connections with TLS, I'm using Postfix and Dovecot for email management, I'm attaching my configuration files, thank you all ...

Score: 0
How can I configure an etcd cluster to work with salt stack master?
cn flag

The official documentation ( https://docs.saltproject.io/en/latest/ref/cache/all/salt.cache.etcd_cache.html#module-salt.cache.etcd_cache ) shows this example config:

etcd.host: 127.0.0.1
etcd.port: 2379
etcd.protocol: http
etcd.allow_reconnect: True
etcd.allow_redirect: False
etcd.srv_domain: None
etcd.read_timeout: 60
etcd.username: None
etcd.password: None
etcd.cert: None
etcd.ca_cert: None

In m ...

Score: 0
Akshay avatar
Ubuntu 16.04. Rebooted no logs
vn flag

My server which was up since last 6 months got rebooted today. Unable to know the reason so far. Checked the following...

  1. last reboot shows "reboot system boot 4.14.0-generic"
  2. /var/log/syslog - no entry of reboot/panic 11:21 AM - last application logs (generic ones) 11:23 AM - system boot up logs 11:24 AM - resumption of application logs
  3. /var/messages - No entry found related to reboot for that time ...
Score: 1
AkilaMK avatar
How to add custom SSL certificates to cluster Kubernetes
de flag

I have a Kubernetes cluster with 2 master and 3 worker nodes also I have a separate Haproxy server with public IP.

By default, kubeadm generates all the certificates required for the cluster and stores the certificates in /etc/kubernetes/pki

As per the documentation, we can place our one or many custom certificates and relevant keys in the /etc/kubernetes/pki and execute kubeadm init command to genera ...

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.