Skip to content

Commit 3d0af9c

Browse files
committed
Disable apache mimicry
1 parent 7f117f6 commit 3d0af9c

2 files changed

Lines changed: 27 additions & 28 deletions

File tree

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
FROM nginxinc/nginx-unprivileged
2-
USER root
3-
RUN apt-get update && apt-get install fuse -y
42
# COPY ./nginx.conf /etc/nginx/conf.d/default.conf
53
COPY ./nginx.conf /etc/nginx/nginx.conf
64
USER nginx

nginx.conf

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
worker_processes auto;
2-
3-
#error_log /tmp/log/nginx/error.log notice;
4-
pid /tmp/nginx.pid;
5-
6-
# Need to load ngx_http_xslt_filter_module
2+
#
3+
# #error_log /tmp/log/nginx/error.log notice;
4+
# pid /tmp/nginx.pid;
5+
#
6+
# # Need to load ngx_http_xslt_filter_module
77
load_module modules/ngx_http_xslt_filter_module.so;
8-
9-
events {
10-
worker_connections 1024;
11-
}
12-
8+
#
9+
# events {
10+
# worker_connections 1024;
11+
# }
12+
#
1313
http {
1414
include /etc/nginx/mime.types;
1515
default_type application/octet-stream;
@@ -41,21 +41,22 @@ server {
4141
proxy_read_timeout 300;
4242
proxy_set_header Connection "";
4343
send_timeout 300;
44-
autoindex_format xml;
45-
xslt_stylesheet /style.xsl;
46-
set $sortC M;
47-
set $sortO D;
48-
49-
if ($args ~ 'C=(.)' ) {
50-
set $sortC $1;
51-
}
52-
if ($args ~ 'O=(.)' ) {
53-
set $sortO $1;
54-
}
55-
56-
xslt_string_param sort-C $sortC;
57-
xslt_string_param sort-O $sortO;
58-
xslt_string_param location $uri;
44+
autoindex_format xml;
45+
xslt_stylesheet /style.xsl;
46+
# set $sortC M;
47+
# set $sortO D;
48+
#
49+
# if ($args ~ 'C=(.)' ) {
50+
# set $sortC $1;
51+
# }
52+
# if ($args ~ 'O=(.)' ) {
53+
# set $sortO $1;
54+
# }
55+
#
56+
xslt_string_param sort-C $sortC;
57+
xslt_string_param sort-O $sortO;
58+
xslt_string_param location $uri;
5959
}
60-
}
60+
61+
}
6162
}

0 commit comments

Comments
 (0)