typo
[nginx_drupal.git] / conf / vhosts.d / example.conf
blobeba567556f1f68f1feeb4d993eab7a69d17130ad
1 # main production site
2 server {
3   server_name www.example.com;
4   access_log /var/log/nginx/example.access.log main;
5   error_log  /var/log/nginx/example.error.log warn;
6   include production;
7   include drupal;
8   include nginx_status;
11 # redirect if not using www
12 server {
13   server_name example.com;
14   rewrite ^(.+)$ http://www.$host$1 permanent;
17 # just resize and serve images and static files
18 server {
19   server_name images.example.com;
20   access_log  /var/log/nginx/images.access.log main;
21   error_log  /var/log/nginx/images.error.log warn;
22   include production;
23   include imagecache;
24   include nginx_status;
27 # staging site
28 server {
29   server_name .staging.example.com;
30   access_log  /var/log/nginx/staging.access.log main;
31   error_log  /var/log/nginx/staging.error.log warn;
32   include staging;
33   include drupal;
34   include nginx_status;
37 # development site
38 server {
39   server_name .dev.example.com;
40   access_log /var/log/nginx/dev.access.log main;
41   error_log /var/log/nginx/dev.error.log warn;
42   include dev;
43   include drupal;