Latest Server related questions

Score: 0
Savvy avatar
Redirect route to a totally new one with same domain Nginx
cn flag

The website with this route Domain.tld/faq.php=?lang=en&id=121 need to redirect to Domain.tld/some/121?lang=en not only id=121 but any id with the old route to be redirected to the new route.

Thanks,

Score: 0
데미도브아르첨 avatar
Why if you down one of the interfaces(active) used in a bond(active-backup mode) the connection to the server is lost?
kg flag

Tried to configure bonding on Oracle8.7 The only problem is, trying to test it out if it works fine or not, found a little problem when you shutdown active interfaces used in the bond the connection to the server is lost. It does show that the secondary interface turns active, but thats it.. you can't ping the server.. you cant ping anything from it.. nothing.. But if you physically unplug the cable of  ...

Score: 1
Ashraf Sayed Gomaa avatar
how to setup 4 drives on hetzner servers, every two are mirror
in flag

I've a new dedicated server from hetzner, will install cPanel on it.

  • 2x HDD SATA 6,0 TB Enterprise
  • 2x SSD M.2 NVMe 512 GB
  • OS is AlmaLinux v8.7.0

how can I set up the installimage so the OS be on the NVMe, and the cPanel home directory on the SATA?

installimage:

PART swap swap 32G

PART /boot ext3 1024M

PART / ext4 all

disks:

  • Disk /dev/nvme0n1: 512 GB (=> 476 GiB)
  • Disk /dev/nvme1n1: 512 GB (=> 476 ...
Score: 0
pawikoski avatar
I can't add any rule to iptables / iptables not saving
ci flag

I want to forward tcp and udp traffic from wireguard ip address (10.66.66.2) to 0.0.0.0, but iptables doesn't want to cooperate.

OS is Oracle Linux 8, I use yum as package manager. Firewall.d is disabled.

iptables -S gives completely different output than cat /etc/iptables/rules

I want to apply few rules like this sudo iptables -t nat -A PREROUTING -p tcp -d 10.66.66.2 --dport 27015 -j DNAT --to-dest ...

Score: 0
Paul avatar
How do I configure netplan in Ubuntu 22.04 with dynamic IPv4 and static IPv6?
cn flag

With Ubuntu 22.04, the gateway option is deprecated and nearly every example I find for configuring netplan with static IPv6 uses gateway.

My ISP's default /etc/netplan/01-netcfg.yaml only includes dynamic IPv4 and they do not provide DHCP support for IPv6, but they do provide support for static IPv6.

What do I add to the configuration to support IPv6?

$ cat /etc/netplan/01-netcfg.yaml
network:
  versi ...
Score: 0
Werewolf Lord avatar
Errors importing JSON file to MySQL using mysqlsh Util.import_json
cn flag

I am having errors in attempting to import a file into MySQL (8.0.32-0ubuntu0.22.04.2) using:

mysqlsh mysqluser@localhost/jsondb --import /path/to/file.json

If the file is in, say, my home directory, regardless of what I do,

mysqlsh mysqluser@localhost/jsondb --import /home/myuser/file.json

I get:

Importing from file "/home/myuser/file.json" to collection `jsondb`.`file` in MySQL Server at loca ...
Score: 0
BoringPanda avatar
Nginx cannot find backend service which is running
je flag

I am setting up an nginx webserver for an application with web frontend and a flask backend, each running in a docker container. The following is my nginx configuration:

events{}
http{
client_max_body_size 50M;
   server {
    listen 80;

    location /api {
        proxy_pass http://0.0.0.0:5000;
    }

    location / {
        root /var/www/;
        try_files $uri /index.html;
    }
  }
}

I can acc ...

Score: 1
Michael T avatar
Fail2ban ban action error on debian
in flag

I'm not sure where to start looking for the issue here This is on debian 11 (using nftables)

It seems like the nft add set ... command is failing

nft add set inet f2b-table addr-set-wordpress \{ type ipv4_addr\; \}

My jail.local

[DEFAULT]
# configure nftables
banaction = nftables
chain = input

[sshd]
enabled = true
port = 1984
banaction = nftables[type=multiport]
maxretry = 3
bantime = 600
findtime = ...
Score: 0
907VigiL avatar
unable to find django error when running django app through apache2
ro flag

I am trying to get a django app running on a apache2 server both on a raspberry pi for a project of mine. The appache server is running but I can't pull up the web page as I just get an "Internal Server Error" //Log files

[Fri Apr 07 19:28:44.334749 2023] [wsgi:error] [pid 24119:tid 1965745152] [remote 192.168.50.249:54720] mod_wsgi (pid=24119): Failed to exec Python script file '/home/pi/greenhous ...
Score: 0
Trying to install Horde with php8.0/php7.4
in flag

AlmaLinux 9, LAMP up-to-date.
Acouple of weeks ago I tried to install Horde webmail but I gave up after “install failed”.
That time I followed pre requisites ++.
Now I am trying it again. I created a virtual server mail.domain.com I simply followed Quick Install.
I have installed php 8.0 from scratch and some days ago php 7.4.
For mail.domain.com I selected php 7.4
Running pear install -a -B h ...

Score: 0
Eloïse avatar
Apache 2.4 ErrorDocument 401 breaks basic authentification
sl flag

I got an issue with the basic authentication, when I add ErrorDocument 401 /var/www/rainbow/static/401.html you can click on cancel on auth prompt and you got access without auth .

Here is my site conf :

<VirtualHost *:443>
    Protocols h2 http/1.1
    ServerName XXX.app
    ServerAlias XXX.app

    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg)$">
        Header set Cache-C ...
Score: 1
Vojtech Kane avatar
nginx: make internal redirect to a different `location` block
cn flag

try_files' signature is try_files file ... uri;, so one usually uses it to perform tasks like serve file1 if it exists otherwise serve file2 if it exists otherwise pass the decision to a different location block (the one for the mentioned uri).

Can I somehow use the last part only? That means, do not try to serve any files, just pass the request to a different location block. The simple idea of not men ...

Score: 0
focaccio avatar
using /usr/bin/script to record sessions, but readable .txt
bf flag

How can I get the /usr/bin/script files to be "readable" .txt ?

For example I'm recording sessions like:

script "/path/`date "+%y%m%d-%H%M%S-term-session.txt"`"

When I "more" the files they come back as "binary" and have "extra" characters that make them less user friendly.

Thanks, Greg

Score: 1
Boosted1g avatar
Wireguard - Setup server to allow connection to LAN but not route internet
pa flag

I am trying to learn WireGuard. I see many tutorials online for how to have internet and local network access over WireGuard. However, what I would like is a connection where the peer can access my home network, but still uses the peer's own internet connection. Not sure if I just need to modify the iptables in wg.0 or what is needed to do this.

My side question is if I can setup 2 different c ...

Score: 0
Kipsang avatar
Removing "innodb Parameter Not On" Error When Installing Сaсti
pa flag

I am trying to set up a Cacti box to monitor our server environment at work but I am running into a problem that I cannot seem to wrap my head around. The reported error is "innodb Parameter Not On". It is the only error I am getting. The configuration files appear to be in order but I cannot find where to change that particular value.

enter image description here

Score: 0
Mars avatar
Redirecting subdomain to another domain
cn flag

I have a subdomain, sub.domain1.com. I want to redirect this to domain2.com.

The result is a security exception because the certificate on domain2.com doesn't include sub.domain1.com.

How does one deal with this redirect issue without adding sub.domain1.com to domain2.com's certificate?

Score: 2
rwfbc avatar
Strange issue with bridges on Ubuntu server and libvirt; looks like MAC address conflict
in flag

We have been using bridges and libvirt VMs for a long time (starting with Ubuntu 16.04). Recently, we have encountered a problem with bridges (on VLAns). We have not yet identified what conditions cause the problem to appear. Some work, some don't.

The problem is that the VM is not able to talk to the upstream router. However, the VM can talk to the bridge on the host. The router also can talk to ...

Score: 1
Erich avatar
Forward all IPv6 traffic from a specific port to an other server
qa flag

This sounds like a frequently answered question, but probably I used the wrong search terms.

I have two independent Linux servers A and B. I moved an application (rsync), which uses TCP Port 4444 for the rsync protocoll, from A to B. Unfortunately some users still use A to access the application. Is it possible, and how, to automagically forward the traffic to B?

Both servers use IPv6, and only the tr ...

Score: 0
hphp95 avatar
Can't connect to server with port opened via Docker
tc flag

I have a Docker container that runs with --net=host and binds directly to the host's port 7000 and 9042 on GCE. Here's my netstat on the VM:

$ netstat -tulpn

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 <vm-private-ip>:9042           0.0.0.0:*               LISTEN      -
tcp        0      0 <vm-private-ip>:7000         ...
Score: 1
Johnny Canuck avatar
rewrite based on script in URL
pl flag

Using Apache 2.2.x -- my usual approach to blocking script kiddies from looking for various scripts on the server is to use dynamically created 'deny from' lists with the offending ip's. Works, but is always at least a step behind.

So, thinking about using mod_rewrite to real-time send malicious users looking for a specific script somewhere else (specifically, forcing a 403 error). I've tried a c ...

Score: 0
KAMI avatar
Users from a trusted domain cannot connect to remote desktop gateway
mn flag

Trying since few days to have an RDP gateway allowing users from a tusted domain to connect to.

The only error I can find in the error log is :

The user "DOMAIN\login", on client computer "172.22.2.125", did not meet connection authorization policy requirements and was therefore not authorized to access the RD Gateway server. The authentication method used was: "NTLM" and connection protocol used ...

Score: 0
Andreea Onica avatar
I get ERR_SSL_VERSION_OR_CIPHER_MISMATCH on apache server (installed with xampp on windows)
kw flag

I have this version of Apache installed: ApacheFriends XAMPP (Basispaket) version 1.6.8

Apache 2.2.9
MySQL 5.0.67 (Community Server)
PHP 5.2.6 + PHP 4.4.9 + PEAR
PHP-Switch win32 1.0 (use "php-switch.bat" in the xampp main directory)
XAMPP Control Version 2.5 from www.nat32.com
XAMPP Security 1.0
SQLite 2.8.15
OpenSSL 0.9.8i
phpMyAdmin 2.11.9.2
ADOdb 4.990
Mercury Mail Transport System v4.52
FileZi ...
Score: 0
user1247196 avatar
SLES 12 SP1 expired letsencrypt X3 root ca certificate
tw flag

I'm working with SLES 12 SP1.

When running

zypper addrepo https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo

I get the following error

Download (curl) error for 'https://download.opensuse.org/repositories/openSUSE:Factory/standard/openSUSE:Factory.repo':
Error code: Unrecognized error
Error message: SSL certificate problem: unable to get local issuer certifica ...
Score: 0
jcubic avatar
Is it possible that MariaDB caches the host depending on user and password?
in flag

I have a weird issue with my MariaDB in my application.

I use Prisma NodeJS library to connect to MariaDB.

The problem looks like this:

I have localhost and a remote server with the same username/password/database combination (to make it easier for me and not need to change configuration)

  1. I have a URL string with user, password, host, and database
  2. When I change the host to my remote server it st ...
Score: 0
bakeljouw avatar
nginx reverse proxy cannot get files returns 404
sz flag

I am trying to make a reverse proxy to access some devices.

server {
    listen 3000;
    server_name localhost;

    location /device1 {
        proxy_pass http://192.168.0.10;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
    
    location /device2 {
        proxy_pass http://192.168.0.11;
        proxy_set_header Host $host;
        proxy_set_header  ...
Score: 0
Caenem avatar
Board cannot download a specific file from Apache HTTP server
tr flag

In my company, I have to program boards that run on embedded Linux. We have a test sequence that opens an HTTP Apache server on port 80. It hosts 7 files that the board downloads.

The board uses wget to download the files hosted by the server, the connection is established but there is no response from the server. Thus, wget keeps trying to download until timeout. Here is a picture that shows the ...

Score: -1
biscuitstack avatar
SSL cert fails when subdomain is an A Record of another host
gh flag

Please excuse any wrong terminology here. If it feels I'm using the wrong term, I possibly am.

Previous scenario:

  • I have a domain and subdomains DOMAINA, * .DOMAINA on my domain provider, pointing to a linode name server ns*.linode.com
  • I hosted SITEA on a linode server LINODESERV and used linodes DNS records.
  • I ran letsencrypts certbot on LINODESERV and used a linode plugin to generate certificates usin ...
Score: -2
Andyc avatar
Change permissions/ownership of file/directory owned by 33:33 in Linux
gb flag

I have a directory where I used to make the backup of my owncloud files from Ubuntu. It's owned by user 33 and group 33, which in Ubuntu are the www-data (Apache) user and group. Now I have changed the server's OS to OpenSUSE and the user and group for Apache are wwrun and www respectively with id 459. I'm pretty sure (although I haven't tried, but that's kind of irrelevant to the question) that that wi ...

Score: 0
eliassal avatar
Kubelete fails with code=exited, status=1/FAILURE
th flag

I have setup K8S on fedora 37, following a

Kubeadmi init

seems images are pulled and things seemed correct. However, when I try

Kubectl cluster-info

0406 11:58:52.440579 704658 memcache.go:265] couldn't get current server API group list: Get "https://192.168.1.48:6443/api?timeout=32s": dial tcp 192.168.1.48:6443: connect: connection refused E0406 11:58:52.441106 704658 memcache.go:265] couldn't  ...
Score: 0
TrevorT avatar
Is it valid to use macvlan on dummy interface
ie flag

Is it valid to setup the container network in this way:

  1. Create a dummy interface on the host

    ip link add du0 type dummy
    
  2. Created two containers using systemd-nspawn, each have a macvlan interface bind to that dummy interface

    /etc/systemd/nspawn/proxy.nspawn and /etc/systemd/nspawn/apps.nspawn

    [Network]
    VirtualEthernet=no
    MACVLAN=du0
    

I can't find any similar example on the Internet, I would l ...

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.