Latest Server related questions

Score: 0
AGamePlayer avatar
Why some nginx configs are missing the http block?
sb flag

According to the nginx beginner's guide:

Serving Static Content

An important web server task is serving out files (such as images or static HTML pages). You will implement an example where, depending on the request, files will be served from different local directories: /data/www (which may contain HTML files) and /data/images (containing images). This will require editing of the configuration fi ...

Score: 1
Darrell Brogdon avatar
How to make mod_rewrite force a redirect?
fr flag

I have a need to temporarily redirect my website to a static version hosted on Cloudflare. The current site is a Wordpress site hosted at Ionos and Wordpress seems to be doing a 301 redirect from mydomain.com to www.mydomain.com. I would like to be able to continue to access the Wordpress instance by going to www.mydomain.com but if I (or anyone else) goes to mydomain.com I would like to be redirecte ...

Score: 1
Sinauwae avatar
NGINX Already enabled but not starting after reboot
ae flag

I already enable nginx on Ubuntu 20.04, but nginx doesn't automatically start after reboot.

nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2022-01-23 07:33:50 WIB; 19s ago
       Docs: man:nginx(8)
    Process: 464 ExecStartPre=/usr/sbi ...
Score: 0
Unregister user account from devices in a Windows Domain
sr flag

In a Windows Domain with Microsoft 365 when a user has used more than 20 devices they get an error they have have to unregister in order to sign into a new Windows 10 workstation. Does anyone know of a way to unregister devices that are found on the page https://myaccount.microsoft.com/device-list from powershell for users?

Here is the help guide for the page so you can see the page I am talking  ...

Score: 0
Jordan avatar
ld is unresponsive to both LD_LIBRARY_PATH and LIBRARY_PATH
vn flag

I'm working on a shared CentOS server where I don't have root.

cat /etc/centos-release
CentOS Linux release 7.8.2003 (Core)

I recently updated my GCC/G++ version to 9.4.0, but now all of my C++ builds are failing at the linking step. I've tracked down the issue to the fact that ld is looking for libraries in directories that I haven't told it to and picking up old versions of libstdc++ that I ca ...

Score: 1
Brian avatar
Exchange 2019 on-premises auto-discovery issue with IOS Mail app. Mail app discovers wrong SSL
eg flag

So I have my Exchange 2019 hosted on-premise with a purchased SSL for mail.example.com. Outlook and OWA work great with auto-discovery both onsite or offsite. When I add an email account into my iPhone mail app that is on my Exchange server i get an error "Cannot Verify Server Identity" This clearly is happening because the IOS app is loading a certificate from my hosting company for my website avsimpli ...

Score: 0
Can't get postgresql 12 to start as service
in flag

Found this error: /var/run/postgresql/12-main.pg_stat_tmp/global.tmp": No such file or directory

Manually creating I can start Postgresql, but has to be recreated every reboot.

This is after a recent upgrade to postgresql 12.

Any help is appreciated.

Score: 0
Jing He avatar
What does "IP Address" field in "Site Binding" setting of IIS?
pe flag

What does this setting mean? The IP address that IIS would listen to? Or the IP of ceratin network interface on the server so IIS would only listen to the traffic from that interface?

I had tried to set it to the IP of my server from "All Unassigned" but then my website stopped working immediately... I got the "Connection was reset" error... Then I changed it back to "All Unassigned" and my websi ...

Score: 0
SouravA avatar
Azure’s equivalent of AWS Macie
in flag

The organisation where I work has a huge data footprint(several thousands terabytes). This data is first stored centrally on an ADLS Gen2 service from where other teams copy in data specific to their requirements. One of the challenges we are facing is to keep track of PII data. Human intervention becomes a huge bottleneck in this case, and we are looking for some intelligent solution which can send ale ...

Score: 0
devent avatar
Vault configuration supports environment variables?
cn flag

Most configs support inline variables from the environment. Does support Vault configuration supports environment variables? Something like:

      ui = true
      listener "tcp" {
        tls_disable = 1
        address = "[::]:8200"
        cluster_address = "[::]:8201"
      }
      storage "postgresql" {
        connection_url = $PG_URL // where PG_URL is an environment variable
      }

Score: 0
palani vel avatar
Trusted domain (AD) users Unable to Login SLES server using Winbind
gb flag

There are two domains (Different Active directory-2019 forest), abc.com (Default domain) and xyzde5.com (trusted domain), One way incoming trust to xyzde5.com and outgoing trust from abc.com we can login default domain users (abc.com) in the SLES 15 SP2 Clint server(abc.com). , but unable to access trusted domain users (xyzde5.com) from same SLES client server. however we could able to login trusted us ...

Score: -4
Does every application needs web server?
bj flag

Server is just a machine with web server software(like nginx, apache etc). When we host a website in hosting services like GoDaddy or cloud services, does they provide web server software for every application which is deployed or there will be only one web server software for a machine(server) and every application uses it or we(client) needs to set up web server software?

Does a server can have ...

Score: 0
Etshy avatar
sftp - give password access to one user only & chroot
in flag

First I kniow this kind of question has been asked a lot, and I tried a lot of solution here and on SuperUser but none worked and I can't find why.

I want to configure my ssh to only accept key login except for one user that could login with sftp only (no ssh cli access, if possible, I'm not sure)

Here is my config

AllowUsers user1 user2
LoginGraceTime 0
PubkeyAuthentication yes
AuthorizedKeysFile       ...
Score: 0
m0t0b0y1337 avatar
Testing routings in linux (iptables)
id flag

I have static routes today in linux, I will pass them with metrics, does anyone have any idea to check the route at the other end and if it goes down, the metric will be changed or something? so you don't have to change manually.

Score: 0
manifestor avatar
Postfix: Receiving emails to an account works only if it aliased to itself
mp flag

I have a Postfix email account abc@mydomain.com and the following two aliases:

mydomain.com     -> xyz@mydomain.com   # catchall alias
abc@mydomain.com -> abc@mydomain.com

Now the second one looks silly but if I remove it, every email which is sent to abc@mydomain.com gets delivered to xyz@mydomain.com even though (1) abc@mydomain.com is an account, (2) is enabled and (3) is not a send only ac ...

Score: 8
How to overwrite a very large hard drive (18TB) with random data using shell commands in Linux
cn flag

I would like to overwrite a very large hard drive (18TB) with random bytes, to then check smart data for reallocated sectors or other errors.

Since badblocks has some limitations on number of blocks it will work with in a single run, I have tried the "cryptsetup method" described on archlinux wiki:

https://wiki.archlinux.org/title/Badblocks#Finding_bad_sectors

I set up an encrypted logical device eld 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.