Latest Server related questions

Score: 1
Block a URL and its sub URL using Htaccess
mx flag
Ben

I have a URL http://example.com/web/en/press-release/. How can I block all users access and viewing that page and http://localhost:10004/web/en/press-release/* using .htaccess?

I want them only accessible from specific IPs.

I did like this but not working.

# Press Release Blocked Now
RewriteCond %{HTTP_REFERER} web/en/press-release/ [NC,OR]
RewriteRule .* - [F]
Score: 0
Typewar avatar
Setting up SSL for custom port in nginx - letsencrypt
in flag

I'm trying to enable SSL on a custom port (not 443), running a webpage. From searching around, I couldn't find much info that helped.

The server has unchangable ports, external: 26143, Internal: 80.

To enter the server (without SSL) you would type example.com:26143, and the system would see this as a connection to port 80.

How would I set up a certificate (lets encrypt) to enable SSL on this port?


Score: 2
sfgroups avatar
Kubernetes V1.19.13 - kubeapi servers not able connecting to different etcd database
cn flag

I have upgraded Kubernets cluster ( 3 master, 3 etcd servers database) from 1.18 to v1.19.13 and ETCD to 3.4.13. since than API servers are not stable, keep switching different etcd server, because of this cluster is not working properly. these cluster running on CentOS steam 8. This Cluster worked before the upgrade, after upgrade only I have seen this issue.

Any help to resolve this issue? Is  ...

Score: 0
If you're seeing this Grafana has failed to load its application files
ae flag

I want to run grafana behind nginx. I followed this instruction. The only problem I have right now is whenever I try to edit a panel, I will see this error message below. It disappears in a few seconds. The grafana.ini looks like

domain=localhost
root_url = %(protocol)s://%(domain)s:%(http_port)s/grafana/
serve_from_sub_path = true

The scrubbed nginx.conf looks like

server_name 1.2.3.4 # my public id a ...
Score: 0
TravelWhere avatar
How to delete specific files?
cn flag

I'm running Ubuntu 20.04. I have a directory with million of files named like this

master-stdout.log.20210801.024908
master-stdout.log.20210801.025524
master-stdout.log.20210801.064355

How can I delete all of master-stdout.log files?

Score: 1
PFudd avatar
After adding a new DNSBL to Sendmail, how can I resubmit an email to see if it will be rejected?
cn flag

TL;DR

How can I fool my own sendmail into thinking an email comes from a particular ip address, so that it rejects the message due to a DNSBL match?

Details:

I run my own mail server, and most spam is blocked by the DNS black lists (DNSBL) that I've added to /etc/mail/sendmail.mc like so:

dnl FEATURE(`dnsbl',`dnsbl.sorbs.net',`"554 Rejected " $&{client_addr} " found in dnsbl.sorbs.net"')dnl
dnl FEAT ...
Score: 0
How can I let apache server work always on my ec2 instance?
lu flag

I am learning aws's EC2 server. I configured apache and php. I started the apache server with the command

Sudo service httpd start

But every time I stop my pc, or the next day, when I want to continue the course. I have to start again the apache server. I mean it is not on started status always.

Imagine if I have a website running on that instance, it means that users won't be able to go on to my websi ...

Score: 0
gh0st avatar
How can I replace my on-premise server with something on Azure?
cn flag

I have an on-premise server that's aging. It's almost purely used as a file server but requires proprietary software for some of the file sharing capabilities. I was looking for a solution available on Azure that I could use. I was thinking if I could spin up a virtual machine that used that latest edition of Windows Server then I could install my proprietary software.

Question then is how would  ...

Score: 0
carlitobrigante avatar
POSTFIX: New mail server. Can neither send nor receive mail
cn flag

I am trying to learn about mail servers and have setup one. However neither can I send, nor receive mail. I can login to my email account and I see the folders (Inbox, Sent, Trash, etc) are being populated within the email client. Also /var/log/syslog indicates that my user has successfully logged in via imap-login

When I click on the test button from Thunderbird before logging in, the test alway ...

Score: 0
Jonathan S. Fisher avatar
Packets from xfrm interface won't route, but opposite works
cn flag

I'm working on a site-to-site vpn, where one end us a UDM and the other is Strongswan. The goal is to provide bi-directional routing into a cloud environment. I'm completely baffled why this isn't working.

The good news is Strongswan connects and will pass traffic. But I have some routing issues on the Strongswan side. My Strongswan host has two interfaces, eth0 which has the public internet IP o ...

Score: 0
Asmodean avatar
Guacamole ssh into localhost Config
us flag

So I installed the apache guacamole and got the tightvnc service, which is also on the same machine as guac to connect and work perfectly.

Problem is when I try to set up a connection for a ssh into the local machine, 127.0.0.1 didn't work. Nor if I enetered the actual ip of the server.

The fields like key and key passphrase are provided correctly. And the user (not root) without and with a password ...

Score: 0
Conversations cannot log in to ejabberd - error in stream
gb flag

The ejabberd server I'm configuring has the following configuration for certfiles and for the port 5222. Gajim, Psi and Pidgin can connect fine. Conversations cannot. There's some stream error.

ejabberd's log shows

2021-07-15 16:15:01.459 [info] <0.381.0>@ejabberd_listener:accept:273 (<0.649.0>) Accepted connection 88.88.88.72:65069 -> 192.168.7.5:5222```

For Gajim, besides a line like ...

Score: 0
Need Solution for Private Peering Express Route in azure issues
id flag

I have Hub Spoke VNet Architecture and and express route attached to my hub VNet. I want to understand following points and see if there's something that can be done to solutionize this ?

  1. Since Express Route is private peering and attached to hub VNet all my VNets are published over express route, Is there's a way i can restrict what needs to be published and what not over express route from azure. ...
Score: 0
Asmodean avatar
guacamole users with admin perms
us flag

I installed guacamole from source after a few hours of toil and trying out serveral outdated guides. But at this point I can go to the site and log into the guac web interface and connect to the guacd alright.

Though I couldn't find out what is the correct syntax to be used in the user-mapping.xml in order for me to have a root account that can have all the perms. Right now my account is only lim ...

Score: 4
Redirecting USB device to a virtual machine with virt-manager does not work
ca flag

I have a Fedora workstation running an Ubuntu 16.04 virtual machine (KVM hypervisor). I'd like to redirect a USB device to the VM, but when selecting "Virtual Machine | Redirect USB device" from virt-manager, I get the following error:

spice-client-error-quark: Could not redirect <USB device name> at 1-4:
Error setting USB device node ACL: 'Not authorized' (0)

The error window has a "Details" se ...

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.