Latest Server related questions

Score: 1
corefile avatar
How to use wget http status codes in an if else statement to take an action based on the status code
fk flag

I'm writing a script that is downloading a bunch of files, I'm using wget to download the file and I want to echo back to the terminal custom status messages for each file based on 3 scenarios:

  1. Files downloaded successfully (HTTP/1.1 200 OK)
  2. Files did not change from the one locally (HTTP/1.1 304 Not Modified)
  3. Anything else is a failed download

I'm able to get the status code and use awk to isolat ...

Score: 1
Nginx domain path issue
bt flag

I have the following domain fairgrounds.mohave.gov. If the users just type fairgrounds.mohave.gov I would like it to go to the following path:

https://fairgrounds.mohave.gov/parks/fairgrounds/

otherwise, just behave like normal. Here is the following configuration:

server {
            listen 80;
    #       listen 443;
            server_name fairgrounds.mohave.gov;
    #       return 301 https: ...
Score: 0
Using Apache ProxyPass to point to express server?
in flag

I'm trying to use proxypass for a specific directory so I can point it to my express.js server https://othersite.life:1447/

Been stuck on this one for hours now. Would really appreciate some insight.

I have enabled these mods and I'm editing /sites-enabled conf file.

proxy
proxy_http
proxy_connect
proxy_ftp
<VirtualHost 117.123.133.207:80>
        ServerName s33d.cf
        ServerAlias www.s33d.cf
 ...
Score: 1
Jetto Martínez avatar
Temporarily disable gcp load balancer
fr flag

When trying to test the HTTP to HTTPS feature present in the Load Balancer configuration, I found out that it wasn't present while editing the Load Balancer I have. I made a new one just to see if I had something different from the guide/example given in the documentation (I used the exact same "components" as in the other Load balancer, minus the names) and the option was there. I went ahead and tried  ...

Score: 2
Chuan avatar
What does the sshd process from "ps aux" mean? Can I reconnect to it?
ng flag

I started using Elastic Cloud Computing on AWS and noticed that when I close and reopen my laptop my ssh session is stuck. When I re-ssh into the virtual machine, it opens up a new session.

I ssh into the server using ec2-user username.

I wonder why the old ssh session is still running and can I reconnect to it?

> ps aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
r ...
Score: 1
Ops Agent installation
jp flag

I have a Compute Instance (Ubuntu 20.04) and have recently installed google-cloud-ops-agent (both via the "INSTALL AGENT" button on a variety of monitoring dashboards which install the agent through Cloud Shell as well as by manually downloading and executing the installation bash script from within the VM). The agent appears to install fine and the service is running in the VM but the monitoring dashbo ...

Score: 0
user3416348 avatar
My laravel .env file is downloadable via ip access! How to solve this on litespeed server?
cn flag

hello I am creating a new laravel project with Openlitespeed server and I saw a glaring security issue. I've added the following rule to the .htaccess of the site root and it works fine by stopping when someone tries to download the .env file by www.mywebsite.com/.env But to my surprise, it is possible to download the .env file easily by accessing the server IP, eg: 127.0.0.1/.env

DirectoryIndex index ...
Score: -1
Local Host avatar
My EC2 Ubuntu instance has not internet access?
ar flag

So im new to ec2 and aws , i created a account yesterday and opened a ubuntu instance, i can update and upgrade or install new packages but the problem comes when using a api that connects to a game api

https://gitlab.com/man90/black-desert-social-rest-api

I build and run api on the instance and runs normal.

Problem is when calling the api for some reason i get 404 not found response.

    Used co ...
Score: 0
Kobus Myburgh avatar
Sessions lost on specific network only
it flag

NOTE: My apologies - I am not a server admin, but I have a problem that I believe may be server related, or combination of server and network related. I do not have too much technical information about the server or network, so I apologize if facts are a bit unclear or scarce. I just do not know. I am not expecting solutions here (bonus if we do get one) but, at least assist me with some question ...

Score: 0
arjunbnair avatar
kubelet service is not running(fluctuating) in Kubernetes master node
gb flag

I was trying to create a Kubernetes Cluster using kubeadm. I had spin up an Ubuntu 18.04 server, installed docker (made it sure that docker.service was running), installed kubeadm kubelet and kubectl.

The following are the steps that I did:

sudo apt-get update
sudo apt-get install docker.io -y
sudo systemctl enable docker
sudo systemctl start docker
curl -s https://packages.cloud.google.com/apt/doc/ap ...
Score: 0
How to scale Active MQ message broker in Kubernetes
es flag

I have a Kubernetes cluster with 2 applications and an Active MQ message broker, is it possible to scale the brokers to make my application faster. I tried scaling it with a StatefulSet however it just spawned 2 different brokers that are operating on their own.

This is my deployment file for Active MQ:

 apiVersion: apps/v1
kind: Deployment
metadata:
  name: active-mq
  labels:
    app: active-mq
  ...
Score: 1
Wireguard use one client as gateway of another
cn flag

I have a Wireguard VPN setup that basically looks like this:

P1 ---- S ---- P2 --- Internet

IP addreses: P1 = 10.200.1.5 S = 10.200.1.1 P2 = 10.200.1.3

I am redirecting all traffic of P1 to S by specifying allowedIps = 0.0.0.0/0 in P1's client config.

Now I want that S routes that traffic to P2. I tried the following on S:

 ip rule add from 10.200.1.5 lookup 200
 ip route add default via 10.200.1.3 d ...
Score: 1
Sara June avatar
How to fix python module not found error with jenkins?
cn flag

I ran pip freeze command with my jenkins job and below is the output

pip freeze 
fpdf==1.7.2
textfile==0.1.4

pip install textfile 
Requirement already satisfied: textfile in c:\python39\lib\site-packages (0.1.4)

But when I ran the python script as a job, getting error as below.

 $ python C:\Users\ADMINI~1\AppData\Local\Temp\jenkins2938633000292670144.py
Traceback (most recent call last):
  File  ...
Score: 0
Maurice avatar
Is an EC2 nano instance powerful enough to be used as a proxyserver that uses openVPN?
ua flag

I would like to create my own VPN for personal use. I want to use EC2 nano instances for that because those instances are the cheapest.

My question is: Is a nano instance powerful enough to be used as a proxyserver that uses openVPN?

EDIT: Just to clarify a bit more; The VPN will be used by me only. So the proxy server will never have to handle more than one connection at a time. So there won't be m ...

Score: 1
flyerhawk avatar
selected hosts in inventory based on subset of name in ansible
dz flag

I'm fairly new to ansible so maybe this is easy to do.

We have a large number of devices that have a consistent naming convention among different environments.

app0[01:25].dev.domain.com
app[01:25].qa.domain.com
app[01:25].uat.domain.com
app[01:25].prod.domain.com

Various devices inside those app servers have specific roles like web server, app server, api server, etc and it is the same across environmen ...

Score: 0
QuestionAsker1995 avatar
Apache takes too long (+4s) to do anything (configtest, exec. PHP, etc)
cn flag

Note: using apache v2.4.6, PHP 7.2.24

I have deployed a PHP application on a CentOS 7 server using httpd. We have two environments (production and testing) and while testing is fast, production is slow.

After checking, it seems the main cause of slowdown on production is the fact that it takes up to 4 seconds to even start running the PHP scripts.

I placed a die; statement at the very beginning o ...

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.