Latest Server related questions

Score: 0
How to configure a domain on Apache (using apache2.conf or .htaccess) to point to a file that must be downloaded?
sa flag

I have a domain (let's call it mydomain.com).

I already configured the apache on my server, so when I open mydomain.com, the apache landing page appears. Fine.

I put a file (let's call it myfile.zip) on my document root.

What I need is: When the user access mydomain.com, his browser prompt to download myfile.zip

I have more than one domain configured on this server, but this behaviour should work onl ...

Score: 0
dnsmasq as dhcp server using wrong src ip
aw flag

I'm running dnsmasq as a DHCP server on an interface that has multiple IP addresses. The problem is that dnsmasq is not using its server IP (10.13.7.33) as the src IP in its replies but instead another IP (I assume the first one) configured on that interface (192.168.34.1):

192.168.34.1.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, length 319, xid 0xeee372a, secs 28, Flags [Broadcast]
  Your-IP 10 ...
Score: 0
Rafael Corrêa Gomes avatar
How to distribute Varnish cache differently to different kind of requests?
cn flag

I have a redirect in my store that shows a different store view based on the client's location. It reads the header via Fastly and redirects the customer to a different store view using every time the same URL.

When there are many customers accessing the store the cache is mixed, even with the redirect working the cache is distributed to all customers in any location, making customers from the UK ...

Score: 0
Point Sub Domain from Centos 6 Server to godaddy hosting
my flag

I have domain which hosted at centos 6 server and I want to point one sub domain to another server (Godaddy) Should I install DNS server?

Or its enough to edit resolv.conf I tried to add the IP Address of my Godaddy hosting to the resolv.conf and tried to edit httpd.conf but did not find anything to change their

Any advice!

Score: 0
rass avatar
Redirect certain url path from wordpress to another root using nginx
cn flag

It's a pretty simple question, yet I can't find a working answer.

My project is Wordpress (http://example.com/). Under a certain path (http://example.com/see-our-page) it should be redirected to another root directory (vue app) via staying under the same url.

As for now - I get just 404 from wordpress itself, as if the redirect wasn't visible, instead it uses standard routing, trying to find a post with t ...

Score: 0
gstlouis avatar
satadimm reliability as the server operating system
bo flag

I have seen little information about satadimm. I bought a server for a colocation and it came with a viking 400gig satadimm, the first time for me. I thought this was pretty cool, and I was told you can load your OS and save your RAID slots for more mirror or whatever.

My best practice is to have my server OS on a mirror in case once crashes, but from my experience, RAM rarely goes bad. So ho ...

Score: 0
java_enthu avatar
Rejecting connections based on a pattern in nginx
vn flag

in the nginx.conf I have added an if clause to filter the ssl connections based on the cn.

For example

map  $ssl_client_s_dn  $ssl_client_s_dn_cn {
    default "";
    ~/CN=(?<CN>[^/]+) $CN;
}

server {
    listen 80 default_server;
    server_name nginx-server;
    return 301 https://$server_name$request_uri;

    listen 443 ssl;
    listen [::]:443 ssl;
    
    server_name nginx-server;
    
 ...
Score: 0
How to proxy pass a Gunicorn App using MS IIS over https?
in flag

I have a Gunicorn app in a Linux server behind a DMZ that I need to proxy pass with MS IIS.

The following diagram explains the configuration

enter image description here

The problem I experiencing is with the transformation URLs from http to https. For example the source code of https://myapp.domain.org shows this:

<link rel="shortcut icon" href="http://myapp.domain.org/mag_branding/MAG_ico.png" />

This is the first  ...

Score: 0
LosmiNCL avatar
Tomcat looking for the classpath in the wrong place
in flag

I have installed tomcat 9 on CentOS 7, location is /opt/tomcat. It works. But when I wanted to shut it down and to start it again when I used shutdown.sh in my /opt/tomcat/bin folder, I got the error:

Cannot find /usr/local/tomcat/bin/setclasspath.sh

There is no tomcat folder there. when I use echo $CATALINA_HOME it points to the same /usr/local/tomcat. I've read somewhere that I should change CATALI ...

Score: 0
thedankest avatar
powershell can't access to Ubuntu server
ax flag

when I use SecureCRT or Putty, I can access to Ubuntu server on VM using ssh. but I get permission denied(pubkey,password,keyboard-interactive) I thought it could be due to /C:/Users/[username]/.ssh/knownhosts I deleted files in the directory. but it was same. I still think there's a problem with pubkey. Could you kindly let me know how to resolve this?

Thank you.

Score: 1
Jose Garcia avatar
LDAP: Why does slapcat truncate my slapd.log file?
cn flag

I have an OpenLDAP 2.4 server running on Ubuntu 18.04 LTS. Everytime I run

# slapcat -l test.ldif

my slapd.log file gets truncated (i. e. previous log messages are deleted and new ones are written at the beginning of the file).

Actually, the first line of slapd.log shows slapcat's output:

# head /var/log/slapd.log
620ca0f1 The first database does not allow slapcat; using the first available one (2)
 ...
Score: 0
akond avatar
How to dynamically resolve domains?
gb flag

I've got a zone .default.svc.cluster.local with a separate server for it, but I don't want to type all that.

Instead, I want to type XXX.localhost to get to the XXX.default.svc.cluster.local.

I've been thinking of using naptr-record of dnsmasq for that, but its syntax drives me mad. What should I do?

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.