-
-
Notifications
You must be signed in to change notification settings - Fork 585
/
nginx-site-drupal6.conf
52 lines (36 loc) · 1.42 KB
/
nginx-site-drupal6.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# ddev drupal6 config
# You can override ddev's configuration by placing an edited copy
# of this config (or one of the other ones) in .ddev/nginx-site.conf
# See https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#providing-custom-nginx-configuration
# Parts of this config come from the excellent Perusio config that
# was fine-tuned for Drupal6 and Drupal7:
# https://github.com/perusio/drupal-with-nginx
# Set https to 'on' if x-forwarded-proto is https
map $http_x_forwarded_proto $fcgi_https {
default off;
https on;
}
### Defines the $no_slash_uri variable for drupal 6. See https://drupal.org/node/827236.
map $uri $no_slash_uri {
~^/(?<no_slash>.*)$ $no_slash;
}
server {
listen 80; ## listen for ipv4; this line is default and implied
# The WEBSERVER_DOCROOT variable is substituted with
# its value when the container is started.
root $WEBSERVER_DOCROOT;
include /etc/nginx/monitoring.conf;
include /etc/nginx/nginx_drupal6.conf;
include /mnt/ddev_config/nginx/*.conf;
}
server {
listen 443 ssl;
# The WEBSERVER_DOCROOT variable is substituted with
# its value when the container is started.
root $WEBSERVER_DOCROOT;
ssl_certificate /etc/ssl/certs/master.crt;
ssl_certificate_key /etc/ssl/certs/master.key;
include /etc/nginx/monitoring.conf;
include /etc/nginx/nginx_drupal6.conf;
include /mnt/ddev_config/nginx/*.conf;
}