Latest Server related questions

Score: 1
jeff avatar
Add a subdomain as an exception in hotlinking
sc flag

I used this code in my .htaccess file and it is working great to prevent hotlinking:

RewriteEngine On
RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} !^([^@]*)@@https?://\1/.*
RewriteRule \.(gif|jpg|jpeg|png|tif|pdf|wav|wmv|wma|avi|mov|mp4|m4v|mp3|zip?)$ - [F]

Now I want to allow one of my subdomains (cdn.example.com) to access my files using a GET request.

It is not possible to add http_reffer to my GET ...

Score: 0
King avatar
Multiple path in Nginx
cn flag

I am trying nginx for the first time and I am running it locally. I have been able to get my services up but I have a puzzling question because I run a Microservice and during upgrade I want to be able to just block a particular service.

Now, each service has a a path eg

\api\v1\wallet \api\v1\card

the issue I have is that both wallet and card path are in the same service.

If I have different paths  ...

Score: 0
L2TP VPN with 2 network interfaces
az flag

I came up with this idea to use an AWS EC2 with two ethernet interfaces for an L2TP/IPSec VPN. One interface (eth0) will be receiving L2TP/IPSec connections (and ssh connections) from clients while the other (eth1) will be acting as the primary VPN interface. The point is that I could use the eth1 interface and it's identity to browse the internet while eth0 is only used to connect to the VPN; it's neve ...

Score: 0
Liam McIntosh avatar
Ubuntu Apache Proxy Pass causing an ERR_ABORTED 404 (Not Found)
us flag

I running two Node.js servers on a Ubuntu EC2 instance listening on two different ports...

In front, I have an Apache server that is acting as a proxy to direct the client to the correct application based on their URL path. I'm trying to get Apache to direct the client to http://127.0.0.1:1337/admin whenever they  ...

Score: 0
fj38193 avatar
Forwarding emails from hMailserver through postfix to their destination
cn flag

Right now my email config is the normal sender -> server -> server -> receiver, but since the first server (sender side) is behind a residential IP, it is on a blocklist and isn't accepted in a lot of places.

I have a cheap VPS that I was trying to get another email server on to make that relay:

sender -> server under my IP -> server on VPS (non-blocked IP) -> receiver server ->  ...

Score: 2
How does unbound handle multiple forwarders (forward-addr)?
in flag

According to https://nlnetlabs.nl/documentation/unbound/unbound.conf/ multiple forwarders can be configured with forward-addr

For the forward zone this list of nameservers is used to forward the queries to. The servers listed as forward-host: and forward-addr: have to handle further recursion for the query.

However there is no statement how these servers are used. Is only the first server qu ...

Score: 0
Kevin avatar
Sent WG trafic to eth1
se flag

I setup a wireguard server with AWS, setup the wireguard client with a raspberry PI.

Now I need to redirect the WG traffic (wg0) to eth1 (eth0 is the uplink to my switch)

-- my goal is to get a IP from my WG server when a client is connected to the PI eth1 (Full tunnel)

my WG config

[Interface]
Address = 10.1.1.1/24
ListenPort = 51820
PrivateKey = ##
PostUp = iptables -t nat -A POSTROUTING -o eth0 ...

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.