Latest Server related questions

Score: 0
vic vic avatar
Nginx reverse proxy SSL using different domain on each side
cz flag

I need a little tip on how to solve a setup I came across where client wants to access an HTTPs API hosted on api.foo.com (our domain, with *.foo.com certificate) using api.bar.com (client's domain name).

The request is routed through a point to point VPN from their infrastructure to ours using internal static IP addressing.

So client makes a request on their side to https://api.bar.com and reaches an sta ...

Score: 1
markbarabus avatar
Redirect all URLs ending in ".-detail" to remove the dot
mv flag

I have a rather odd situation where our old URLs are ending in .-detail and need changing to just -detail.

For example:

  • example.com/product.-detail needs changing to example.com/product-detail

In other words the . needs removing.

I figured a simple 301 rule would do the trick but I'm having trouble getting the condition string to pass

RewriteRule ^$.-detail https://www.example.com/$1-detail [R=301,L]
Score: 0
Robert avatar
Dovecot How To Periodically Empty All Users Mailboxes
gb flag

I have a fresh install of a Dovecot (and Postfix) setup on Ubuntu Server 22.04

The configuration is exclusively for local mail between desks and the messages are in practice instant only

in few words , the drive storage is limited and this is not the office official mail

These mails will be just instant messages between users and the history will be kept in the respective Thunderbird clients. Please no ...

Score: 0
Mick8695 avatar
On some servers, my users have to use @ to login and on other servers they have to use the domainname\username ormat
in flag

On some servers, my users have to use username@domainname to login and on other servers they have to use the domainname\username format. All the servers are in the same domain, and running Windows 2012 and 2016. The wrong format gives error Incorrect credentials.

Has anybody seen this behavior before? Does anybody know what might be causing it?

Score: 0
MyaBee802 avatar
Drupal 9.4.8 Webform Authorization Bug Causing [authz_core:error]...AH01630
ge flag

I'm fairly new to Drupal, about 4 months experience. Everything was going fine till I started working on a webform over the weekend with a twig "If else statement" when I inadvertently added "'#access_create_roles': - authenticated". Suddenly I was locked out. I knew pretty quickly what I'd done. But now I'm struggling to undo it. I don't have a recent backup. Nor can I access phpmyadmin. My only access ...

Score: 0
ebarrere avatar
AWX can't find host during provisioning callback
cn flag

I have recently set up RHEL Satellite and I'm now integrating with our AWX/Ansible Tower implementation. The curl request I'm using is as follows:

/usr/bin/curl -k -s --data "host_config_key={REDACTED}" https://awx.fqdn.com/api/v2/job_templates/34/callback/

This appears to (correctly) kick off an inventory sync (and the host is in the Satellite inventory), yet the AWX server returns {"msg":"No m ...

Score: 1
IIS backup is backing up old history not new live data from IIS (All sites and Pools not new)
jp flag

Windows 2016 Core Servers / IIS10
==IMPORTANT==
The backup seems to be backing up OLD data.
It seems that it is picking up on history instead of backing up the LIVE data.
This will explain WHY it is not getting all the sites and pools during the backup of either of the two methods below.

Looking in the
C:\Windows\System32\InetSrv\config
Folder, I see that all the files here are from 2020, so it backs this ...

Score: 0
sgt avatar
HAproxy as fowarding server?
cn flag
sgt

I am trying to forward requests, locally to haproxy. I cant seem to get it working, I have a script which calls this end point every n sec, and even though i have it set on etc/hosts it doesn't get routed via haproxy ? I do this routing inspecting SNI and applying an acl for the respective backend.

I set on etc/hosts:

127.0.0.2 example.com

Defaults:

defaults
    log  global
    mode    tcp
    optio ...
Score: 0
gsck avatar
Server crashing every 14 days, no bugcheck
wf flag

Every 14 days one of our Windows servers crashes. We have been trying to figure out what causes this but to no avail.

Today we noticed a pattern in the shutdowns of the server, happening every 14 days and happening at roughly the same time for 4 crashes before changing the crash times.

Windows event log filtered by EventID 6008

We don't have any schedules that run on the server on 14 day intervals, a ...

Score: 0
boog avatar
AWS EC2 Instance right-sizing, more suitable instance types?
kz flag

I have some EC2 instances that are currently over-provisioned for cpu/mem. The problem I'm seeing in trying to right-size these instances is that a lot of them use barely any cpu and have a baseline of <5% cpu usage, however they need a reasonable amount of memory, perhaps 4gb of RAM.

We're currently using the T3 instance types, so theoretically many of these instances would do fine on nano or ...

Score: 0
Zlotz avatar
status=deferred when sending a mail with Postfix on my VPS
cn flag

I come here after having searched on the net and groped for long.

I got a VPS on Debian 11 with the domain name leibnizproject.com and I want to send mails from it, with the command mail -s "test" myPersonalEmailAddress

But no mail is received and I get the following result (in /var/log/mail.info):

Jan 26 14:46:14 mail postfix/qmgr[1762]: 8ABCB1401CD: from=<[email protected]>, size=354, ...
Score: 0
Hoygen avatar
Program error in windows 2016 2019 but not in windows 2012 r2
gn flag

I just want to migrate from windows server 2012r2 to windows server 2016 or 2019, but I have the following problem with a service. If I query the service in 2012r2, everything works and I get Events in the event viewer. Events are like this one:

 A network share object was checked to see whether client can be granted desired access.
Subject:
    Security ID:        LABVM2012R2\Administrat ...
Score: 0
02dag avatar
Haproxy will not load balance smtp
vn flag

I have been struggling with Haproxy for a long time now to configure smtp load balancing. Whatever I do, the server responds with a black screen and no possibility to try out smtp commands to test. There is nothing in the logs and when I am testing from the Ubuntu server itself I can use telnet towards the backend servers and successfully get the prompt and test with smtp commands.

Also if I use  ...

Score: 0
Megha avatar
Reassign space to mount points - RHEL
iq flag

This is the output from df -h enter image description here

I want to reassign space of /cdrbackup and /smdb to /smpdb. Is it possible to do that?

Thanks in advance, M

Score: 0
gctwnl avatar
Why can't traefik find the docker network it must use?
in flag

I am running a traefik in a container, together with other containers, most notably docker-socket-proxy so traefik can run as non-root. My compose works, but there is a warning message that tells me this is more luck than skill. The warning message is:

rna-webserver-traefik      | time="2023-01-26T13:09:10Z" level=warning msg="Could not find network named 'webserver_dockersocketproxynet' for container  ...
Score: 0
Omnifarious avatar
Why isn't my Talos install booting the k8s apiserver, though it otherwise seems functional
ng flag

I've been trying to get Talos up and running on a few VMs using libvirt. Those VMs appear to be launching etcd and it's clear from the logs the etcd's are talking to each other, and it's also clear that the controller is running in a loop trying to start things, but one of those things does not appear to be the apiserver, and the things it is trying to start are failing because they can't contact the  ...

Score: 0
How to Know the Which IP-Port belongs to Which Instance of the Virtual Machine Scale Set
US flag

I have an Azure Windows VMSS with 2 instances in running state with a load balancer:

  • LB Rule - Port 80
  • Inbound NAT Rule - Frontend Port 50000, Service Port 3389

My VMSS Public IP is 20.1.13.195

I'm connecting with 1st VM instance using RDP Service - 20.1.13.195:50000 2nd VM Instance with - 20.1.13.195:50001.

  • VMSS Name is: TestWinVMSS01
  • Instance1 Name: TestWinVMSS01_0
  • Instance2 Name: TestWinVMSS01_1 ...
Score: 0
Adam avatar
Redirecting all 404s to a custom page using Nginx $mod_rewrites
fr flag

How to redirect all 404s and any random characters after my domain all to the main domain? I'm using $mod_rewrites = [ code because .htaccess and other things are not working.

For Example :

From this https://example.com/any_character to https://example.com/

Codes I've used before and not working :

$mod_rewrites = [ '/$' => '/index.html'

$mod_rewrites = [ '/(.*)' => '/index.html'

But when  ...

Score: 0
Antichloride avatar
What is the easiest way to trigger an api endpoint on an hourly bases using azure?
tj flag

I have an App Service that runs FastApi in a Docker Container. I need to call a certain endpoint every hour. What is the easiest way to achive this? My plan so far is to setup the smallest VM available and run a cronjob. Is there a simpler solution?

Score: -1
albuquerque avatar
Windows folder share permissions
eh flag

I suppose this is straightforward but can't get a solution for it. When i share a windows folder (server 2012) and set its permissions (share or ntfs) then if someone from the network writes "\\servername\folder" all permissions are applied, but if instead uses the ip address "\\192.168.1.x\folder" windows ignores the permissions and gives access to everyone.

I'm sure it's my mistake somewhere. I ...

Score: 0
Dawid T. avatar
Reuse source ports when connecting to multiple upstream servers?
ga flag

I am trying to set up reverse proxy meant to serve multiple STUN clients and proxy the communication to multiple upstream servers. I have increased the file descriptors limit for the service so that shouldn't be an issue. My nginx.conf looks more or less like this:

user root;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
include /etc/nginx/sites-enabled/*.con ...
Score: 0
Gururaja Hegde avatar
apache httpd is returning response code 415 as per access_log, How to get full input, with data and all the header values
na flag

My endpoint URL is working with sample data, and in Test environment.

In production, apache httpd is returning response code 415 as per access_log, How to get full input, with data and all the header values. Client might be sending something, production httpd instance is [not able to/configured not to] handle.

To debug I would like to get full details of what client is sending all headers, post data

Score: 0
Codemonkey avatar
How can I return 404 when a user tries to manually browse to any ".php" extension on my site?
ml flag

I use PHP. I like to hide that I do. I used to have all of my PHP inside .html files, but frankly it's annoying having to reconfigure every editor/tool I use that .html actually means a PHP file.

So I've moved them all to .php, like a grown-up.

The extensions are hidden via try_files anyway - I didn't know about that when I was first setting out.

But a user can guess www.domain.com/index.php, and g ...

Score: 0
Joshit avatar
How to switch from VirtualBox to VMWare
us flag

I've worked with virtual box (6.X and 7) on windows 10 for a few months and it was a pitty. From network-issues (Host-only vs. NAT vs. NAT-Network etc.) to lagging machines to .vdi-files that were removed/set in quarantine from Microsoft Defender (to name only a few issues).

I've made the decission to switch to VMWare Player. But how can I port a VirtualBox-VM to VMWare, including networks and ha ...

Score: 0
xflorin94 avatar
How I combine multiple react apps in one app
bn flag

I have two apps build in react using vite and I want to combine those two apps in one on the same port:

For example in nginx I want something like this:

http://localhost -> redirect to http://localhost:3000;

http://localhost/path-to-app2 -> redirect to http://localhost:4000;

What I tried with the apps in development mode:

server {
 listen 80;
 location / {
  proxy_pass http://localhost:3000;
 }
 l ...
Score: 2
Is it possible to install and use Dokku on a server that already has Apache2 configured with VirtualHosts running?
in flag

Posted this on StackOverflow, but realized it probably belongs here:

I have a Ubuntu (now upgrading it to 22.04) server that runs several virtual hosts with php applications. I'd like to run a couple of node applications (I am converting the old php ones to node) on it, and I'd like to use dokku to keep them separated one from the others. Is there a way to have both Apache (and its virtual hosts) and ...

Score: 0
Operon IT avatar
On-premise Windows Server 2016-2019 non AD Join to Azure AD
ga flag

I have Azure AD for my users, so far, so good, and i want to create a File Server. I have 3 VM's at the moment, Win Server 2016 Standard, Win Server 2019 Standard and Win Server 2019 Datacenter. Those are test VM's in order to find a solution. Can someone tell me how to join to Azure AD any of these servers? I don't have on-premise Active Directory, only one administrator profile on the server.

T ...

Score: 0
sflyer avatar
Rabbitmq cluster on Nomad
cx flag

I want to create a rabbitmq cluster in a nomad cluster. Right now I can run rabbitmq docker containers, but I can't create a cluster based on consul discovery. After containters starts i got this massages on every node:

[warning] <0.229.0> Could not auto-cluster with node [email protected]: {badrpc,nodedown}
[warning] <0.229.0> Could not auto-cluster with node rabbit@test-nomad1: {badr ...
Score: 0
chetzz avatar
KVM guest low network speed
qa flag

I have a KVM guest VM running RHEL 8.7 (12vCPU, 24GB RAM) and a hypervisor with 10Gb NICs. I'm getting weird results when using iperf3 on my guest machine as a client and a TrueNAS server as a server. See the image: iperf3 low network speed.

I'm not very familiar with OVS so I could not find out the issue. I have tried running the iperf3 on hypervisor as a client and everything works fine.

[ ID] Int ...
Score: 0
5et avatar
Self hosting/Colocation multiple VMs with public IP addresses on single server
br flag
5et

I have a single server that is running some VMs. I want each of these VMs to be accessed through public IP addresses correspondingly. I'm looking into hosting the server on my own and get a block of IPs from my ISP, or by putting it in a colocation center.

My questions are:

  1. If I'm hosting this on my own, I would need a router to plug in to the WAN and plug the server to the router. What do I do next? Do ...

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.