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
10
votes
3 answers

Wordpress on IIS replication with robocopy

We setup a wordpress environment on 4 IIS servers. We're considering using a scheduled task triggering a robocopy script to replicate the wordpress directory every 5 minutes. What are the opinions on such an approach ? Has anyone ever used this or…
joebegborg07
  • 869
  • 5
  • 16
  • 24
10
votes
3 answers

Is it safe to serve HTTP/HTTPS over ports 8080/8443

Due to an infrastructure limitation, one of the proposed solutions for serving an HTTP service to the world is to offer it over ports 8080 and 8443. My concern is that some users may not be able to access these services because they are not running…
spender
  • 368
  • 1
  • 3
  • 13
10
votes
3 answers

The impact of Apache graceful restarts and user experience

Is it safe to perform a graceful restart of Apache on a production server? What effects will a graceful restart cause and what would be the impact (if any)? Will there be any detrimental impacts (e.g. downtime, even if it is for a short time)? I…
10
votes
4 answers

Is GlusterFS a good pick for keeping webservers in sync?

I've got 2 webservers, with the chance of having to add more servers along the way. Right now I keep these servers in synch using lsyncd + csync2. It works well performance wise because all files are on both servers (no network access required to…
sbrattla
  • 1,578
  • 4
  • 28
  • 52
10
votes
2 answers

Is it possible to log additional HTTP headers in IIS logs?

I need to analyze logs for Exchange and would like to get additional headers saved such as MS-ASProtocolVersion Is is possible to configure IIS to log these additional headers? POST…
makerofthings7
  • 8,911
  • 34
  • 121
  • 197
10
votes
3 answers

How to redirect from HTTPS to HTTP before server error?

I used to operate a website with an SSL certificate, but have stopped using the SSL certificate. The problem is that most of the external links to the website use the https:// prefix. I have tried the https:// to http:// redirect in the .htaccess…
user981178
  • 445
  • 1
  • 3
  • 13
10
votes
5 answers

nginx closes connection on some pictures

There is problem with nginx. It closes connection before client finishes download. It looks like: $ wget -O /dev/null http://www.site.com/images/theme/front/clean.jpg --2012-07-11 21:37:03-- …
rush
  • 1,981
  • 2
  • 15
  • 23
10
votes
1 answer

How do you set server specific ENV values in Nginx?

I am starting a project that uses environment variables to set the database connection and a couple other things. (They didn't want to use configuration files since people are careless and overwrite them). Anyway, I am using nginx and while it…
Xeoncross
  • 4,449
  • 12
  • 43
  • 56
10
votes
4 answers

Why cache static files with Varnish, why not pass

I have a system runnning nginx / php-fpm / varnish / wordpress and amazon s3. Now I have looked at a lot of configuration files while setting up the system, and in all of them I found something like this: /* If the request is for pictures,…
Saif Bechan
  • 10,960
  • 10
  • 42
  • 63
10
votes
2 answers

/home/vhosts/ or /var/www/

Some web servers I've come across use /home to store the site files: /home/vhosts/www.example.com/ Others use /var like: /var/www/www.example.com/ What's more clean and "Linuxy"? Should we all be using /usr/local/www/? Possible sources:…
Robert
  • 14,613
  • 4
  • 19
  • 14
10
votes
2 answers

how to configure apache to view hidden (`.`) files?

How do I make a directory listing in apache show the ./hidden files? I tried both Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from…
Claudiu
  • 1,207
  • 5
  • 21
  • 28
10
votes
1 answer

When should you use and not use Etags?

I was just looking at our site on WebPageTest.org and one of their recommendations for speeding up a website is: ETag headers should generally not be used unless you have an explicit reason to need them I was wondering what this means. Does it…
Django Reinhardt
  • 2,286
  • 3
  • 38
  • 58
10
votes
5 answers

Is it risky to have a database server and a web server on the same machine?

It seems like life would be simple to run the database server on the same machine as the web server, but are we taking a big secuirty risk by doing this? The environment will be Windows 2008 server, Postgresql (latest version, possibly 9.0 when it…
CLJ
  • 333
  • 2
  • 4
  • 15
9
votes
4 answers

Nginx - can "if" be safely used at the level of a server block?

The Nginx docs warn in no uncertain terms that if is evil and should be avoided wherever possible, and there are similar warnings scattered across the length and breadth of the internet. However, most of these warnings focus specifically on how…
Joseph Montanaro
  • 548
  • 1
  • 4
  • 13
9
votes
3 answers

Why there shouldn't be too many files in one directory that serves just static web requests?

This might be a very general question but I really like to find some detailed answers or clues. I am discussing this with a friend, trying to convince him to put more than 300,000 files from one single folder to more than one (like 1000 per…
AGamePlayer
  • 685
  • 1
  • 7
  • 14