Most Popular

1500 questions
50
votes
7 answers

How can I remove balanced node from haproxy via command line?

I have haproxy running as my load-balancer and from the stats web interface that comes with haproxy, I can put a web server into maintenance mode (and bring it back out again) - which is great! However, I also want to be able to perform that same…
isNaN1247
  • 1,725
50
votes
2 answers

What does the suffix .d mean in Linux?

I am configuring apache and by default I have the directories /etc/httpd/conf and /etc/httpd/conf.d. What is the difference? Also you can see the suffix in many other directories like /etc/init.d, /etc/cron.d, etc...
SCL
  • 925
50
votes
14 answers

Ban IP address based on X number of unsuccessful login attempts?

Is it possible to ban an IP address after X number of unsuccessful login attempts to a Windows Server? Not to a particular account, which I know how to do, but to the whole machine. We get hit pretty hard by brute force attacks trying to guess…
HeavyWave
  • 755
50
votes
4 answers

Installing optional Nginx modules with apt-get

I currently have Nginx installed via the instructions on the Nginx site: nginx=stable sudo su - add-apt-repository ppa:nginx/$nginx apt-get update apt-get install I have configured Nginx and it has been running great for a little while. Now, I…
50
votes
3 answers

Why is setting Nginx as a reverse proxy a good idea?

I have a Django site running on Gunicorn with a reverse proxy through Nginx. Isn't Nginx just an extra unnecessary overhead? How does adding that on top of Gunicorn help?
TheOne
  • 625
50
votes
5 answers

Specify SSH Port for Git

I use a non-standard ssh port (1234) for most of the servers I connect to. So in my ssh config file I have: Port 1234 But github.com uses port 22. When I try to connect to github it obviously tries to use port 1234. Right now I have to edit my…
50
votes
7 answers

Starting network connection from Ubuntu recovery?

I tried to upgrade Ubuntu from Hardy to Intrepid last night, however I seem to have killed it. I can boot into "recovery mode" and access the root shell, however it freezes when I try to start the GNOME environment, etc. In recovery mode, it doesn't…
interstar
  • 1,371
50
votes
2 answers

Difference between and Apache directives

I have Zend Server installed and noticed something like the following was added to my httpd.conf file: Order Allow,Deny Allow from 127.0.0.1 Alias /ZendServer "C:\Program…
rfgamaral
  • 1,030
49
votes
6 answers

Does HTTPS use TCP or UDP?

Does HTTPS use TCP or UDP?
Steven
  • 637
49
votes
9 answers

Is there any reason not to enforce HTTPS on a website?

A website I frequent have finally decided to enable TLS to their servers, only not to mandate it as a lot of websites out there do. The maintainer claims that TLS must be optional. Why? On my own website I have long set up mandated TLS and HSTS with…
49
votes
8 answers

Are zipped EXE files harmless for Linux servers?

I ran a malware scanner on my site, and it marked a bunch of zipped EXE files as potential risk files (these files got uploaded by users). Since I'm able to uncompress the files on my Mac I assume these are real ZIP files and not just something like…
Xavin
  • 592
49
votes
1 answer

For Server-Sent Events (SSE) what Nginx proxy configuration is appropriate?

I've read a bunch of different questions on what Nginx configuration is appropriate for SSE and came up with some confusing results regarding what settings to…
c4urself
  • 5,880
49
votes
7 answers

Is there a way to make journalctl show logs from "the last time foo.service ran"?

I'm particularly interested in this for looking at the output of oneshot services that run on a timer. The --unit flag is close, but it concatenates all the runs of the service together. The most obvious way I can think of would be to filter on PID,…
49
votes
12 answers

Equivalent of Linux command `hostname --fqdn` in Windows XP?

Is there a way to find the fully qualified domain name of a Windows XP box? Being unfamiliar with Windows I would describe what I'm looking for as the equivalent of the command hostname --fqdn available in Linux.
49
votes
5 answers

Is there a cloud-based reverse proxy solution in AWS?

The system I have an API deployed on EC2 machines on AWS. Incoming HTTPS requests are passed to an elastic load balancer. The load balancer handles the SSL, and passes the request to an Nginx server, that proxies the requests to the specific…
Adam Matan
  • 14,084