Latest Server related questions

Score: 0
Mister SirCode avatar
How can I show the subdirectory of a server as an index based on domain used to connect to it?
eg flag

I have 2 domains running in the same directory off the same IP (Via a CNAME record in each's DNS)

the directory shows this in the apache index:

index of /

domainOne.com/
domainTwo.com/

This is shown when you visit the site via it's IP address.

However, I want domainOne.com/html/ to be shown IF the domain is Domain One, and domainTwo.com/html if the domain used to connect is Domain Two.

I tried putting a ...

Score: 1
kittygirl avatar
How to block network connection to all `root` process?
us flag

My system is debian 10 with nftables.
output of nethogs as below:

? root     192.168.2.10:59100-172.217.27.138:443 
? root     192.168.2.10:59086-172.217.27.138:443 
? root     192.168.2.10:59082-172.217.27.138:443 
? root     192.168.2.10:59062-172.217.27.138:443 
? root     192.168.2.10:59058-172.217.27.138:443 
? root     192.168.2.10:59054-172.217.27.138:443 
? root     192.168.2.10:59030-172.217. ...
Score: 0
buildist avatar
bind9 doesn't load zone with only CNAME record
ua flag

I'm trying to set up a subdomain to point to Google Sites, so I made a simple zone file:

$ttl 38400
subdomain.mydomain.net.    IN CNAME ghs.googlehosted.com.

This doesn't work:

zone subdomain.mydomain.net/IN: has 0 SOA records
zone subdomain.mydomain.net/IN: has no NS records
zone subdomain.mydomain.net/IN: not loaded due to errors.

But adding an NS or SOA record gives a "CNAME and other data" error ...

Score: 0
lei lei avatar
AWS EC2 instance behind AWS ELB cannot get the real client's IP address
hm flag

I am very new with nginx setting. My API application running in an EC2 instance which is automatically created by my AWS Elastic Beanstalk environment. The application ues Nginx and the instance is behind ELB load balancer (classic). Route 53 domain routes the traffic to the ELB.

I send the packet from Postman or Packet Sender to that domain, but can never receive response. After check the nginx  ...

Score: 0
rwfbc avatar
IPsec/L2TP connection fails when two clients have the same local LAN address
in flag

We are having occasional trouble with an IPsec/L2TP remote access VPN, provided by strongSwan (charon).

Today a user was unable to connect. I viewed the charon log, and noticed that another existing session was impacted. The common part was the local LAN address (192.168.0.18).

All was quiet in the charon.log. Then user B connected (50.xx.xx.xx). Immediately the session for user A (70.xx.xx.xx) crea ...

Score: 0
TELA avatar
Rescue Tip: Wrong library file installation damaged Ubuntu 18.04 after upgrade
fm flag

There was an old Ubuntu 14.04 linode.com instance which I attempted to upgrade to 18.04. Some Dependencies where somehow not upgraded anyway.

So I attempted to install corresponding deb file from Ubuntu server (as it was not in repo)

The following packages have unmet dependencies:
 dpkg : Breaks: libdpkg-perl (< 1.18.11) but 1.18.4ubuntu1 is to be installed
        Breaks: libdpkg-perl:i386 (< 1 ...
Score: 2
windowsa avatar
Taking ownership of ROAMING folder from another computer by connecting the HDD to an external hard drive
es flag

Taking ownership of ROAMING folder from another computer by connecting the HDD to an external hard drive.

My old computer blew up, so I connected the HDD to my laptop. Now, the issue is that I don't have access to ROAMING and I can't get the password of some of my accounts. I thought it would be easy, but it seems almost impossible, which is dumb.

C:\Windows\system32>TAKEOWN /F E:\ /R /D Y
ERROR: T ...
Score: 1
Gray Loon avatar
Nginx proxy pass regex
us flag

I'm trying to configure nginx as a reverse proxy while using regex at the same time. I want this URI on my server: www.mydomain.com/dealers/in/evansville/11487/

To proxy this to the remote server: locations.where2getit.com/mydomain/in/evansville/11487/

When I use the location rule below, I'm getting a 502 error:

location ~* (.*dealers)/(.*)/(.*)/(.*)/$ {
    proxy_pass https://locations.where2getit.com/my ...
Score: 0
Understanding buff/cache and tmpfs relationship on a read only filesystem with no swap
ru flag

We have a really strange bug where a Yocto operating system running on a Raspberry Pi will 'lock up' because of disk IO wait.

Scenario:

  • operating system runs read only and has no swap
  • there is a tmpfs filesystem for stuff the OS needs to write to (/var, /log etc)
  • the tmpfs has default to half of the available 2GB of RAM
  • there is a USB hard drive connected for storing large MP4 files

After a while of ru ...

Score: 0
uday avatar
consul routing is not happening, how to fix that?
ke flag

My deployment and other yaml files for a sample app in consul: link The routing is not happening.

Could anyone please check them and suggest what need to be fixed.

The traffic is not entering the app at all.

The steps I followed to install consul:

I have installed consul on kubernetes (docker desktop) using this link.

git clone https://github.com/hashicorp/learn-consul-kubernetes.git
cd learn-consul- ...
Score: 0
Jenny XIA avatar
How to set up server-client connection inside Google Cloud Platform
ao flag

I currently have a flask app and want to deploy GCP.

However, I divide the engine into two parts, one is responsible for heavy computation work, and one is responsible for structuring the web interaction. I'm now using the socket for the communication between these two parts and set both connected to the same local IP+ port.

I wonder how can I implement a similar connection inside GCP?

Score: 0
Kohini avatar
Using cloudwatch agent without secret and key in AWS
ua flag

Our current instances use this deprecated method of collecting metrics https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-scripts-intro.html

It's basically a cron job that runs a command to send data to cloudwatch

mon-put-instance-data.pl --mem-used --mem-util --disk-space-util --disk-path=/ --from-cron

It uses credentials from awscreds.conf the contents of which have this format

AWSAcc ...
Score: 0
Home profile not mapping for users
cn flag

The home profile is not mapping for users on my domain.

I have configured this through the user -> profile -> home folder

Connect U to \myshare%username%

I have also replaced %username% with the actual username

The drive doesn't map, when I login and map the drive manually, it works (so it is not a networking error). I have also attempted to map the drive via GPO and same issue, it does not map.

 ...
Score: 0
perlwle avatar
iptables - drop packet in FORWARD chain based on string match not working
cn flag

I am trying to forward traffic from one host to another. It's working but I want to add url whitelist. The following iptables-save rules still block visits like http://host:8383/api/test

What am I missing?

*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [7:517]
:POSTROUTING ACCEPT [2:161]
-A PREROUTING -p tcp -m tcp --dport 8383 -j DNAT --to-destination x.x.x.x:8001
-A POSTROUTING !  ...
Score: 0
kevin avatar
nginx reverse proxy - proxy_pass leads to 503 service unavailable
cn flag

i have to following configuration:

server {

    listen: 8080;
 
    location / {
        proxy_pass           https://somehost.abc.xyz;
        proxy_redirect       off;
        proxy_set_header     Host somehost.abc.xyz;
        proxy_set_header     X-Real-IP somehost.abc.xyz;
        proxy_set_header     X-Forwarded-For somehost.abc.xyz;
        proxy_set_header     X-Forwarded-Host somehost.abc ...

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.