Latest Server related questions

Score: 0
mhutter avatar
Squid refreshing freshness even with `override-expire`
ru flag

Goal: for the pattern given, cache the response for a given time, no matter what.

So far my squid.conf looks like this:

refresh_pattern -i \.git/info/refs 3600 100% 3600 ignore-reload ignore-no-store ignore-private override-expire override-lastmod

However, the freshness is still validated on every request:

1665672549.558    236 10.0.2.100 TCP_REFRESH_MODIFIED/200 771 GET https://github.com/appuio ...
Score: 0
Geert van Horrik avatar
WinRM connectivity issues with workgroup and vlan subnet
ar flag

Situation:

  1. 1 server (Windows Server 2022) (192.168.15.5)
  2. 1 client (Windows 11) (192.168.5.5)
  3. Unifi network setup where both machines are on a different VLAN (subnet)

On the server:

  1. Run Winrm quickconfig
  2. Run Enable-PSRemoting
  3. Run Get-NetFirewallRule -Name 'WINRM*' | Get-NetFirewallAddressFilter | Set-NetFirewallAddressFilter -RemoteAddress Any (to make sure other subnet should be able to connect ...
Score: 0
user340971 avatar
Windows 10 wrong credentials used to access samba server
ru flag

Running Windows 10 build 19044.2006 (with previous this was working fine) I want to mount a remote shared folder that is on a Debian Samba server:

//server/folder

got the prompt for credentials (user:giacomino and its password) > press OK > got again the prompt

Looking on server side log I see that currently inserted credentials are ignored and replaced with those:

[2022/10/13 13:43:46.829 ...
Score: -1
vigo serrano avatar
(PART 3) Docker environment for PHP Framework from scratch
ng flag

i am runing this docker composer files with this enviroment:

version: "3.1"
services:
  mysql:
    container_name: mysql
    image: 'mysql:8.0'
    working_dir: /application
    command: --default-authentication-plugin=mysql_native_password
    restart: always
    volumes:
      - '.:/application'
    environment:
      - MYSQL_ROOT_PASSWORD=1qazxsw22
      - MYSQL_DATABASE=minos
      - MYSQL_PASS ...
Score: 0
Uhl Hosting avatar
SystemD memcached service - (code=exited, status=1/FAILURE)
vn flag

So I had to deploy in Rocky Linux 8 memcached with SOCKET in /var/run/memcached

In order to avoid the service to fail, I have run the following:

  • systemctl edit memcached.service

Pasted in:

[Unit]
Description=Memcached
Before=httpd.service
After=network.target
[Service]
Type=simple
User=memcached
Group=memcached
# Run ExecStartPre with root-permissions
ExecStartPre=-/usr/bin/mkdir /var/run/memca ...
Score: 0
Cezar Apulchro. avatar
400 Bad Request - Virtual Host
gw flag

I'm receiving "400 Bad Request Your browser sent a request that this server could not understand. Size of a request header field exceeds server limit." I am trying to load a page that is configured with Virtual Host Tomcat 9. My configured Virtual Host:

 <Host name="demonstracao.itcmedb.com" appBase="demonstracao"
            unpackWARs="true" autoDeploy="true">
        <Allias>www.dem ...
Score: 2
Maurits avatar
Prevent the .git directory from being server by NGINX
in flag

I'm trying to prevent nginx from serving the .git directory. I've tried a number of suggested things from this site, e.g:

    location ~ /\.(?!well-known).* {
             deny all;
             access_log off;
             log_not_found off;
    }
    location ~ /\.(.*)/?(.*)? {
             deny all;
             return 404;
    }

   location ~ /\.git {
            deny all;
    }

But all of these  ...

Score: 1
Chris Collins avatar
Remote Desktop Connection cannot connect
cn flag

I have used remote desktop load balancing for about three years with little issue until yesterday, when my some, but not all, of my users started reporting an error similar to the following.

The remote computer BETA.domain.com that you are trying to connect to is redirecting you to another remote computer named ALPHA.domain.com. Remote Desktop Connection cannot verify that the computers belong to the sa ...

Score: 0
Morteza Mirzai avatar
VPN connection to OpenVPN server container doesn't have Internet connection
kh flag

I tried to build an OpenVPN container with Docker. You could see the configuration files below.

Dockerfile:

FROM ubuntu:20.04

RUN apt update \
    && apt install openvpn iptables -y \
    && apt clean

COPY server.conf /etc/openvpn/server/server.conf

COPY main.sh /tmp/main.sh

EXPOSE 1194

CMD ["/tmp/main.sh"]

main.sh:

#!/bin/sh

iptables -I FORWARD -j ACCEPT
iptables -t nat -I POS ...
Score: 0
mhrsalehi avatar
How to check if a host is able to establish a ssl connection to another host?
cz flag

I have an OpenVPN server on port 443. I can not connect to this OpenVPN server:

Thu Oct 13 10:11:39 2022 TLS Error: TLS handshake failed
Thu Oct 13 10:11:39 2022 Fatal TLS error (check_tls_errors_co), restarting
Thu Oct 13 10:11:39 2022 SIGUSR1[soft,tls-error] received, process restarting

OpenVPN is up and running and port 443 is open:

[mehrdad@rock ~]$ sudo nmap -sS -O -p80,443 <the-server-ip ...
Score: 0
Sency avatar
ADFS Claims Provider not receiving username/email
jp flag

I have an on-prem ADFS setup as below with SAML2,

SP <=> ADFS <=> IDP

When the SP initiates an authentication, the client can redirect to the IDP (configured as a Claims Provider) and authenticate himself.

However, I need to pass any form of client identification with the redirection from ADFS to IDP.

I can receive the NameID in ADFS (from SP => ADFS) but I cannot make the ADFS pass it beyo ...

Score: 0
ossama assaghir avatar
Use Multiple Azure Application Insights in one Flask app
ag flag

Hi i have a flask application that Build as a docker image to serve as an api

this image is deployed to multiple environments (DEV/QA/PROD)

i want to use an applicationInsight for each environment

using a single application Insight works fine

here is a code snippet

app.config['APPINSIGHTS_INSTRUMENTATIONKEY'] = APPINSIGHTS_INSTRUMENTATIONKEY
appinsights = AppInsights(app)

@app.after_request
def afte ...
Score: 2
Ehsanai avatar
Redirect part of a URL parameter to the URL-Path
id flag

I used a module that created links like this:

https://example.com/login?create_account=1&back=https://example.com/product/2164/?ets_rv_add_review=1

I need to redirect them to:

https://example.com/product/2164/

There are hundreds of these links.

I tried this but it's not working:

RewriteCond %{QUERY_STRING} ^create_account=([0-9]+)&back=([0-9]+)$
RewriteRule /login https://example.com/produ ...
Score: 0
Vishnu Soman avatar
CentOS7 Remi-PHP81 Followed steps. PHP command not found
uz flag

Trying to install and enable PHP in a CentOS VPS. Found repository information from Remi's RPM Repository - Configuration wizard. Followed steps to install and enable PHP81. But php -v gives command not found error.

yum repolist shows remi-php81.

Is there anymore configurations to be updated like PATH variable?

Score: 0
MarkK avatar
Can't ping or traceroute through EC2 using AWS Site-to-Site VPN to Cisco ASA
ml flag

My VPC is connected to Cisco ASA, tunnel is shown to be UP in the AWS console.

What is working:

  • The engineer on the Cisco side has successfully pinged my EC2 instance within my private 10.5.0.0/17 subnet range.
  • Cisco side SLA is working and pinging.
  • Tunnel is up.

What is not working:

  • I cannot ping their network within their subnet range 192.168.0.0/21.

AWS Configurations:

Route Table for the subn ...

Score: 1
Poney avatar
Rsyslog sends logs by batch to destination after restart
tl flag

I have a fleet of ~70 servers sending logs to Papertrail using Rsyslog.

On September 20th Papertrail encountered an issue and most of our servers logged theses messages:

Sep 20 11:42:30 server-name rsyslogd[7400]: unexpected GnuTLS error -53 - this could be caused by a broken connection. GnuTLS reports: Error in the push function.   [v8.32.0 try http://www.rsyslog.com/e/2078 ]
Sep 20 11:42:30 serve ...
Score: 0
Svajunas avatar
Ubuntu server resets to work only locally
np flag

This is maybe a very stupid question as I am very new to this. Just lost so much time looking for the solution, but couldn't find any so far. So any tips would be appreciated.

My problem is with web server based on Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-126-generic x86_64), which I use hosting my personal website and ftp.

I manage to setup everything (linux, apache, ftp server, mysql, php, wp, ufw, rou ...

Score: 0
Vishnu Soman avatar
CentOS7 VPS: Install WordPress with existing MySQL and httpd
uz flag

Requirement: Install Wordpress in CentOs 7 VPS

Currently available:

Apache : Server version: Apache/2.4.35 (IUS), Server built: Dec 8 2018 02:08:22

MySQL : mysql Ver 14.14 Distrib 5.6.47, for Linux (x86_64) using EditLine wrapper Questions:

Should I install LAMP on top of this or should I just install new PHP version with yum? MySQL is currently used by other applications running on Tomcat. Will these be  ...

Score: 0
GalSuchetzky avatar
Using burp to redirect all traffic to a specific domain (and all subdomains) to a different ip address
kr flag

there is a site a.com with many subdomains b.a.com, c.a.com etc...
assume that the ip address of a.com (what the dns returns) is a.a.a.a

I want to redirect all traffic to a.com and it's subdomains to another ip address, b.b.b.b

How can I do it?
note: using the hosts file will require me to enumerate all the different subdomains and I don't want to do it as I don't know them all.

Score: 0
techie avatar
"Failed to open stream: Permission denied" Lighttpd on Ubuntu (VM Ware)
tw flag

The situation is, I have written some code in PHP to write JSON file in the server(Lighttpd) the code is

'''<?php

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    
    function get_data() {
        $datae = array();
        $datae[] = array(
            'Name' => $_POST['name'],
            'Branch' => $_POST['branch'],
            'Country' => $_POST['country'],
        );
        return j ...
Score: 1
Steven Smith avatar
Setting up PXE using Windows Server & Tiny PXE Server
us flag

I am trying to setup a small PXE/bootable OS > Desktop for testing. I want to boot the OS over network. I am using the built in ISCSI option in Windows Server and Tiny PXE Server. The PXE part seems to be working correctly. I get all the way to booting san and then Windows starts booting. I notice once Windows starts booting, the ISCSI loses connection to the VM or the Desktop (I've tried both w ...

Score: 0
Gradyn Wursten avatar
DNS does not work in docker. Docker can reach DNS provider and has correct IP. Host works
es flag

I have Docker installed on Ubuntu Server 22.04 (via apt not snap). Everything was working until I upgraded from 20.04 to 22.04. Now, DNS does not work inside docker.

$ sudo docker run busybox nslookup google.com
Server:         1.1.1.1
Address:        1.1.1.1:53

Non-authoritative answer:
Name:   google.com
Address: 172.217.0.78

*** Can't find google.com: No answer

as you can see, docker is attemptin ...

Score: 0
Michael Harris avatar
Pull image in AWS EKS cluster from on-prem Docker proxy server protected by VPN
mx flag

I have a kubernetes cluster in AWS EKS. From the cluster, I need to pull Docker images from an on-prem proxy server.

When pulling the images from my local machine, I must create a VPN connection to the on-prem network. Somehow, I think I'd need to create a VPN tunnel to the on-prem network from my EKS cluster in order to begin pulling images, but I have no idea where to start.

I don't personally hav ...

Score: 1
hafwan avatar
enquiry on performance boost/hit for centralized source code location
mo flag

My website currently has multiple windows servers , all of them local in intranet, and each of them have the same source code in the same folder. Currently my workflow is every time I want to Live a new feature, I have to copy and paste to each of those servers. It's getting tedious now since I have around 10 servers, and there have been cases of my colleagues and I missing a server.

We have been  ...

Score: 1
Jose Miguel avatar
RewriteRule in RewriteRule
mw flag

I need help with nginx, to create a rule in the url

I have this route: "/site/assets/523917fe/example.js"

but I need the nginx to interpret it

location / {

      index index.php;

      try_files $uri /site/frontend/web/index.php$is_args$args;

       rewrite ^assets/(.*)$ frontend/web/$1 break;
    }

since this is the real path: "/site/frontend/web/assets/523917fe/example.js"

Thank you

Score: -2
one_hell_of_a_guy avatar
Increase server's logical drive support
cz flag

I have an HPE ProLiant DL360p Gen8 Server, with one P420i controller. As I read in its specification, the controller's limit is 2 logical drives. What part(s) should I buy in order to increase it to 8 drives?

Score: 0
vigo serrano avatar
(PART 2) Docker environment for PHP Framework from scratch
ng flag

My First post is done here: Docker environment for PHP Framework from scratch Because I solved the first problem and I can't update or reuse a post, I prefer to create a new post with the new question from the same scenario, the scenario has some changes.

I need help to create my development environment in docker I have several errors implement this stack and I do not achieve my goal. I'm looking to g ...

Score: -1
Diego avatar
Migrate WinServer 2012R2 to 2022 + Exch 2013 to 19
tw flag

Friends, I have an environment with Windows Server 2012 R2 + MS Exchange 2013. I need to migrate 2012R2 to 2022 and migrate Exchange 2013 to 2019. Is it possible to migrate 2012R2 to 2022 and then immediately migrate Ex2013 to Ex2019?

What should be the correct order of steps?

Add 2022 as DC and then install EXCH2019 pointing to DC2022 and only then upgrade AD function levels?

Thanks!

Score: 0
HWD avatar
Trouble with data synchronization and writable per-user subdirectories using EFS
fj flag
HWD

I used this EFS walkthrough to mount my EFS and enable writable per-user subdirectories on my EC2 instance.

According to the documentation, All files and subdirectories the user creates in their home directory are then created on the Amazon EFS file system. But when I look through the user directories in /mnt, they do not all contain the files and subdirectories that are in the corresponding user home ...

Score: 0
user3308807 avatar
How to cause a network down event on a server?
mt flag

This may seem weird, but I actually would like to cause a network failure on a project I'm working on. It's a microcontroller that is running tcp/ip and I just want to see what would happen if the network got dropped somehow. I want to ensure the software I've written can handle this event gracefully.

So how do I cause the network to go down without simply pulling the ethernet cable? (I don't wan ...

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.