Questions tagged [web-server]

Refers to the software or hardware that make up a webserver, delivering content on a private or public website.

3296 questions
371
votes
6 answers

What permissions should my website files/folders have on a Linux webserver?

This is a Canonical Question about File Permissions on a Linux web server. I have a Linux web server running Apache2 that hosts several websites. Each website has its own folder in…
Nic
  • 13,425
  • 17
  • 61
  • 104
205
votes
5 answers

Difference in sites-available vs sites-enabled vs conf.d directories (Nginx)?

I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server. I have used apt-get to install nginx and all seems fine. I have a couple of questions. What is the…
Seth Spearman
  • 2,211
  • 2
  • 14
  • 10
136
votes
7 answers

How to list Apache enabled modules?

Is there a command that list all enabled Apache modules?
supercobra
  • 1,515
  • 2
  • 12
  • 9
125
votes
5 answers

How do you do load testing and capacity planning for web sites?

This is a canonical question about capacity planning for web sites. Related: Can you help me with my capacity planning? How do you do load testing and capacity planning for databases? What are some recommended tools and methods of capacity…
gWaldo
  • 11,957
  • 8
  • 42
  • 69
98
votes
3 answers

How do high traffic sites service more than 65535 TCP connections?

If there is a limit on the number of ports one machine can have and a socket can only bind to an unused port number, how do servers experiencing extremely high amounts (more than the max port number) of requests handle this? Is it just done by…
alh
  • 1,119
  • 1
  • 8
  • 5
74
votes
8 answers

Why is the response on localhost so slow?

I am working on a tiny little PHP project for a friend of mine, and I have a WAMP environment setup for local development. I remember the days when the response from my local Apache 2.2 was immediate. Alas, now that I got back from a long, long…
Peter Perháč
  • 1,069
  • 1
  • 9
  • 13
57
votes
10 answers

How to use DNS/Hostnames or Other ways to resolve to a specific IP:Port

This is a Canonical Question about DNS/Hostnames resolution to IPs/Ports Example 1 I'm running a web server on port 80 and another on port 87. I would like to use DNS so that www.example.com goes to port 87. How can I accomplish this using DNS…
Tom Smykowski
  • 1,125
  • 5
  • 19
  • 27
53
votes
9 answers

Why would a server not send a SYN/ACK packet in response to a SYN packet

Lately, we've become aware of a TCP connection issue that is mostly limited to mac and Linux users who browse our websites. From the user perspective, it presents itself as a really long connection time to our websites (>11 seconds). We've managed…
codemonkey
  • 631
  • 1
  • 6
  • 6
52
votes
7 answers

How do I make Apache Web Server listen on two different ports?

I'd like an Apache Web Server I have installed at home to listen on port 80 and port 8080. I've added Listen 8080 to httpd.conf and restarted the Apache services but the server doesn't seem to be listening on 8080. Punching in http://localhost:8080…
Owen
  • 633
  • 1
  • 5
  • 8
48
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
  • 605
  • 1
  • 6
  • 7
47
votes
5 answers

How many requests should my webserver be able to handle?

Not going into specifics on the specs since I know there is no real answer for this. But I've been doing load testing today with the ab command in apache. And got to the number of 70 requests per second (1000 requests with 100 concurrent users), on…
Ólafur Waage
  • 676
  • 1
  • 7
  • 10
45
votes
2 answers

Effects of configuring vm.overcommit_memory

My VPS web server running on CentOS 5.4 (Linux kernel 2.6.16.33-xenU) irregularly (like once a month give or take a few weeks) becomes unresponsive due to oom-killer kicking in. Monitoring of the server shows that it doesn't normally run out of…
dunxd
  • 9,632
  • 22
  • 81
  • 118
39
votes
7 answers

How can I block hacking attempts targeting phpMyAdmin?

My website gets thousands of hits daily from different IPs trying to access: /php-myadmin/ /myadmin/ /mysql/ ...and thousands of other variations. None of these directories exist, I don't even have phpmyadmin on my server. I don't think any of…
amba88
  • 513
  • 1
  • 4
  • 4
39
votes
5 answers

How do I access a web server on a virtualbox from the host machine

I have a windows Vista machine upon which VirtualBox is running ubuntu. In ubuntu I am running a webserver at the address http://127.0.0.1:3000/ How do I access this address from my host machine (the windows box)?
Argh
  • 537
  • 1
  • 4
  • 6
37
votes
3 answers

When to turn TCP SACK off?

I've been looking at Linux tuning params and see some configs where SACK is turned off. Can anyone explain this? This would be tuning for a busy web server.
JB.
  • 513
  • 2
  • 10
  • 10
1
2 3
99 100