Latest Server related questions

Score: 1
alancc avatar
Should I escape slash '/' in RewriteCond?
cn flag

Whether I need to escape the slash '/' in RewriteCond?

Currently I write the following rule in .htaccess:

RewriteCond %{QUERY_STRING} rp=/knowledgebase/
RewriteRule ^index\.php$ https://www.datanumen.com/knowledgebase/ [QSD,R=301,L,NC]

However, this only works for URL like https://www.datanumen.com/fi/customer/index.php?rp=/knowledgebase/7/How-to-order-the-full-version-of-DataNumen-Access-Repair.html& ...

Score: 1
lepe avatar
NET::ERR_CERT_AUTHORITY_INVALID with self-signed CA in Windows
ug flag

I created a (self-signed) root certificate and signed a web server certificate using a system I developed in Java (the web certificate is used in Apache 2.4.41).

The certificates work without issues in Linux and Mac (tested in different Webkit browsers and Firefox). The certificate and the server setup scores A+ using testssl.sh.

The CA certificate is correctly installed without any warning, but n ...

Score: 1
Two different rewrite conditions in the same .htaccess?
es flag

I need to create a rewrite condition for two specific files, according to the requested path in the URL. It's possible?

Condition 1: If the URL is example.com/admin go to admin.php?uri=params. That is:

  • example.com/admin/form => admin.php?uri=form

  • example.com/admin/form/edit => admin.php?uri=form/edit

etc...

Condition 2: If the URL takes ANY OTHER parameter (other than /admin), go to index.ph ...

Score: 0
Jason Frazee avatar
Routing IPsec VPN traffic through NAT
sx flag

We are using UFW and are trying to wrap our head around IPtable rules. We are trying to have a NAT rule on both VPN 1 and VPN 2 that contains arbitrary IP addresses to therefore route traffic to 10.0.1.71 and 10.41.0.131.

Currently test server 1 can curl test server 2 using the IP 10.0.1.234 from VPN Instance 1. We would like to have inbound NATing instead of using masquerading.

We want to use NAT a ...

Score: 0
Jerry Z avatar
How do I sshfs with a jump host and 2 factor authentication on windows?
in flag

How do I sshfs with a jump host and 2 factor authentication on windows?

I work with both Linux and Window. On Fedora I just configure the jump host setup in a config file in the .ssh folder and use sshfs from command line to mount the host storage. To get to the jump host it's 2 factor authentication with one more password on the host node.

For windows, to set things up I used this github project ...

Score: 1
More explicit Nginx logs
kr flag

I use nginx in my MacOS to test third-party authentications such as Google and Twitter in localhost. As a result, on my local website https://localhost:8000/..., I could engage with www.funfun.io for third-party authentications.

Here is the nginx configuration file:

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stre ...
Score: 1
instamattic avatar
Why is my server getting connections from its own IP?
kz flag

The most numerous connecting IP is my server's own IP.

It's Debian 10, Nginx, Mysql machine serving a single Wordpress and phpBB site. It's a virtual machine on Google's Cloud.

I'm obviously not too hot with this stuff, but good enough to build up a machine and have it serve the site.

$ sudo awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -nr

returns

5122 104.198.149.xxx

4268 1 ...

Score: 0
Kaspar avatar
How to create subfolder on mailbox from command line
cn flag

On a CentOS 7 machine running Postfix and Dovecot how could I create subfolder named 'Bulk' on a inbox trough command line?

I thought to use the maildirmake command but this returns "maildirmake command not found".

Score: 0
Issues with resolving of our reverse DNS zone
id flag

Few days ago we noticed some of our outging emails being delayed due to remote mailservers unable to resolve our IP (for example Client host rejected: cannot find your hostname, [92.240.244.176]). We did not make any changes to our DNS recently and our ISP also says they did not touch it.

We have 92.240.244.128/25 delegated from their ns1/ns2.lightstorm.sk to our ns1/n2.mojhosting.sk (our ns1 is running ...

Score: 2
tink avatar
Wireshark find DNS response "Refused"
ru flag

I'm looking for a way to filter a packet capture in wireshark for instances where our server responds with "Refused" to a recursive DNS query.

dns.resp.type== doesn't seem to offer anything that I see as a match to my request, do I need to look somewhere other than under dns.resp altogether?

Score: 1
NotACreativeName avatar
PostFix permit_sasl_authenticated behind a Big-IP F5 load balancer
za flag

I have a functioning postfix server that uses smtpd_relay_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination

I am trying to put this behind a LB. When I telnet or openssl to the virtual IP in my LB I can EHLO and STARTTLS and exchange my user/pw. My SASL authentication uses the local logins. So, I know that I can get through the LB to the postfix relay serv ...

Score: 2
callegar avatar
What should a nameserver return in the authority section for queries to hosts on the .local domain?
in flag

I see that querying hosts in the local domain foo.local some nameservers (e.g. knot resolver) return an authority section containing things like

foo.local.     10800   IN      SOA     foo.local. nobody.invalid. 1 3600 1200 604800 10800

Others (e.g. google) return things like

.                       86389   IN      SOA     a.root-servers.net. nstld.verisign-grs.com. 2021111002 1800 900 604800 8640 ...
Score: 0
Can the enrollment profile tattooed to a PC during the OOBE be changed?
tr flag

Is there a way to change the Enrollment Profile tattooed to a PC during its Out Of Box Experience?

I'd like to use the following filter, but have many machines in production with either blank enrollment profiles or older iterations of the expected enrollment profile's name.

(device.enrollmentProfileName -eq "My Enrollment Profile")

Because of this, I have assigned Post-OOBE configuration to the Group Tag ...

Score: -2
YoavKlein avatar
DNS resolver vs DNS server?
co flag

From what I've got so far, we have what is called "name servers" (authoritative) which hold data about their domain (or zone). For example, the .com domain has an authoritative name server which holds the information about all the subdomains of com. Likewise, the google.com domain has an authoritative name server which holds all the records under its responsibility, etc.

On the client side, we hav ...

Score: 0
user3623992 avatar
Setting up nginx reverse proxy - 500 Internal Server Error
mp flag

I'm trying to set up a reverse proxy server using nginx 1.20.1 on Fedora Server 35, but everything I've tried so far results in an error:

[root@proxy nginx]# curl -I -H "Host: www.example.com" http://10.0.19.1/
HTTP/1.1 500 Internal Server Error
Server: nginx/1.20.1
Date: Wed, 10 Nov 2021 19:54:39 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/8.0.12

10.0.19.1 is t ...

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.