Latest Server related questions

Score: 1
Whip avatar
ErrorDocument and extension less links not working together
cn flag

On my website, I have the following code to omit the extension of php pages

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]

I also added this code to show custom 404 pages

ErrorDocument 404 /404

Both of these work independently but not when used together. When I visit a dummy link like www.mydomain.com/pagethatdontexist, I want to see my 404 ...

Score: 0
beginner avatar
Is there any load when reading EEPROM inside SFP module?
cn flag

I am trying to measure the optical receving/transmitting levels with ethtool on the server. It was confirmed that ethtool reads information from EEPROM inside the SFP module.

  1. When a read operation to check the optical level occurs in the EEPROM, what kind of load occurs?
  2. When does an SFP or SFP-like optical module store information in EEPROM?

thank you.

Score: 0
darshan kumar avatar
how to Extract multiple OU name using Powershell's Get-ADOrganizationUnit & Get-ADComputer
in flag

In AD hostnames are created under location OU, inside location OU under computer sub OU. i need a script to extract both OU in excel. i am able to extract one OU details through below scrpit

Get-ADComputer -filter * -Properties ipv4Address, OperatingSystem,DistinguishedName |
    select-object Name, ipv4Address, OperatingSystem,
        @{label='OU';expression={$_.DistinguishedName.Split(',')[1].Sp ...
Score: 0
RebRy avatar
Implications of CPU limit on a docker run Java (tomcat) application?
tk flag

I have had an ongoing problem running a Tomcat java web application in a docker container (which I refer to as a 'task' in this post) hosted in an ECS (elastic container service) on AWS.
We notice that the task climbs to 97% CPU usage (using the AWS metrics) and while it sometimes climbs back down to a lower CPU usage on its own, the task generally just shuts down.
Luckily, the ECS spawns a new docker tas ...

Score: 0
ImTheRealOne avatar
Centos 7 sendmail sending emails to incorrect ip address
cn flag

Sorry, I am new to Centos 7 and sendmail.

My email server was working but I had to restart the server. After restarting the email server suddenly fail to send emails to specific domain under my control.

I checked the /var/log/maillog

Oct 26 17:02:03 a_domain sendmail[xxxx]: xxxxx: to=<b@b_domain.com>, delay=00:02:00, xdelay=00:02:00, mailer=esmtp, pri=121209, relay=b_domain.com. [b_domain_ip_addr ...

Score: 0
Using an IP address (and port)
cz flag

Cross posting from SO: https://stackoverflow.com/questions/69722698/using-an-ip-address-and-port

Ubuntu 18/Varnish 4.x

I'm not sure what I'm missing.

The documentation (http://manpages.ubuntu.com/manpages/xenial/en/man7/varnish-cli.7.html) seems to suggest:

...
backend.list [-p] [<backend_expression>]
  List backends.
...
Backend Expression
  A  backend  expression  can be a backend name or  ...
Score: 0
Sandra avatar
How to install Nginx 1.21.3 on Debian 10
us flag

Could someone explain to me how to install Nginx 1.21.3 on Debian 10 please.

thank you so much

Score: 0
Nuno avatar
Restrict user's access to only one directory
us flag

ServerA needs to have a directory of ServerB mounted in a location, with write permissions.

I've been using SSHFS for this. I find SSHFS being very stable (100% reliable), while NFS was not so stable, besides being really hard to configure, and by default exposing to public, etc...

With SSHFS, I had to create a local user on ServerB, and put its private key on ServerA, to setup the mounts.

However, if  ...

Score: 0
Freedo avatar
How to know when nginx marks a upstream as down?
in flag

I'm using nginx and load balancing with this:

upstream backend
{
  server backend-1:80 max_fails=10 fail_timeout=30m;
  server backend-2:80 max_fails=10 fail_timeout=30m;
}

It seems it somehow marked both as down, even if they are working normally. But I can't be sure because I don't know I'd check this for sure

Score: 0
Quardah avatar
RabbitMQ memory alarms set and unset until disk space alarm set and unset until crash
us flag

We have a RabbitMQ server that runs correctly for a while until it starts setting and unsetting memory alarms back and forth :

380 =INFO REPORT==== 25-Oct-2021::17:46:33 ===
381 vm_memory_high_watermark set. Memory used:3437756080 allowed:3338231808
382 
383 =WARNING REPORT==== 25-Oct-2021::17:46:33 ===
384 memory resource limit alarm set on node 'rabbit@rab-server'.
385 
386 ********************** ...
Score: 0
haher avatar
"FetchError no backend connection" error when Apache is running
cn flag
[centos@ip-172-35-25-65 ~]$  varnishlog
    0 CLI          - Rd ping
    0 CLI          - Wr 200 19 PONG 1635280998 1.0
    0 CLI          - Rd ping
    0 CLI          - Wr 200 19 PONG 1635281001 1.0
   10 SessionOpen  c 127.0.0.2 55870 127.0.0.2:80
   10 ReqStart     c 127.0.0.2 55870 894208400
   10 RxRequest    c GET
   10 RxURL        c /
   10 RxProtocol   c HTTP/1.0
   10 RxHeader     c X-Real-IP: 1 ...
Score: 0
After adding server to domain, logging on via RDP is 20 times slower
ve flag

I'm not sure what is going on but I have been building out a new environment remotely. All the VMs I spin up that start out as 2019 servers in a WORKGROUP seems to respond to RDP requests extremely fast and I see no delay at all. The few servers out of the bunch that I have added to a new domain recently created seem to have a delay that is at least 20 times slower in response to my initial RDP reques ...

Score: 0
manual certificate authentication for IMAPS
in flag

I'm running an IMAPS service and users are authenticated with an X.509 certificate. It works fine using Thunderbird. But how I can connect to the IMAPS service manually using openssl? I use the same certificate with openssl s_client than in Thunderbird, but I'm not authenticated.

$ openssl s_client -connect $myimapsserver:993 -key my.key -cert my.crt -quiet 
depth=2 C = US, O = Internet Security Research  ...
Score: 1
Tell saslauthd to reject authentication attempts for all domains other than ours
cn flag

We are running Postfix and require authentication for the sending of mail through SMTP. The authentication uses Cyrus' saslauthd which does a Kerberos authentication against our Kerberos domain.

Is there a way to tell saslauthd to attempt authentications only to the Kerberos domain MYDOMAIN.ORG and to simply reject any other domains? That is, to not even try to authenticate for other domains?

Or, if  ...

Score: 0
How to check for Sixel support in pam_motd on Ubuntu?
gb flag

Ubuntu uses pam_motd to display the message of the day (motd) when logging in. This message is in turn generated from the scripts in /etc/update-motd.d.

Inside one of those scripts I would like to check if the terminal used supports Sixels.

I tried using the LC_TERMINAL variable, but it is not set yet. I also found out that printing a control code with echo -n "\u001B[0c" allows to check for Sixel s ...

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.