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
26
votes
4 answers

Is it reasonable to use NFS on a production web server?

Can NFS be reasonably used on production servers as a means of connecting a compute server to a storage server, assuming the connection is over a LAN 1Gbe or 10Gbe connection? There's obviously some network overhead and NFS seems particularly slower…
Makoto
  • 371
  • 3
  • 6
25
votes
3 answers

nginx logging to access.log.1 instead of access.log, logrotate failing?

I have an nginx instance that is set to log access to /var/log/nginx/access.log and errors to /var/log/nginx/errors.log, but as soon as logrotate runs each week, the file gets moves to *.log.1 and the new *.log file gets created, but nginx continues…
Ben Torell
  • 825
  • 1
  • 7
  • 11
25
votes
8 answers

Should I completely turn off swap for linux webserver?

Recently my friend told me that it is a good idea to turn off swap on linux webservers with enough memory. My server has 12 GB and currently uses 4GB (not counting cache and buffers) under peak load. His argument was that in a normal situation…
Poma
  • 1,299
  • 6
  • 24
  • 35
25
votes
2 answers

What kind of server do I need to handle 10 million requests and mySQL queries a day?

I'm a newbie of server administration and I'm looking for a powerful hosting service to host my new website. This website is basically a back-end of an mobile online game, and it will: handle up to 10 million of HTTPS request and mySQL queries a…
Calvin
  • 361
  • 1
  • 4
  • 4
24
votes
13 answers

Server Hosting from your House - $200 to $300 per month range

I'm a developer lacking some infrastructure knowledge. What is the fattest pipe I can get to my house in the $200 to $300 range? I'd like to host a few servers at my house. Then if my company gets large enough or the traffic needs to "super-scale"…
Tyndall
  • 591
  • 1
  • 7
  • 18
23
votes
2 answers

number of nginx worker processes

I'm setting up nginx to serve a Drupal install, and I seem to find conflicting information on the nginx worker processes setting. One site says you need two, one says you need five, one says one per processor... How should I pick the number of nginx…
ceejayoz
  • 32,910
  • 7
  • 82
  • 106
23
votes
2 answers

why do nginx process run with user nobody

I was trying to setup nginx to run with one of my rails apps, when having a look at output for ps -e | grep nginx , I realised nginx worker processes run with user nobody. Is there a reason why they are not running as www-data ?
Anshul Goyal
  • 416
  • 1
  • 8
  • 18
23
votes
3 answers

Nginx $document_root$fastcgi_script_name vs $request_filename

I can't notice any difference if in my config file I set fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; Or: fastcgi_param SCRIPT_FILENAME $request_filename; What do they do respectively? Is one of the two better than…
MultiformeIngegno
  • 1,687
  • 9
  • 26
  • 31
23
votes
5 answers

Dropbox on linux server - how to include/exclude folders?

Using the Dropbox GUI, it's possible to controll specifically what folders to be synced. Can this somehow be done from the command-line too? Background: I'm trying out the solutions for installing Dropbox on a linux server given here, and it seems…
Cambiata
  • 335
  • 1
  • 2
  • 4
22
votes
6 answers

How is session stickiness achieved across multiple web servers?

How many web servers does StackOverflow/ServerFault have? If the answer is 'more than one', then is does it achieve Session Stickiness while DNS polling?
Shore
21
votes
1 answer

Recommended Nginx + WSGI Configurations

Please explain pros/cons when using the different Nginx WSGI interfaces? Please explain in detail what differentiates each configuration? Which configuration should scale the best? If relevant, what are you running right now, and why? Some…
cmcginty
  • 1,303
  • 15
  • 24
21
votes
6 answers

How can I see what version of SSL a web server is currently using?

I believe I have disabled SSL 2.0 on my web server (Windows Server 2003). To make sure that it is now using SSL 3.0, how can I check this? What is the correct way to disable 2.0 and enable 3.0 on a web server?
wahle509
  • 333
  • 1
  • 2
  • 8
20
votes
3 answers

How to set up port forwarding on Amazon EC2

I have a web application running on Amazon EC2. It listens on port 9898. I can access it by entering the ip address and port number. e.g 1.2.3.4:9898 However, what I'd really like to be able to do is to not have to enter the port…
ksl
  • 325
  • 1
  • 3
  • 11
20
votes
2 answers

IIS 7.5 optimizations for a site serving only static content

I'm looking to setup a cookie-free domain intended to serve static content for a web application, similar to the http://sstatic.net/ site that the stack exchange sites use. My question is, what optimizations can I make to my IIS 7.5 setup for such a…
DanP
  • 303
  • 1
  • 3
  • 8
18
votes
2 answers

How does a web server know which key pair to use for SSL decryption?

It is my understanding that when Apache receives a request to one of the TCP ports it is listening on (e.g. 80, 443), it will decide which host is being requested by looking at the HTTP header Host. The server will then know which virtual host it…
paolo
  • 387
  • 3
  • 14