Skip to content

Commit 57e272d

Browse files
committed
Disable apache mimicry
1 parent 7f117f6 commit 57e272d

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM nginxinc/nginx-unprivileged
22
USER root
33
RUN apt-get update && apt-get install fuse -y
44
# COPY ./nginx.conf /etc/nginx/conf.d/default.conf
5-
COPY ./nginx.conf /etc/nginx/nginx.conf
5+
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
66
USER nginx
77
COPY style.xsl .
88
COPY script.sh .

nginx.conf

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
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
7-
load_module modules/ngx_http_xslt_filter_module.so;
8-
9-
events {
10-
worker_connections 1024;
11-
}
12-
13-
http {
14-
include /etc/nginx/mime.types;
15-
default_type application/octet-stream;
16-
client_body_temp_path /tmp/client_temp;
17-
proxy_temp_path /tmp/proxy_temp_path;
18-
fastcgi_temp_path /tmp/fastcgi_temp;
19-
uwsgi_temp_path /tmp/uwsgi_temp;
20-
scgi_temp_path /tmp/scgi_temp;
1+
# 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
7+
# load_module modules/ngx_http_xslt_filter_module.so;
8+
#
9+
# events {
10+
# worker_connections 1024;
11+
# }
12+
#
13+
# http {
14+
# include /etc/nginx/mime.types;
15+
# default_type application/octet-stream;
16+
# client_body_temp_path /tmp/client_temp;
17+
# proxy_temp_path /tmp/proxy_temp_path;
18+
# fastcgi_temp_path /tmp/fastcgi_temp;
19+
# uwsgi_temp_path /tmp/uwsgi_temp;
20+
# scgi_temp_path /tmp/scgi_temp;
2121
server {
2222
types {
2323
text/plain list;
@@ -41,21 +41,21 @@ 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+
6161
}

0 commit comments

Comments
 (0)