Latest Server related questions

Score: 1
Syed Osama Maruf avatar
Nginx rewrite and return interfere with different location block
cn flag

I have the following configuration in nginx for redirecting in a certain scenario.

location /prefix-someurl {
   if (condition) {
            return 301 $scheme://$host/xyz.html;
   }
   proxy_pass someValue;
}

and in another block there are some rewrite rules like this

location /someurl {
   if (condition) {
            rewrite ^(.*)abc(.*)$ $1test/abc$2 break;               
            rewrite ...
Score: 1
sparecycle avatar
How to load requested file from sub-directory without rewriting base
ws flag

Utilizing .htaccess rules, I'm attempting to load a file from within a sub-directory while keeping the frontend URL unchanged if both the domain and file path match criteria.

Example of URL:

example.com/specificfile.xml

The file itself is within a sub-directory that is not the public web root:

/var/www/feeds/specificfile.xml

While attempting to Google this, I'm getting a lot of results for RewriteBa ...

Score: 0
ECS Deployment Synchronisation
in flag

We have an issue where we have two separate task definitions which need to be deployed together. We need to split the task definitions since the number of containers for this service is more than 10. If one of the deployments fail we will need to roll-back the other deployment to keep the revisions in sync. Is there any best practice about this deployment method? We are using both CodeDeploy and ECS dep ...

Score: 2
inbal stoli avatar
powerdns recursor logging not working
cn flag

i am trying to setup a powerdns recursor with query logging to specific log file with rsyslog. When I set it up and try to query some address and look in the query log file, every line is doubled, it also happens in the journal. I don't know what to do can somebody help me?

This is my configuration files summarized:

/etc/pdns-recursor/recursor.conf -

allow-from=192.168.4.0/24
forward-zones-recurse=.=8.8. ...
Score: 1
GhostWolf avatar
PXE Server on Centos 8, Windows DHCP and DNS on same network. Clients not receiving bootfile
cn flag

I have a Windows AD Domain running on Windows Server 2019, it has DHCP and DNS in addition to AD. I'm trying to setup a PXE server on a different machine running CentOS Stream 8. I got the PXE server installed and it has a static IP address. I added options 66 and 67 in the scope options on Windows DHCP to point to the CentOS PXE server but when I network boot a third machine, it isn't finding the PXE s ...

Score: 0
rajesh_chaurasiya avatar
how to set up websocket server along with two laravel backend and a spa
fr flag

i have two laravel backend setup on different routes. and there is a spa on root. now i want to set a websocket server along with it. here is my website.conf


############## block-4 : multiple subdirectory testing ############
server {
    listen 80;
    #    server_name abc.xyz;
    server_name _;
    root /var/www/html/abc.xyz;
    #    root /var/www/html;

    add_header X-Frame-Options "SAMEORI ...
Score: 0
comctimert avatar
What is the correct definition of a transparent proxy?
jp flag

What is the correct definition of a transparent proxy? I see the term being used for proxies that require no configuration that do not modify requests and for proxies that do require configuration but do not modify the request. What is the correct definition?

Score: 0
trwnh avatar
Local network domain resolution times out with DNSMasq, but works fine remotely
pe flag

For some reason, I can't get this to reliably work the way I want it, across both Linux and Windows, and even across different machines running the same OS.

Let's assume I have a local machine running on 192.168.1.66 and my public IP of 107.214.228.39 is simply forwarding all ports to that local machine via the router.

Ideally, I'd like to be able to simply resolve a FQDN regardless of whether I am loca ...

Score: 0
Confused GCP user avatar
Errors blocking WP admin access and when attempting debugging in host Google Cloud Platform
cn flag

Wordpress VM instance site in Google Cloud Platform is showing an error message which links to debug information, tried the steps in SDK from a tutorial, but not working, not experienced enough to understand. The message I get is ...

-bash: syntax error near unexpected token `'WP_DEBUG','

No idea what this is. Cannot access WP admin or site at all. I received an email (with a recovery link that doesn' ...

Score: 0
lowercase00 avatar
How do I define multiple routes in OpenVPN?
cn flag

I'm trying to set up a server to act as a gateway - basically it will deal with connections coming from a k8s cluster to the external world (mainly databases behind VPNs).

So I have the following setup: OpenVPN with specific routes, and HAProxy that act as gateway.

In my .opvn config file, I have something like this:

dev tun
persist-tun
persist-key
cipher AES-256-CBC
ncp-ciphers AES-256-GCM:AES-128-GCM
a ...
Score: 0
pihole won't start: failed to create listening socket for port 53: Permission denied
in flag

Pi hole was working fine on CentOS 7 until I used pihole -up Now it fails with failed to create listening socket for port 53: Permission denied

  Pi-hole version is v5.3.1 (Latest: v5.3.1)
  AdminLTE version is v5.5 (Latest: v5.5)
  FTL version is v5.8.1 (Latest: v5.8.1)

Port 53 is dnsmasq, and there is a dnsmasq server wich was running, and using port 53. I stopped that service with killall, a ...

Score: 0
Rob avatar
Recover Linux RAID1 - FAT32 but shows ext2, can't assemble, but shows backup superblocks...I am STUCK
bf flag
Rob

I have 2 physical disks in linux RAID1, I am not sure what happened, I think someone who should not have been in the system partitioned the md0 by mistake while the system was running while trying to add a new disk. Regardless, on reboot, it went to grub. I have spent days trying to fix this with systemrescueCD, and stopped the array which showed "UU" before I stopped it, so it should be good, but I am  ...

Score: 0
Chrony doesn't rotate logs after logrotate
cg flag

I have the following logrotate configuration:

   /var/log/chrony/*.log {
    daily
    missingok
    nocreate
    maxage 5
    sharedscripts
    postrotate
        /usr/bin/chronyc -a cyclelogs > /dev/null 2>&1 || true
    endscript 
  }

The first time logrotate runs, it copies all of the chrony log files to files with extensions .log. just as it's supposed to. My expectation is that after  ...

Score: 0
pants avatar
Samba: Restrict network access to all shares except one
us flag

I've got a samba server with a single share that I need to make available to a specific subnet while all other current and future shares should not be accessible from that subnet (but should be accessible via other subnets). Intuitively, it seems the way to achieve this would be using the hosts allow directive as follows:

[global]
  hosts allow = subnet1
[restricted share]
  hosts allow = subnet1 subnet2
 ...
Score: 0
Rsyslog omfwd takes 30 to 45 minutes to begin forward messages
cn flag
ATP

I am forwarding syslog messages from thousands of devices to 8 destinations. In and out traffic is UDP, and we use non traditional ports. I also balance the outgoing load by binding the omfwd actions to different interfaces. It took me a while to get the config setup so that it would handle the flow.

The iftop 40sec for both interfaces is usually above 450Mb

When rsyslog restarts it takes up to an h ...

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.