Latest Server related questions

Score: 1
Is is possible to change a path's root folder with .htaccess?
de flag

I have a website set up with its own root directory in the common configuration:

mywebsite.com --> /path/www/mywebsite

And them pathnames on mywebsite get naturally mapped to their corresponding subdirectory:

mywebsite.com/folder_a/ --> /www/mywebsite/folder_a/
mywebsite.com/folder_b/ --> /www/mywebsite/folder_b/
mywebsite.com/folder_c/ --> /www/mywebsite/folder_c/
... and so on

I would like  ...

Score: 0
Christopher Gibson avatar
I have been trying to update my SSM agent. I'm running the command AWS updatessmagent
cn flag

I have been trying to update my SSM agent. I'm running the command AWS updatessmagent. This is what I am getting.

PS C:\Windows\Temp> AWS-UpdateSSMAgent

AWS-UpdateSSMAgent : The term 'AWS-UpdateSSMAgent' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
 ...
Score: 0
haher avatar
Apache not responding due to port mapping
cn flag
[centos@staging03 ~]$ sudo netstat -tulpn | grep LISTEN
tcp        0      0 127.0.0.2:80                0.0.0.0:*                   LISTEN      18336/varnishd      
tcp        0      0 127.0.0.1:80                0.0.0.0:*                   LISTEN      15636/fcgi-         
tcp        0      0 172.31.22.60:80             0.0.0.0:*                   LISTEN      1557/nginx          
tcp        0      0 0.0.0 ...
Score: 1
Cornelius Roemer avatar
What does warning `client_input_hostkeys: received duplicated ssh-ed25519 host key` mean?
jp flag

When I use scp to copy some files from a server, I've lately been getting the following warning:

$ scp -rC myserver.com:~/test.log .
client_input_hostkeys: received duplicated ssh-ed25519 host key

I tried googling what this means and how to fix it but couldn't figure anything out.

This is the scp command I use for reference:

I get the error on MacOS 12 with both fish and bash shells.

I have a paral ...

Score: 0
Jakube avatar
Large custom GCP metric
in flag

What's the best way of creating large custom metrics in GCP?

We are running some compute instances, and want to track some custom values, e.g. the quality of an algorithm, and visualize the data into dashboards. Our current solution is to write log messages, and use Logs-based metrics. That works, but it requires that we write a log message for every single value, which sounds kinda inefficient (lots o ...

Score: 1
Adam avatar
Postfix - add x-header to show which transport has been used
eh flag

I have postfix configured with multiple IP's using round robin transport.

How can I add an x-header to detail which of the transports was used to send the email ?

ie so on a received email i could look at the headers and see which transport was used.

many thanks!

Score: 3
user3098466 avatar
Is the sum of IOPS for individual physical disks not equal to the raid0 logical disk?
ph flag

I have a raid0 set up consisting of 2 physical disks:

bash-4.2$ lsblk 

NAME    MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
xvda    202:0    0  100G  0 disk  
`-xvda1 202:1    0  100G  0 part  /
nvme0n1 259:0    0  1.7T  0 disk  
`-md0     9:0    0  3.5T  0 raid0 /home/ec2-user/deploy
nvme1n1 259:1    0  1.7T  0 disk  
`-md0     9:0    0  3.5T  0 raid0 /home/ec2-user/deploy

I created some write load by the f ...

Score: 0
kjohnson avatar
How can I temporarily and remotely stop a cluster resource from failing over to another node (Windows Server 2008 R2)?
ng flag

Two Node Cluster, Windows Server 2008 R2.

I have a weekly script that runs and does some things to one of my applications, before this can happen I have to turn off an associated service. The issue is that if I just turn the resource off via powershell or pywin32, it will start back up on the other node in the cluster. I believe this is because "auto start", I would think I just need to disable t ...

Score: 1
BenPhys avatar
Is there a rights managment system for linux in company networks for local root support?
us flag

I work at a large research institute (10k users) with various systems (Mostly Windows and Ubuntu Linux). I am not an expert in such network structures but I work at home with Ubuntu myself and like to install software as well. We do have a whitelist for sudo to install generic dep packages. However we do not have full sudo access. Windows users have a full administrator account on windows. My admin told ...

Score: 0
alwaysatfire avatar
Red Hat 8 - Policy-based Routing
us flag

I have a issue with routing inside the RH8 server.

So the concept is:

1x Red Hat server with 2 interfaces (different VLANs; 150 & 160)

interfaces teamed like:

  1. IP 192.168.50.150 - interface: team0.150
  2. IP 192.168.60.200 - interface: team1.160

1x Windows 2012 R2 server with 1 interface (different VLAN; 180)

  1. IP 182.10.50.180
  • Windows can ping/ssh/telnet to 192.168.50.150 (vice- versa) and it is ...
Score: 0
laimison avatar
Can clients run a IPIP (protocol 4) tunnel inside Wireguard as in OpenVPN?
au flag

When two subnets are connected via Wireguard, clients can communicate to each other using TCP/UDP/ICMP. Can clients run IPIP (protocol 4) tunnels in Wireguard as in OpenVPN? I'm planning to migrate from OpenVPN to Wireguard and checking if it will work.

Thanks

Score: 0
user6329530 avatar
Can not decrypt automysqlbackup files
us flag

I am trying to move a backup and decrypt it.

# openssl enc -aes-256-cbc -d -in daily_db_2021-11-08_03h00m_Monday.sql.gz.enc -out daily_db_2021-11-08_03h00m_Monday.sql.gz
enter aes-256-cbc decryption password:
*** WARNING : deprecated key derivation used.
Using -iter or -pbkdf2 would be better.
bad decrypt
140497360426304:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:../cr ...
Score: 0
Ruben Rosemary avatar
Configure third party DNS to Static Public Ip attached to AWS ElasticBeanStalk
cn flag

First at all, I am a beginner in this fields, so apologies If my questions is stupid or just too easy.

What do we want to configure? Well, we have a partnership with a website wwww.partner.com.

We have an application running on elastic beanstalk with an application load balancer. And we need to provide to our partner a STATIC IP for the to link www.partner.com/ourcarpet to it.

To sum up, we want this  ...

Score: 2
SomeoneSomeoneSomeoneSomeoneSo avatar
AWS: Can't mount my restored volume (EBS snapshot)

I restored an EBS volume from AWS Backup and attached it to a new EC2 instance. When I lsblk I can see it under the name /dev/nvme1n1.

More specifically the output of lsblk is:

NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0         7:0    0   25M  1 loop /snap/amazon-ssm-agent/4046
loop1         7:1    0 55.4M  1 loop /snap/core18/2128
loop2         7:2    0 61.9M  1 loop /snap/core20/1169
loop3 ...
Score: 0
Álvaro avatar
Getting 502 from Nginx when processing node app
hu flag

I am running an app with react and node that uploads csv files via react, node then converts them to json, processes the data and finally it outputs an excel file using npm exceljs, the whole thing takes a little time on my local environment but it works well.

But when I put it on production I get a 502 error when it's processing the excel file.

There is no much information other than 502, on the ...

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.