Latest Server related questions

Score: 0
MD Nasirul Islam avatar
Run Github actions workflow ec2 auto scaled servers
ru flag

Our application is hosted on AWS EC2, we add code updates & fix bugs every few weeks. Our code is on github and github actions does the deployment with automated & manual workflows. We have a good traffic so we have already added 5 servers with load balancer pointing to them. We want to apply auto scaling on our applications server, so that there would be no constant number of servers instead ...

Score: -1
AWS EC2 Yum has no repositories
ca flag

I'm a frontend web developer and struggling with this backend stuff!

My goal here is to install and update to PHP 7.4 on my AWS EC2 server.

I need yum to install amazon-linux-extras but yum has no repos.

enter image description here

I have no idea on how to set yum repo list up and finding it very difficult to find any help online about what the repo URLs are and their names etc. NPM is so much easier to work with I think I'll  ...

Score: 0
abc avatar
How to fetch Individual output of different match_phrase inside one request
ng flag
abc

I am able to run below query which is giving response as total of two match_phrase.

Inserting dummy data as below.

POST /mod1/_bulk
{ "index" : { } }
{ "msg": "BA1" }
{ "index" : { } }
{ "msg": "BA2" }
{ "index" : { } }
{ "msg": "BA2" }
{ "index" : { } }
{ "msg": "BA1" }
{ "index" : { } }
{ "msg": "BA2" }
{ "index" : { } }
{ "msg": "BA1" }
{ "index" : { } }
{ "msg": "BA1" }
{ "index" : { } }

Request

Score: 2
Mladen B. avatar
Apache, redirect a client instead of showing HTTP/HTTPS error
us flag

If a web admin configures an HTTPS/SSL vhost on a custom port (e.g. 4433) and a browser connects to that vhost but using HTTP (http://vhost:4433), is there any way to configure apache to rather issue a redirect to the browser, sending it to HTTPS (https://vhost:4433), instead of displaying the well-known error:

Bad Request

Your browser sent a request that this server could not understand.
Reason: You ...

Score: 0
Sara June avatar
Subnet is not creating with terraform on azure, how to fix it?
cn flag

I am trying to create two centos 8 machines with terraform on azure.

My templates github link

When I try to apply, I am getting below error related to policy. Could you please suggest how to fix this?

>     │ Error: creating Subnet: (Name "subnetforAutomation" / Virtual Network Name "vnetforAutomation" / Resource Group "automation_mart"):
> network.SubnetsClient#CreateOrUpdate: Failure sending r ...
Score: 0
user236012 avatar
Gateway with multiple VLAN IPs on one NIC
cn flag

I would like to separate several hosts from the local network and put them behind a firewall. I would like to use VLANs to "physically" separate them instead of using just different subnets. My idea is to use a switch that supports VLANs, and build up the network like this:

enter image description here

P1 and P2, P3 and P4 are four different hosts that belong to two separate, "physical" networks (VLAN 1 and 2). They should be protec ...

Score: 1
MrRobot9 avatar
Keycloak: Difference between Authentication sessions and User Sessions
sa flag

I was going through the documentation

https://www.keycloak.org/docs/latest/server_installation/#cache

Here they have described different types of caches.

I didn't quite understand the definitions they provided for Authentication sessions and User Sessions.

For Authentication Session, it says

"Requests from this cache usually involve only a browser and the Keycloak server, not the application."

 ...

Score: 0
Does NAT leave a trace of the internal source?
in flag
Sam

I was wondering if there is any trace left of the original source when a packet leaves NAT.

Let’s say I do a series of DNS requests from my machine to a public server. I’m behind NAT. Can the server somehow see that these requests originate from the same machine? For example, does NAT reuse the source port when it’s coming from the same machine?

Score: 1
Monitoring Linux Servers behind squid proxy via Nagioscore
cl flag

This is my first post here, please help me.

I want to monitor a few redhat servers which are behind a squid proxy server. I have done the below configuration:

RedHat Node behind proxy server configuration:- I have installed nrpe and also copied check_disk, check_cpu and check_mem plugins under /usr/lib64/nagios/plugins.

I also added the below lines in /etc/nagios/nrpe.cfg file.

allowed_hosts=127.0 ...
Score: 0
venu avatar
You must select a parent organization or folder during project creation in google cloud platform
in flag

We are trying to create project in google cloud platform but I am getting the below issue. Please can you check and provide solution for this. enter image description here

Score: 0
emarwa.mouma.35t avatar
How do I fix net::ERR_SSL_PROTOCOL_ERROR error when I put nginx in front of Tomcat?
us flag

How do I fix net::ERR_SSL_PROTOCOL_ERROR error when I put nginx in front of Tomcat?


#user nobody;
worker_processes 1;

#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;

#pid logs/nginx.pid;


events {
    worker_connections 1024;
}


http {
    include mime.types;
    default_type application/octet-stream;

    #log_format main '$remote_addr - $remote_us ...
Score: 0
spekulatius avatar
Running mysqldump via SSH on separate mysql server
cn flag

I've got an hosting environment consisting of two separate servers: web-server and db server. The web-server is accessible via SSH only (and of course port 80). The DB server is inaccessible from the Internet and can only be accessed via the web-server.

The web-server doesn't have mysqldump and the space on the hard disk wouldn't allow to take a DB dump on the web-server.

I would like to use my loca ...

Score: 0
Istio TCP Global Rate Limit
in flag

I am attempting to implement a global rate limit for tcp connections through the istio ingress gateway. I have followed the official docs for implementing a global http rate limiter service and managed to get that to work https://istio.io/latest/docs/tasks/policy-enforcement/rate-limit/, but it does not handle TCP connections.

Here is the http rate limit configs

apiVersion: networking.istio.io/v1alph ...
Score: -1
Bruno Schroeder avatar
Mac can be arpinged but not pinged
ng flag

Why does Mac OS X and Linux do not ping each other on a local Ethernet Network?

Edit 2012-12-14 (ten days latter) adapter FireWire to Ethernet RJ45 might be the problem (on MacBook Pro Retina early 2015). I am researching on how to debug the his adapter. Ethernet lights blink but I don’t know enough about this early FireWire.

With a simple Netgear four ports switch-hub, when connecting via RJ45 ca ...

Score: 0
Use openconnect and satsify annyconnect scans
in flag

My organisation provides vpn access using cisco anyconnect. I use a linux system and I can connect to vpn using openconnect. I have to use openconnect because anyconnect on linux is not compatible with the authentication method used by the organisation, but openconnect is.

I am an admin and thus have root access on my own work provided system but have no access to the vpn servers as that is handled by a d ...

Score: 0
Jim W says reinstate Monica avatar
Half of data lost between HAProxy and backend server
in flag

I have a setup like this on Ubuntu

Browser --> HAProxy --> Backend server

The backend server is an ASP.NET Core web application.

It works 99.9% of the time except when a binary file is being uploaded (simple POST with multipart form-data), in which case I get the error:

System.IO.IOException: Unexpected end of Stream, the content may have already been read by another component. 

   at Micro ...

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.