Latest Server related questions

Score: 0
Abe avatar
Failed to restart fail2ban.service: Unit firehol.service not found
de flag
Abe

When you come accorss this error after uninstalling Firehol. Check that you don't have this block:

[Unit]
# Starting fail2ban will automatically start firehol before it.
# Stopping firehol will automatically stop fail2ban before it.
BindsTo=firehol.service
After=firehol.service

in /etc/systemd/system/fail2ban.service.d/override.conf or systemctl edit fail2ban

If you have it, delete it and start/ re ...

Score: 1
Cannot build a working docker image for an openldap service
cn flag

I'm new to docker and I'm doing a little bit of experimenting with it.

I was trying to create a docker image for an openldap service. I tried creating the image starting from debian:latest image provided from the official docker repos.

This is the content of my Dockerfile

FROM debian
RUN DEBIAN_FRONTEND="noninteractive" apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install --yes --no-instal ...
Score: 1
user3553828 avatar
How do I redirect a URL with special (%C2%A0) characters in Nginx
hk flag

I found out that I have link to one of URLs with some garbage behind that would generate some traffic, however whoever it placed it did it wrong:

/domain/sub-directory/%C2%A0

Therefore, I would like to redirect this URL to the one it was intended. However, I could not figure out how to do this properly.

I tried already:

location ^~ /sub-directory/(.*) { return 301 https://example.com/sub-directory/; ...
Score: 2
Moving files with rsync and custom port results in permission denied
jp flag

I'm trying to move some files between servers with rsync and non-standard SSH port. I can login when I just use ssh and supply my password. When I try with rsync I get permission denied. I'm not sure what I'm doing wrong.

This works:

ssh -p 1234 me@192.168.0.123

This doesn't:

rsync -azvhP -e "ssh -p 1234" --remove-sent-files /path/to/source/ me@192.168.0.123:/path/to/destination/

> Permission denied ...
Score: 1
Emre6 avatar
When the ".php" at the end of PHP Files is removed, it becomes 302 redirect
cn flag

I remove the .php file attachment in the application, but this time the application's action pages do not work. Because I removed the .php suffix at the end of the files.

For example, I want to send data to a collect file with AJAX but I get 302 returns.

https://panel.example.com/application/collect

There is no problem with other files of the application.

https://panel.example.com/login
*Version  ...
Score: 3
Apollo13 avatar
Limiting in-band OS access to Supermicro BMC (AST2500) possible?
jp flag

TL;DR: Is there any option to disable OS (in-band) access to Aspeed AST 2500 BMC on a SuperMicro board or at least limit it somehow (e.g. via specific password or via setting the permission level to read-only access)?

Long version:

Last year we bought a few SuperMicro servers containing an Aspeed AST2500 BMC. Up to now we were not using the BMCs but now are in the process of setting them up, reachab ...

Score: 0
SSH remote forward success but test from remote site not working
us flag

Took me a while to figure this out, but finally got remote port forwarding to work with ssh as follows:

ssh -N -i /etc/ssh/id_rsa user@somewhere.com -R 8080:localhost:80 -C -v

The local server uses a private key to connect to the remote server which has a public key configured. Able to authenticate successfully, no errors in the log. The last line that ssh prints is:

debug1: remote forward success f ...
Score: 1
arjunbnair avatar
Kubernetes API server not able to register 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 install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg ...
Score: 0
sofs1 avatar
What is the maximum value acceptable for xargs -P argument?
jp flag

In this answer they mention 10

I did man xargs and couldn't find what's the maximum limit.

Is it possible to send 10000 cURL requests per second? How about 50000 cURL requests per second? I mean all 50000 executing at same time?

Score: 0
quangthang avatar
Proxy a site that has custom authentication
lr flag

Let's say I have mysite.com. I want to reverse proxy it to whatever.com. This could be easily achieved by using Nginx reverse proxy. However, I want the proxy server (mysite.com) to authenticate with whatever.com and then serve that site back to the client. Is it possible using Nginx or any other applications?

Authentication with whatever.com can be done by visiting whatever.com/index.php?act=log ...

Score: 2
journalctl does not provide colored output
cn flag
PSS

I'm on Ubuntu 20.04, and journalctl will not provide colored output for my logs. I verified, and those logs do have colored output if not piped through journalctl. I configured my terminal as xterm-256color. I have tried the following:

  1. I tried applying -a option to journalctl.
  2. I tried setting SYSTEMD_COLORS=true.
  3. I tried setting SYSTEMD_COLORS=256.
  4. I tried applying -o cat option to journalctl.

I k ...

Score: 0
Do I need to encrypt API call if flask listening on localhost only?
ru flag

I'm setting up a flask + reactJS combination for the first time. In my app, I will have a user design something then pass it as json to the flask back end that will do some python combinations.

I have set up a login using Auth0 into my ReactJS app. My flask app only listens on 127.0.0.1:5000.

Question: Do I need to create secure api connection from reactjs -> flask if they are both on the same se ...

Score: 3
Website not being served (NGINX, Ubuntu)
jp flag

Here is my nginx.conf file

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
    worker_connections 4096;
    # multi_accept on;
}


http {

    server {
        listen 80;
        listen [::]:80;

        root /var/www/matsci.io/html;
        index index.html index.htm;

        server_name matsci.io www.matsci.io;

        location / {
 ...
Score: 1
bt90 avatar
HTTPS resource record doesn't work for CNAME
cn flag

My domain is registered with Cloudflare and uses their DNS infrastructure. I'm trying to set up an HTTPS DNS record to signal browsers that my sites can be directly accessed via HTTP/3 and HTTP/2, as described in Cloudflares blog post.

Since I host multiple services, I use a wildcard CNAME for all subdomains. I don't really want to list them all, since the server doesn't have a static IP and I would n ...

Score: 1
PhilHarmonie avatar
How to host an app for multiple customers?
cn flag

I built a web app with NextJS that I sell b2b, where users (my clients customers) can check in to a location. They provide their name and get a check in number. The app shows client related information (opening hours, address,…)

Second part of the app is an admin panel for my clients to login and see all names and check in numbers and can provide more information.

Currently I am in beta phase and  ...

Score: 0
What was linux/unix time standard before inventing epoch?
do flag

As in the title, I was looking for, but hadn't found. How were time stored and processed before epoch standardizing in 2000?

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.