Latest Server related questions

Score: 1
Daniel_WW avatar
Docker with Traefik reverse proxy under Synology DSM 7 // free port 80 and 443
cn flag

To run docker with the reverse proxy Traefik v2 on a Synology NAS, I need to be able to use port 80 and 443 on the host system. The Operation System of the NAS DSM uses its own reverse proxy, nginx, which thries to occupy the ports on its own. Under DSM 6.2 I could change the port 80 and 443 by using a boot script (change-ports.sh), like described here, so that the ports went free and could be used by d ...

Score: 1
Newlinux-men avatar
Needs to set nodev option on DB directories in linux
lc flag

I have created two directory for new build linux server & each directory is 200GB in size and will be used for DB . security team did scan they found vulnerability as " No nodev option set to directory". I tried with ""mount -o remount,nodev /mountpoint"" but nodev is not being added in /etc/fstab .

Is it good to add nodev option to DB folder and how I can do this ??

Will unmount the director ...

Score: 0
kevin avatar
nginx reverse-proxy 502 (111: connection refused) while connecting to upstream
cn flag

I have the following nginx configuration:

server {

    listen: 8080;
 
    location / {
        proxy_pass           https://somehost.abc.xyz;
        proxy_redirect       off;
        proxy_set_header     Host somehost.abc.xyz;
        proxy_set_header     food pizza;
    }

}

When i hit the proxy i get the following error:

connect() failed (111: Connection refused) while connecting to upstream, cli ...

Score: -4
cilap avatar
How to extend 1U / 2U servers with multiple 2 slot full height GPUs for sharing?
us flag

What are the possible options to extend a 1U / 2U server with a GPU?

e.g. I am searching for a solution how to add a GTX 1650 into the server. The GPU is usually 2 slots width and therefore often not fitting into a 1U/2U server

for what usage?

  • i want to do a directIO passthrough to a virtualized OS to have a "native" access to a GPU. E.g. for video or GPU intensive renderings (blender, Davinci an ...
Score: 0
Max.-F. avatar
Nginx: unable to proxy some paths to Node.js server (between dwo docker containers)
us flag

So my current setup is the following: I am using docker (rootless install) and want to use Cryptpad (which uses Node.js) with Nginx as a reverse Proxy (disclaimer: I never worked with Nginx before). Cryptpad and Nginx both are running in separate containers. To serve the static files, I created a volume where all static files from Cryptpad resides in and which is mounted in the Nginx-Container (r ...

Score: 1
alvan avatar
CENTOS apache ALL=(root) NOPASSWD: /path/to/shell.sh is not working
jp flag

Trying to do a web interface IPtables management.

Created a file test.php

$output = shell_exec('sudo bash /usr/bin/iptables.sh 2>&1');
echo $output;

Gave /usr/bin/iptables.sh NOPASSWD so I can execute the file with sudo through apache without using a password

sudo iptables -L

sudoers file :

apache ALL=(root) NOPASSWD: /usr/bin/iptables.sh

But I am still getting error

We trust you have r ...

Score: 0
The ssh agent cannot 'resolve hostname' when called from within a bash script
ru flag

I have a bash script

#!/bin/bash
scp -r some_directory remote_host:~

which I made executable with chmod u+x. The remote_host has been defined in my .ssh/config as follows:

Host remote_host
HostName ec2-x-xxx-xx-xxx.eu-central-1.compute.amazonaws.com
User ubuntu
IdentityFile ~/path_to_pem_file/pem_file.pem
IdentitiesOnly yes

when I call scp -r some_directory remote_host:~ or ssh remote_host it works w ...

Score: 0
Terraform ECS Capacity Provider not resulting in new ECS instances on demand
ss flag

From what I read here ECS capacity providers should (generally) prevent tasks immediately failing on resource limits by putting them in a "Provisioning" state and spinning up a new EC2 instance

This means, for example, if you call the RunTask API and the tasks don’t get placed on an instance because of insufficient resources (meaning no active instances had sufficient memory, vCPUs, ports, ENIs, and ...

Score: 0
rootmeih avatar
Asterisk automatic hang up when I try to call
cn flag

I just set up a server with Asterisk set up but when I try to make a VoIP call the line automatically drops...

I use CommPeak as a SIP provider and Bria for the interface

Here's my sip.conf:

[general]
allowguest=no
context=default
bindport=5060
dtmfmode=rfc2833
disallow=all
allow=alaw
allow=ulaw
allow=gsm
allow=g723
allow=g726
allow=speex

; replace INBOUND_SIP_USERNAME and INBOUND_SIP_PASSWORD
; with yo ...
Score: 0
Chris avatar
How can I drop non-matching hosts on GCP HTTP(S) Load Balancer
ru flag

I couldn't find a clear question or answer, although GCP Load Balancer: cannot delete "match all" under "Host and path rules" and Can I make Apache drop a connection when matching a URL? are close, so maybe it's a stupid question . I have read https://cloud.google.com/load-balancing/docs/url-map.

Say I have a rule for domain1.com => URL redirect, another rule domain2.com => static backend bucket ...

Score: 0
showkey avatar
Can't login my webdav built on nginx with right user and password
in flag

I build my webdav server this way:

apt-get install nginx-full
vim /etc/nginx/conf.d/webdav.conf
server {
    listen 80;
    listen [::]:80;
    server_name vps_ip;
    auth_basic              realm_name;
    auth_basic_user_file    /etc/nginx/.credentials.list;
    dav_methods     PUT DELETE MKCOL COPY MOVE;
    dav_ext_methods PROPFIND OPTIONS;
    dav_access      user:rw group:rw all:r;
    clien ...
Score: 1
Asmodean avatar
Nginx Http Basic Auth Security
us flag

So lets say I host something like netdata dash board on port 6000.

Then I nginx reverse proxy it to the subdomain netdata.domain.com

While basic auth is applied at the nginx.conf to allow site wide protection.

My question is, since my connection to netdata.domain.com is http instead of https, my data is not encrypted. So won't logging into to nginx basic auth under this connection basically expose the  ...

Score: 2
narotello avatar
Is there a way to obtain CPS and Thruoghput metrics in Linux?
aq flag

I want to analyze my Debian 9 server's network workload to detect some possible network overloads.

The main metrics I need to analyze are:

  • CPS (connections per second)
  • Throughput

Is there a way to obtain these metrics from within Linux?
I thought that CPS metric could be somehow obtained through conntrack NEW connections events but not sure that this would be the most proper way..

Sorry if obviou ...

Score: 0
Changing Mikrotik PPP Address pool
cn flag

Trying to change address pool given by L2TP connection on Mikrotik. What I have now:
192.168.240.1/23 - local network
192.168.250.1/23 - l2tp address pool, added to IP-Addresses, IP-Pool, Firewall-NAT connection accept.
CMAK-created connection on a Windows 10 machine with routes.txt inside. At this point everything works well.

Now I'm trying to change the 250 pool to 230, so I'm changing it in IP-Address ...

Score: -2
User12 avatar
How to make a change in iis apppool using appcmd.exe
kr flag

I want to edit the parts marked in the photo using appcmd.exe or another comman-line method. enter image description here

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.