Latest Server related questions

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 ...

Score: 2
Krystian avatar
How to create .env multiline variable
id flag

The title may be a bit confusing, so a little explanation. I need to configure an application by passing a PKCS1 PEM encoded key using environment variable. The App is configured using a .env file

Locally I just export MY_ENV_VAR=$(cat my_key.pem), but on the server, it needs to be inside the .env file and needs to contain the value, not a command.

I've tried

echo MY_ENV_VAR=`awk 'NF {sub(/\n/, ""); print ...
Score: 0
Jeff Lawlor avatar
Unable to Write to Log Analytics Custom Table Using Data Collector API
cl flag

We're using a custom table in Log Analytics for application error logging. The setup is: Serilog -> Azure Analytics Sink -> Data Collector API (used in sink) -> Log Analytics Workspace -> Custom Table. There seems to be a secret I'm missing in setting up the custom tables. I have two tables working beautifully. We're not seeing entries in all subsequent tables we've created, even though th ...

Score: 0
ninjab3s avatar
Planning nodegroups for Gitlab with EKS cluster
in flag

I am in the process of building an infrastructure for my gitlab instance using AWS EKS. I have already created an EKS cluster, added a managed node group and installed the gitlab-runner in the cluster. In this node group I can now run my pipelines as usual. In my gitlab instance, I have several projects that each have an MR pipeline. In addition, I run another pipeline overnight in each project. These p ...

Score: 0
Sacha Yunusic avatar
How can I translate my old rsyslog rules?
ba flag

I had this rule in previous rsyslog versions:

if $fromhost-ip == 'xxx.yyy.zzz.www' then /var/log/name_of_the_server.log
& stop

And I translate it as:

template (name="dinamico" type="string" string="/var/log/%HOSTNAME%.log")
if $inputname == 'imudp' then { action(type="omfile" dynaFile="dinamico") stop }

And works like a charm... but if I want to translate this old rule:

if $fromhost-ip == ' ...
Score: 1
Sabre avatar
Still having DNS forwarding issue
cn flag

I asked this question a while back and it got bumped to chat because a lot of subjective opinions.

Original message here for reference: https://chat.stackexchange.com/rooms/139176/discussion-on-question-by-sabre-dns-forwarding-issue

And I found a seemingly similar issue, unanswered as well. Conditional Forwarding intermittent failures

So I figured I would try to consolidate it to basic information  ...

Score: 0
nicolasassi avatar
Can a server certificate from a CA not have CRL URLs?
cz flag

I'm trying create a validation for server certificates and one of the things I need to do is to check if the certificate is revoked, but the server certificates from a specific server seems to not have a CRL URL which I would use to retrieve the CRL to check. Is this supposed to be possible? In the case of no CRL URLs should I just consider the certificate not revoked or stale?

Score: 0
Dean Benson avatar
vSphere 6.7 AD Group Start/Stop/Deploy from Template to specific datastore
co flag

Environment is vSphere 6.7 three hosts in a cluster and AD authentication enabled for HTML5 client.

Problem : Assign AD group with limited permission to allow management of: power, console access and deploy from a template into a specific datastore.

I've spent several hours searching the documentation and examples I've found refer to Role permissions that do not correlate to the administration withi ...

Score: 0
Amir avatar
Registrar doesn't allow to set dedicated IP as nameserver
mk flag

I have registered a .website domain, and I want to point it directly to my VPS (without using a CDN). I've done it before, with other registrars. But when I try to set the nameservers to my dedicated IP, the registrar's control panel gives me an error, saying:

DNS (XX.XX.XX.XX) is not in correct format

Is there anything I can do? Or should I just cave in and use a CDN?

P.S.: This is my registra ...

Score: 0
Plouff avatar
Which one to learn: Nagios or Zabbix?
wf flag

I need to answer a network administrator student which tool is more useful in terms of "employability" at the moment : Nagios or Zabbix. But this is not my field.

I've heard that Nagios had its glory in the past and that today Zabbix is more used. Is it true?

More over, do they offer the same features? I've read that Nagios is continuous and Zabbix is not? Is it true?

Many thanks for your insights :)!

Score: 2
DGideas avatar
Does SSH key with type ecdsa-sk or ed25519-sk need passphrase?
vn flag

OpenSSH 8.2 introduced new public key types "ecdsa-sk" and "ed25519-sk", and the key file contains a reference to the private key credential stored on the FIDO/U2F hardware. Should I still need enter a passphrase when create these types of SSH key? It's seems useless if one attacker get the private key file without FIDO/U2F hardware access.

Score: 0
leonp avatar
fail2ban doesn't react to multiple ip's in log file, while fail2ban-regex - does
us flag

Several days of fighting. My configuration is SME server 10 and fail2ban version 0.11.2. I run:

fail2ban-regex /var/log/httpd/access_log apache-get-dos.conf :

Running tests
Use failregex filter file : apache-get-dos, basedir: /etc/fail2ban
Use datepattern : {^LN-BEG} : Default Detectors
Use log file : /var/log/httpd/access_log
Use encoding : UTF-8

Results
Failregex: 373 total
|- #) [# of hits] ...
Score: 2
Jorg busch avatar
SSH authenticate with publickey,password or publickey,none
pn flag

On my SFTP-Server I want to allow only login via public key AND password OR (if and ONLY IF user has no password) by only public key

I set the following in the the sshd_config:

AuthenticationMethods publickey,none publickey,password
PubkeyAuthentication yes
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords yes

But I'm always promptet for a password. When the user has no password it sa ...

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.