Skip to content

Commit

Permalink
path return
Browse files Browse the repository at this point in the history
  • Loading branch information
lawxen committed Jun 12, 2024
1 parent e16f5de commit d5178fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile-subpath
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM nginx
RUN { \
apt intall -y vim; \
echo 'server_tokens off;'; \
echo 'client_max_body_size 100m;'; \
} > /etc/nginx/conf.d/server-token-off.conf
Expand Down
2 changes: 1 addition & 1 deletion default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ server {
#access_log /var/log/nginx/host.access.log main;

location = /fake-subdir-placeholder {
return 301 https://$host/fake-subdir-placeholder/;
rewrite ^(.*) https://$host/fake-subdir-placeholder/ permanent;
}

location / {
Expand Down

0 comments on commit d5178fc

Please sign in to comment.