inspec/test/unit/mock/files/nginx_confd_multiple.conf
Jerry Aldrich III 9773e1cd94 Add wildcard/multiple server support to nginx_conf resource (#2141)
* Add wildcard/multiple server support to nginx_conf

Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>

* separate the merge function for maps in nginx_conf

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2017-09-15 16:37:57 -04:00

15 lines
324 B
Text

server {
listen 8083;
server_name example1.com www.example1.com;
location ~ ^/static/ {
root /var/www/virtual/www.example1.com/htdocs;
}
}
server {
listen 8084;
server_name example2.com www.example2.com;
location ~ ^/media/ {
root /var/www/virtual/www.example2.com/htdocs;
}
}