Latest Server related questions

Score: 0
Meadowlark Marsh avatar
Certbot cannot check challenge because of Apache "Redirect / domain.com"
cn flag

So there is this server that is all messed up but that is besides the point.

I ran certbot and it failed. Checked the vhost for port 80. It has the blanket redirect.

It dose not seem like it would cause a problem right? Well it is, I commented it out and certbot ran no problem.

So then I tired creating a new vhost just for certbot. "ServerName domain.com.well-known Directory /var/www/certbot" Then runn ...

Score: 0
O'Niel avatar
Nginx reverse proxy for two webapplications
in flag

I have two applications.

  • Laravel Application - Being just a dynamic website. Does not have data-knowledge. All the data gets fetched from the second application using AJAX-requests. Runs on 127.0.0.1:8000.
  • Rust Application - A web-application containing all the business logic and data-access. Runs on 127.0.0.1:8080.

Both applications need to be accessible from the URL example.com. For this I wa ...

Score: 0
Toorero avatar
Apache Reverse Proxy for SSH Tunnel
pt flag

I want to set up an Apache reverse proxy for my Home-Assistant(hass) instance running in my local network.

I tunnelled the traffic of the local hass instance to a remote server with ssh -N proxy@example.com -R 8123:localhost:8123.

Now I tried to set up a plain reverse proxy in Apache:

<VirtualHost *:443>
    ServerName hass.example.com

    SSLEngine On

    # If you manage SSL certificates by y ...
Score: 0
Gino Pacitti avatar
Can't access GCP container ports externally
br flag

I have set up a containerized instance on Compute Engine and spun up a docker instance of tomcat.

I have a docker-compose.yml file that maps 8080:8080 to the container for tomcat.

I am also spinning up a mongo db which is referenced in the docker-compose.yml file on the default port for it.

The OS instance shows internal and external IP addresses and I have even set up firewall rules to open up port 80 ...

Score: 0
Kamil avatar
Can I send raw TCP data directly from Mikrotik using script?
it flag

I want to control some network relay that accepts commands from PuTTY in raw mode.

Is it possible to do this with Mikrotik router? As far I know Mikrotik routers have ssh and telnet client server and client, but what if I want to send raw data?

Score: 0
Mohammed Noureldin avatar
PAM permit works only when dummy suffix is added
pe flag

I am trying to use PAM to authenticate OpenVPN against 2FA (not important info). Here is my PAM configuration:

account required        pam_permit.so
auth    required        pam_google_authenticator.so secret=/etc/openvpn/google-authenticator/${USER} user=root forward_pass nullok debug authtok_prompt=pin

I have an issue in the first line (or wherever I put it). Using the line as shown causes the PAM co ...

Score: 0
Robert Minor avatar
Can't start MYSQL external mount centos 7
ph flag

Brand new install on a new DigitalOcean droplet. I am going to run replication into this cloud server from my local network. I was trying to install the same version etc. mysql5.6.50 and then run it on a external volume. My current db is 370gb and I will need some overhead. I created the droplet and added a 500gb drive, installed mysql started and verified proper base operation. Then I followed these in ...

Score: 9
MFerguson avatar
IPv4 Properties Settings for servers on an isolated network?
br flag

I have a question related to servers which will not have any outside internet connection.

The topology is very simple :

enter image description here

I have an example IP address of 10.10.10.10 for the server and the workstations which have IP addresses 10.10.10.30 and 10.10.10.31.

How exactly is the IPv4 properties supposed to be configured in this case?

I am confused as there is no router and am unsure as to what exactly the defau ...

Score: 0
Mauro Tridici avatar
HPACUCLI shows logical drives not available. How to fix it?
mx flag

since I need to copy some data from an old HP DL380 server, I decided to power on it after a long time. Unfortunately, I can't mount the RAID5 logical volume that is containing the data I need.

So, in order to better investigate, I started using HPACUCLI tool and I noticed that the logical drive #1 is not available (but hard disks are ok). Do you know what does it mean and how I can fix it (if I  ...

Score: 0
Appleoddity avatar
How to convert BASH script to DASH or other solutions?
ng flag

I am creating an AWS distributor package to modify the syslog configuration on different flavors of Linux servers. I wrote a few simple bash scripts to handle the install, uninstall, and update. I thought this would be universal. However, today I found out that AWS uses sh to execute the script (i.e. sh install.sh) and on Ubuntu/Debian this defaults to DASH and not BASH. For that reason my scripts ...

Score: 1
Jeff avatar
Is it possible to detect an ajax request with Apache 2.4 for a mod_rewrite rule?
dj flag

Is it possible?

Trying to move my script security to the server-level.

With PHP, just check if $_SERVER['HTTP_X_REQUESTED_WITH'] is set to XMLHttpRequest (jQuery added).

I guess maybe a better question is, how can I add the X-Requested-With request header to a variable I can check with a mod_rewrite RewriteCond?

Score: 0
Paul avatar
Is there a technical requirement to serve 404 responses?
cn flag

Is there a technical requirement (e.g., RFC) to serve a 404 response?

Or does some other problem emerge if requests not found are dropped or replies empty?

Score: 0
Change ip address link to be http instead of https
gt flag
Joe

I recently abruptly changed domains because my old domain got hacked. I bought a new domain, but it doesn't show in google search results yet. I submitted a crawl request via google search console but I'm told it could take a week. In the meantime, when people search my website up, the ip address of my server pops up in the search results. I already edited my nginx config to redirect the ip to my new do ...

Score: 0
tran luong avatar
Iptables limit connections
fr flag

I found this solution when using to limit connections:

iptables -A INPUT -p tcp --syn -m connlimit --connlimit-above 5 --connlimit-mask 0 -j DROP

when testing this rule on my server, I create 10 instances to connect to my server, it works to just allow 5 connections. However, anytime I restart my server the first 5 instances are always connected. I expect the rule will be fair for all instances to con ...

Score: 0
/proc/meminfo shows MemFree greater than MemAvailable - Does it make sense?
in flag

From what I could understand from this change in Linux reported memory usage, /proc/meminfo reports MemFree as currently unused RAM, and MemAvailable as RAM currently available to new processes without swapping.

From this, shouldn't MemFree be contained in MemAvailable, thus being always less or equal than it? I guess unused RAM is also available to new processes without swapping. Or am I misunde ...

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.