Latest Server related questions

Score: 0
Apache/2.4.43 -> .htaccess -> require Rule not working
th flag

I have /srv/www/vhosts/wp_website/wp-content/.htaccess with the following content:

    Require all denied
    <Files ~ ".(xml|css|js|jpe?g|png|gif|pdf|docx|rtf|odf|zip|rar)$">
    Require all granted
    </Files>

But the file /srv/www/vhosts/wp_website/themes/responsive/css/custom_script.css gets a 403 error.

If I rename .htaccess do deactivate it, it works.

1.) Are the rules correct an ...

Score: 1
How does hybrid unicast/anycast work for global load balancing?
gb flag

In the Dropbox Edge network write up, the author mentions that they have taken a hybrid approach by announcing both unicast and anycast ip of PoP.

One can enable this hybrid GSLB by announcing both PoP’s unicast subnet (e.g. /24) and one of its supernets (e.g. /19) from all of the PoPs (including itself). enter image description here

How does this exactly work?

  • When a user enters the dropbox website name, will DNS return both  ...
Score: 0
Hosted VPS various boot issues, can't boot, in a Kernel Panic state?
vn flag

Thanks for reading,

VPS running Ubuntu 18.04

My VPS hosted with OVH is not booting, however the problem seems random. It seems to boot a couple of days ago after me trying it a few times, but then it crashes again. It has been fine for 8 months, no issues, then just stopped.

I know pretty much nothing about how to deal with an Ubuntu VPS unfortunately, just have experience with Windows.

I have been trying ...

Score: 0
Lint avatar
Nginx not matching multiple location blocks
ru flag

I'm scratching my head for around 2 days but not being able to get the desired result basically, I want to use multiple sites based on location. but it always hits the admin route, even If I don't type anything in the address bar. here is my config file.


server {
    listen 80 default_server;
    listen [::]:80 default_server;

    root /home/mad/Ahsan;

    server_name _;

    location / {
        index ...
Score: 0
OpenLDAP: a custom base DN for a user
au flag

Is that possible to make OpenLDAP provide with different base DNs for different users?

Let me explain what exactly I want to acheive.

I have a domain (let's say, dc=example,dc=org).

I also have a phpLDAPadmin instance which purpose is to help me to manage this domain.

I also have a branch somewhere within this domain (let's say, ou=foo,ou=bar,dc=baz,dc=example,dc=org).

I also have a user (let's say,

Score: 0
Compared to SPF MAIL FROM checks, what are HELO checks good for?
cn flag

I’m starting with SPF on my (email) domain. (No DKIM or DMARC yet.)

I see little usefulness in HELO identity checking in SPF and am thinking about setting the HELO identity to my domain (instead of the hostname) or the IP of the machine.

Apart from the following points, what is SPF HELO checking good for? What points stand against using IP or domain as identity in SMTP clients?

  • it is against (the s ...
Score: 0
Google Workspace / primary domain & domain alias
ru flag

I have scoured the web for answers for days, and I mean days! I also can not get a safe and sound definitive answer from Google support.

Q - If I was using a second domain in my workspace for email outreach, and set it as an alias domain to avoid lots of extra seat costs (duplicates users to new domain and then users can use one inbox/login).

Can this effect my main domains reputation in any way?

Score: 0
Getting access denied from watchtower when pulling from docker hub with docker-compose
us flag

I'm getting the following error from my watchtower container:

level=debug msg="Error pulling image aaa/xxx-react18-menu:latest, Error response from daemon: Head \"https://registry-1.docker.io/v2/aaa/xxx-react18-menu/manifests/latest\": unauthorized: incorrect username or password"

I've updated my docker-compose file to have the following which is how I thought I needed to add my docker hub password b ...

Score: 2
Woden avatar
Optimal configuration for a RAID + ZFS
gs flag

What would be the optimal configuration for a server using raid and where I want to place ZFS only?

I heard that while using ZFS would be better not to use at all the raid controller , is it correct?

Score: -1
How can I interrupt the mysqld front process?
cn flag

I want to ask, how is it possible to interrupt a simple mysqld command in the terminal. By a mistake I typed in mysqld in the console and press enter. Now I get the Note that mysqld starting as a process (Process ID). How can I interrupt such a command process in the future? CTL - C, Z, \ and so on are not working here?

If you have a answer, it would be great to explain it also.

Score: 0
How to setup xfrm tunnel on boot for Fedora/RedHat/CentOS?
cn flag

After researching for a couple of days, I was utterly stuck in understanding how to configure XFRM tunnel on boot for Fedora/RedHat/CentOS systems.

I didn't have any issues with the same task on Ubuntu/Debian systems where systemd-networkd & netplan are available.

I create *.network & *.netdev files to describe a new XFRM link in that system.

# 10-lo-xfrm.network

[Match]
Name=lo
[Network ...
Score: 0
ajlittoz avatar
NginX: how to rewrite response body and headers?
in flag

Context

I have a collection of static HTML pages (~10k pages) generated by some application over which I have no control. These pages are served by NginX from a location block.

Pages may contain sensitive data. I would like to be able to block page display depending on user identity and "flags" in the page.

These flags can be implemented by a <meta name=keyword content="flag1 flag2 flagn"> ele ...

Score: 0
pepoluan avatar
Upgrading HAProxy 2.0.13 to 2.4.10 (Ubuntu 20.04) -- performance & issues?
tr flag

My company is currently using HAProxy 2.0.13 (from Ubuntu repository).

Since latest HAProxy (just released last month) is 2.5, we think HAProxy 2.0.13 is a bit "long in the tooth". Also, (claimed) performance improvements of 2.1 seems to be a 'nice to have'.

But due to the 'newness' of 2.5, it's not yet available in HAProxy's ppa; but the latest in the 2.4 line (i.e., 2.4.10) is available. So we figur ...

Score: 0
Emre6 avatar
"rewrite" structure for subdomain on Nginx
cn flag

I want to do a custom rewrite for the subdomain on ISPconfig. When I add the code below for this, the subdomain is redirected to the main domain.

Sample #1:

server {
  ...
     if ($http_host = "panel.example.com") {
         rewrite ^(?!/(_SubDomains/Panel|stats|\.well-known/acme-challenge))/(.*)$ /_SubDomains/Panel/$2 last;
         rewrite ^/(.*)/(.*)$ /index.php?cmd=$1&scd=$2? last;
      }
   ...
Score: 0
PersianGulf avatar
write shell script or other script on vCenter
cn flag

esxcli is existed on vSphere. But I need to write script on vCenter and vCenter doesn't have esxcli command.
How can I write script for vCenter?

Score: 0
tater avatar
Permissions of /dev/null wrong in KVM guest
tr flag

My host node is RHEL7 running KVM from the 'updates' repo. On the host node, the permissions for /dev/null are:

crw-rw-rw-. 1 root root 1, 3 Dec 18 04:45 /dev/null

In an Alpine KVM guest (5.14, but same behavior on other versions), the permissions are missing the "others":

crw-rw---- 1 root root 1, 3 Dec 24 23:22 /dev/null

How can I persistently change the permissions in the guest to match the 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.