Latest Server related questions

Score: 0
Noah Broyles avatar
Prevent Apache2 from executing CGI in Static Directory
cn flag

I am running an Apache 2 web server running on Ubuntu 20.04 LTS. I have a Python CGI handler enabled for the /var/www/html directory, which is the DocumentRoot. I am wondering how to exclude a certain directory from running CGI for Python files.
Here in my CGI config:

<Directory "/var/www/html">
    Options +ExecCGI
    AddHandler cgi-script .py
        <IfModule mod_rewrite.c>
         ...
Score: 3
DroidDev avatar
ngnix php curl old SSL session ID is stale, removing
cn flag

I am making a php curl request from nginx server to apache server

It shows old SSL session ID is stale, removing

As per the link I have changed the SSLSessionCacheTimeout in bitnami apache server but still the error occurs. I have changed SSLSessionCacheTimeout to 1500.

Any help/suggestions would be appreciated.

NOTE: When I run the same api in restclient it works. but when I am calling from the n ...

Score: 1
Significant throughput loss when sending data from 40G to 10G/1G ports
id flag

Not too long ago I put together a 40G network using a Mikrotik CRS354-48G-4S+2Q+RM switch as the backbone of it. I very quickly ran into an issue using this switch, transferring data from a port with more bandwidth than it's destination port causes a very large drop in throughput. For example, my personal Windows machine is equipped with 10G; I have full gigabit internet connected via 1G. Running a s ...

Score: 1
Kafka stores log4j logs in directory literally called ${kafka.logs.dir}
cn flag

I installed a preview version of Kafka 3.0 with log4j2 support (http://home.apache.org/~dongjin/post/apache-kafka-log4j2-support/) on a RHEL 8 server. Kafka and Zookeeper are running successfully as systemd user services. I set the environment variable KAFKA_LOG4J_OPTS="-Dlog4j.configurationFile=file:/home/username/kafka/bin/../config/log4j2.properties" in the systemd unit file so that log4j 2.17 ...

Score: 0
itasahobby avatar
How to blacklist private dns resolution inside docker?
mm flag

Problem

I want to block DNS resolutions that return private range IP addresses. What I've found so far is that to do such thing you need to setup a cache/recursive DNS server. However since I want to use it inside docker that's where I stumble upon difficulties.

The simplest way I found is using dnsmasq (as explained in this other answer). On the other hand just needs to run a single process so found ou ...

Score: 0
ePezhman avatar
Which values for Netem to emulate WAN?
gb flag

I am developing a distributed application, which I'm currently running on a cluster of Ubuntu VMs over LAN. I'd like to evaluate the performance of my application over WAN. So I decided to use Netem and tc to add network delay, etc. . My problem is that I don't know which values to set for latency, jitter, packet loss, etc. which represents a generalized WAN for creating meaningful evaluation resu ...

Score: 2
Sara June avatar
How to checkout a branch from azure devops pipeline?
cn flag

I kept trigger to cloud_singlesignon branch.

But my pipeline saved to azure-pipelines and the default branch to the repo is master.

But the checkout not happening from cloud_singlesignon.

I observed, it is checking out from branch where the pipeline is saved(azure-pipelines), not the one in trigger

Any idea how to troubleshoot this?

my pipeline:

trigger:
- cloud_singlesignon
 
resources:
  - repo: self
 ...
Score: 1
Sara June avatar
How to install custom version of maven in azure devops pipleine?
cn flag

I have installed adopt openjdk 16 using the task below.

steps:
- script: echo Hello, world!
  displayName: 'Run a one-line script'

- script: |
    wget https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz
    pwd
    ls -lRt
  displayName: 'Download jdk'
- task: JavaToolInstaller@0
  inputs:
    versionSpec: '16'
    jdkAr ...
Score: 1
Jupiter rules avatar
POSTFIX / Grey List not working
in flag

I had spam attack on my website. some one using my email to send spam email to everyone.

So now i plan to find a way to stop it.

I see people rejecting mails by regex. But i have tons and tons of different emails (50,000 users).

I want to see if there is email in database then I allow it to go. Otherwise quarantine. Do not want them stuck in mailqueue.

I have this greylist.pl:

#main.cf 
smtpd_rec ...
Score: 1
Managing Firewall Rules for Azure Analysis Services
jp flag

My customer (a legal firm) has an Azure Analysis Services database. Access to the model is tightly controlled to prevent leakage of confidential data. Employees who need to access the model whilst working from home can only do so if their public IP address has been whitelisted by adding a firewall rule to the server. However, the company VPN software (which is always on and cannot be disabled by users)  ...

Score: 0
Professor of programming avatar
Is there a way to keep server times in sync to the millisecond, globally?
et flag

I'm working on a project where I need to keep server times in sync, to the millisecond.

There are servers in the UK, US and Asia amongst other countries, and at the moment someone is manually having to sync the times to ensure they all match, which is difficult and doesn't always get the ms to match exactly.

There are also code fixes in place to accommodate the differences in times across all our se ...

Score: 1
Sara June avatar
How to tag docker image with git commit code short id, in azure devops?
cn flag

I saw few links where I can tag my docker image using ${Build.SourceVersion} in azure devops pipeline.

But it is using the complete ID of the commit.

But I want to use only the short ID.

I mean this (2cc7968) instead of this (2cc79689fc29ad69698d3062688e2a650da62b8e)

How to get this?

My pipeline:

# Deploy to Azure Kubernetes Service
# Build and push image to Azure Container Registry; Deploy to Azure Kub ...
Score: 2
Sara June avatar
How to keep pipeline files in a separate repository for azure devops pipeline?
cn flag

Is there any way to keep the pipeline file separately in a different repo than the one in source code?

So that, we can maintain all the pipelines related data in a separate repository but the pipeline should detect changes from the main repo.

Example:

I have a repo my-code-base and instead of creating pipeline in my-code-base, I will create a separate repo my-infra and save the pipeline files there. ...

Score: 0
QEMU - after dist-upgrade of Debian host, win10 guest state lost
in flag

I'm running a headless Debian host with a win10 guest that I seldomly login to via vnc. Last week I upgraded Debian from Buster to Bullseye, and that also upgraded QEMU from v3.1 to v5.2 (and libvirt jumped from 5.0 to 7.0). Of course, my due diligence checklist did not include making a snapshot from the guest. When I now login to the system, I'm greeted by the Windows installer.

I know my way ar ...

Score: 0
Bind: Zone not loaded due to errors
cn flag

I'm very new to this and I have been trying to set up a DNS server but I'm keep getting the following error when I type systemctl status named.service:

zone 30.168.192.in.addr.arpa/IN: not loaded due to an error _default/30.168.192.in.addr.arpa/IN: no owner

I have followed this video step by step, but I still get the same error: https://www.youtube.com/watch?v=052Txlzk_7w

Linked the video since I canno ...

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.