Latest Server related questions

Score: 0
0diseus avatar
NGINX - WORDPRESS - PHP-FPM: Query parameters (GET) not passing in subfolders
cn flag

I have a wordpress site running with NGINX (and Php-fpm) with 4 virtualhosts, everything works fine, except if i want to pass a query string. Look, it works if i do:

example.com/phpfile.php?var=123

But it doesn't if i try

exaple.com/subfolder/subfolder2/phpfile.php?var=123

Here is my /nginx/snippets/wordpress.conf:

location = /favicon.ico {
    log_not_found off;
    access_log off;
}

location ...
Score: 0
Shaq avatar
Can I use my local server when connect through vpn
in flag

I am clueless in this subject, so sorry if its a silly question.

I am working from home, connecting with vpn to the company server.

Internet is slow when using vpn, and I want to hear music with YouTube in my computer while working.

My simple question is: Is there anyway to use both my local network, and the remote network simultaneously? So I can use YouTube with my local network, while working with v ...

Score: 0
adamsfamily avatar
How to make an 8TB protected SHR from a 4TB unprotected SHR (Synology Hybrid RAID)?
in flag

I have a 2-bay Synology Disk Station (DS220j) with a single 4TB Drive in it. There is a SHR Volume 1 on the system. It's currently without protection but it was prepared for another 4TB drive to be added.

As time passed, 4TB is not sufficient anymore and I'm wondering if I can upgrade the DS this way:

  1. Add a 8TB drive into the SHR and let it sync. The capacity will be still 4TB but now protected.
Score: 4
dor avatar
Why is the root home directory, /root not in /home? (looking for reasons other than /home is mounted on a different drive)
pl flag
dor

i know that one reason for /root not being in /home is that usually /home is mounted on a different disk and if it were to fail, we still want root to be accessible. What are some of the other reasons for this structure?

Score: 0
adamsfamily avatar
How can 2TB drive give protection for 12TB of data in a SHR (Synology Hybrid RAID)?
in flag

I used the Synology RAID calculator to model a scenario of a mix of a bunch of 1TB and 2TB drives.

Could someone explain to me how is it possible that 2TBs of redundant space give protection for 12TBs of data?

Synology RAID calculator screensohot

Score: 0
Zeeshan avatar
Installation of Tripleo failed to install python-gnocchiclient, and python-pankoclient on Centos7
in flag

I am trying to install OpenStack since days, on Centos7 with Stein distribution I am installing the Undercloud via triplo repository but two stages are failing with errors, they are given below:

  1. Failed to Install python-gnocchiclient
/Stage[main]/Gnocchi::Client/Package[python-gnocchiclient]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/yum -d 0 -e 0 -y install python-gnoc ...
Score: 0
Kohini avatar
Can containers be placed on EC2 host in overloaded fashion in AWS ECS
ua flag

I have an instance with multiple tomcat applications and standalone jars running. If the machine has 2vcpu and 8GB RAM the individual applications can use use the resources on demand(based on the Xms and Xmx values set for tomcat and for the individual jars). ECS is not in the picture at this point.

Now I'll be moving the application to containers on EC2 instances(not fargate). Is it possible to  ...

Score: 0
Vowneee avatar
How to do a canary upgrade to existing istio customised setup?
br flag

How to do a canary upgrade to existing istio customised setup.

Requirement:

  • We have existing customised setup of istio 1.7.3 (installed using istoctl method and no revision set for this) for AKS 1.18.14.
  • Now we need to upgrade to istio 1.8 with no downtime or minimal.
  • The upgrade should be safer and it wont break our prod environemnt in any ways.

How we installed the current istio customised envir ...

Score: 0
berndbausch avatar
OpenStack Swift /info API requires authentication
us flag

I have a Kolla-Ansible cloud that includes Swift. Swift does not accept the /info API without authentication:

$ curl 192.168.122.201:8080/info
{"error": {"code": 401, "title": "Unauthorized", "message": "The request you have made requires authentication."}}

It works when I provide a valid token.

$ curl -H "x-auth-token: $T" 192.168.122.201:8080/info
{"swift": {"version": "2.26.0", "strict_cors_mode": tr ...
Score: -3
9mjb avatar
Is there a program to diagnose and summarize why my mchine is slow?
ru flag

Is there a program that will tell me why my server is slow? What is being over utilized? CPU / Memory / Disk / Network ... and what processes are driving that utilization? I want a program that can check and explain it to me. (I don't want to figure it out myself.) Maybe it could even suggest server tuning changes.

Score: 0
Redirecting Users to Specific Files With Cookies
mt flag

Might be a dumb question, but I hope someone can explain it to me in a simple way for a beginner to understand.

Say I had a file only logged in users to my WordPress site are allowed to access. If I use a variable in nginx to redirect logged in users to that file based on the presence of the logged in cookie, such as:

if ($http_cookie ~* "(wordpress_logged_in_)") {
return blah
}

Would that be a proper, s ...

Score: 0
kgermann avatar
I want to increase the KVM root file system from 60GB to 160 GB
in flag

The KVM image file 3.1GB in the file system on the hypervisor. The file systems are only showing up at 60 GB with df -kh total space. I want to increase the KVM volume space to 120 GB. I tried 'virsh blockresize'. It says its unsupported?

file format: qcow2 virtual size: 160G (171798691840 bytes) disk size: 3.0G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: true ref ...

Score: 0
Conditional port forwarding with ufw as a default policy
cn flag

Is there a way such that: when a connection is denied (by the rule set) in ufw, it forwards that traffic to another port on the local machine, rather than dropping (by default)?

I can see two potential ways for port forwarding in ufw, I am wondering how to modify these so that it is conditional.

  1. Adding -A PREROUTING rule to /etc/ufw/before.rules. But I need that rule only to be applied when the con ...

Score: -1
Stefan avatar
SSH access with SSH reverse tunnel
mx flag

I can find a lot tutorials on the web for setting up an reverse SSH tunnel.

  ssh -p2000 -fNC -R 10011:localhost:[email protected]

But how I can become an SSH connection on my local server? I like to set up a connection from proxy(has a public IP) to localhost(which is in my home network) through the SSH reverse tunnel . I need to type from anywhere SSH commands on my localhost.

Thanks for your help Stefa ...

Score: 1
Tom avatar
Postfix: virtual dovecot users + catch all to script
cn flag
Tom

In my postfix configuration, I'm forwarding (PIPE) all emails to a script. But I also have some virtual mailboxes in dovecot that should be prioritized.

main.cf

...
# Handle mailboxes from database 
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/virtual-mailbox ...

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.