Refers to the software or hardware that make up a webserver, delivering content on a private or public website.
Questions tagged [web-server]
3296 questions
18
votes
2 answers
How do I configure the default virtual host return a 404 header in apache?
I know that similar questions have been asked, but the available answers are not very clear, so please bear with me.
After setting up a few s in apache, I'd like to configure the _default_ ServerName so that it returns the 404 message.…

ezequiel-garzon
- 577
- 2
- 7
- 16
18
votes
4 answers
Why does IIS refuse to serve ASP.NET content?
My Windows Server 2003 Std server refuses to server ASP.NET content. It serves regular html just fine but anything .net, even a one line html file with an ASPX extention fails silently.
Things I've tried:
Nothing in the event log or IIS WWW logs…

Michael Haren
- 1,301
- 7
- 18
- 31
17
votes
6 answers
How to share assets between multiple web servers?
I have multiple Linux web servers attached to a load balancer, and I like to share assets (such as pictures, videos, and other stuff) between these servers. What is the best way to do this?
Currently, I have mounted on a file server to all the web…

getmizanur
- 593
- 1
- 5
- 13
17
votes
2 answers
Apache URL rewriting in reverse proxy
I'm deploying Apache in front of a Karaf-hosted application (Apache and Karaf are on separate servers). I want Apache to operate as a reverse proxy and also to hide part of the URL.
The URL to get the log-in page of the application directly from…

Jeremy Gooch
- 433
- 1
- 4
- 11
17
votes
5 answers
What are the "to-do" on protecting Windows server facing the web?
I currently begin to deploy Windows servers facing the web.
And I would like to know what are you way of protecting your servers ? What softwares are you using ?
On Linux, i'm using Fail2ban to prevent bruteforce and Logwatch to get daily reports…

Kedare
- 1,786
- 4
- 20
- 37
17
votes
2 answers
How to run php with SimpleHTTPServer?
I just found this awesome tip in the Apple SE:
Start a quick webserver from any directory:
python -m SimpleHTTPServer 8000
Is there a way to have this parse php scripts, or is this for html-only sites?

eykanal
- 335
- 1
- 2
- 13
17
votes
1 answer
deleting linux cached ram
I have a webserver that has 8GB of ram and is running a pretty intensive php site (1 site) that does file manipulation, graphing, emailing, forums, you name it. The environment is far from static which leads me to believe that very little could be…

Patrick R
- 2,945
- 1
- 19
- 27
16
votes
2 answers
Main differences between SSI (Server Side Include) and ESI (Edge Side include)
I need to include dynamic content into static pages at web server level. The 2 options I have found so far are Server Side Include (SSI) and Edge Side Include (ESI).
While the origins of SSI seem old and obscure (that cached page from 95 from…

Max
- 3,523
- 16
- 53
- 71
16
votes
2 answers
Optimal number of per CPU unicorn processes
We are running a Ruby on Rails web app under Unicorn. Our app is not strictly CPU bound (we have a dual Xeon E5645 system w/12 cores and a peak load average value is around 6). We started with 40 Unicorn workers initially but application memory…

Alex
- 7,939
- 6
- 38
- 52
16
votes
2 answers
When should I create a new user account to run software on a server?
In general, when should one create a new user account to run a piece of internet-facing software on a server?
For instance, suppose I'm using a shared Debian server (e.g. via Dreamhost) and I want to run some websites using WordPress, some using…
user61015
16
votes
4 answers
nginx support for .htaccess / rewrite rules? Differences from Apache?
I've been working with Apache http servers for quite some time, and finally making the move to static-content servers alongside the others dynamic-content machines.
I was wondering, does nginx support ".htaccess" files, and things like mod_rewrite?…

anonymous coward
- 615
- 3
- 8
- 15
15
votes
2 answers
understand correctly pm.max_children tuning
I have done some investigations and I have found this to calculate and adjust pm.max_children value
https://myshell.co.uk/blog/2012/07/adjusting-child-processes-for-php-fpm-nginx/
but for example :
I have 8Gb on my server
I'm hosting 30…

TooNetCreation
- 173
- 1
- 2
- 9
15
votes
3 answers
Determining a realistic measure of requests per second for a web server
I'm setting up a nginx stack and optimizing the configuration before going live. Running ab to stress test the machine, I was disappointed to see things topping out at 150 requests per second with a significant number of requests taking > 1 second…

Don
- 151
- 1
- 4
15
votes
2 answers
how do i perform root actions from non-root account?
I want to be able to restart services from a php-script. running under the www-user account.
What's the preferred way to perform these actions?
I recon I can place create a file with que'd commands, read by CRON, but the solution itches.
What I'm…

user65297
- 335
- 1
- 12
15
votes
15 answers
Will SRV records ever become useful?
In DNS an SRV record really is a pretty generic form of telling a remote client where a specific service is hosted. At this moment I use it for allowing people to call me using a SIP client over the internet (works quite nicely).
One of the…

Niels Basjes
- 2,196
- 3
- 19
- 26