Latest Server related questions

Score: 0
Event driven way to detect Ethernet port status changes (disconnected / 10mb / 100mb / etc) in linux?
pt flag

I was wondering if linux has some sort of interface to detect ethernet port state changes via /sys or some other way that is event driven.

What I mean by state changes is DISCONNECTED / 10mbit / 100mbit / etc.

We could just pool the status of the port every X ms, but I was hoping on using inotify to watch for something that changes on the filesystem and trigger our action based on that.

We are actua ...

Score: 0
Adam Bretin avatar
Nginx rewrite rule return php in plain text
cn flag

I have an Apache Configuration file that contains many rewrite rules.

RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://website.uri/$1 [R,L]

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^p/(.*)$ index.php?rqt=page/index/url/$1 [NC,L]
RewriteRule ^(.*)$ index.php?rqt=$ ...
Score: 0
How to make grub for fully portable linux on usb thumbdrive without writing entry to systems EFI?
in flag

I've installed Debian Bullseye on a usb thumbdrive. When I plug the thumbdrive notebook bootet from it, because there was an entry in UEFI "debian". After removing it with sudo efibootmgr -b <boot entry number> -B thumbdrive didn't boot anymore after selecting it from UEFI bootmanager. It wasn't bootable anymore because UEFI used then default Windows Bootmanager boot entry.

After that I've used a  ...

Score: 0
InfiniPLEX avatar
How should I migrate a zfs pool to Windows Storage Spaces?
jp flag

I have a single hard drive that I want to migrate to Windows Storage Spaces ReFS file system for better Windows compatibility. Obviously copying all the data to another disk and back is a last resort; so, is there a better way?

Score: 0
Joshua avatar
haproxy SSL/TLS Passthrough Proxy not working?
gb flag

I want to setup haproxy as simple tcp-proxy. Below is my configuration. When I try to send e-mail via Thunderbird(pointing smtp to ip_of_my_host:8123) or simple python script I get an error about not valid certificate or certificate error. I thought Layer 4 doesn't care about it at all. Isn't SSL/TLS a L7 feature? So how setup it properly?

 frontend smtp
  bind *:8123
  mode tcp
  default_backend s ...
Score: 0
async await avatar
Routing does not work
cn flag

I have two interfaces wan0 and wg0. The routing table looks like this:

::1 dev lo proto kernel metric 256 pref medium
2a0c:xxx:yyy:zz00::/56 dev wg0 proto static metric 20 pref medium
2a0c:xxx::/32 dev wan0 proto kernel metric 256 pref medium
2a0c:xxx::/32 dev wan0 proto ra metric 1024 expires 2591957sec pref medium
fe80::/64 dev wan0 proto kernel metric 256 pref medium
default proto static metric 1024 ...
Score: 0
Apache 2.4 block all directories in root except for two specified
gn flag

I want to block all directories in the document root except for two.

I don't want to manually block the ones I don't need. Instead, I just want to specify the two to keep.

I have a list of folders and files structured like this:

- Docs
- Docs_Files
    Img1.jpg
    Img2.jpg
    Img3.png
    Test.jpg
    TestLarge.png
    Zones.bmp
- Images
    A1.jpg
    B5.jpg
    B5.png
    X7.png
- Report 1
- Report 2 ...
Score: 0
Willians Martins avatar
Shared Host - Entry Process peaks - Cpanel
cn flag

There is a way to find the origin of access peaks in Entry Process on my Cpanel?

This image below, show 3 moments. I have IP monitoring if is necessary.

enter image description here

Score: 1
How to share an instance to a CLD user under specific INSTANCE user
us flag

I have an example.instance_1.2.3.4_22_root instance in the default group, access to instance from CLD server by admin user works fine.

I changed the instance string to user dev example.instance_1.2.3.4_22_dev and added it via web interface to the clouds of user jonhdoe, but when i try to access instance from jonhdoe user through the interactive gate with CLI or web terminal i getting error choosen INS ...

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.