From 4ea00e6debd9fab575e171459e2248c0479b13e4 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Mon, 14 Mar 2022 01:31:56 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20.htaccess=20=EB=82=B4=EC=9A=A9=20?= =?UTF-8?q?=EC=9D=B4=EC=8B=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hidche/web/Dockerfile | 1 + hidche/web/default.conf | 1 + hidche/web/sam.conf | 68 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 hidche/web/sam.conf diff --git a/hidche/web/Dockerfile b/hidche/web/Dockerfile index 03b2daa..fe95560 100644 --- a/hidche/web/Dockerfile +++ b/hidche/web/Dockerfile @@ -14,6 +14,7 @@ RUN if [ "$UID" != 33 ]; then \ fi; COPY ./default.conf /etc/nginx/conf.d/default.conf +COPY ./sam.conf /etc/nginx/snippets/sam.conf COPY ./rhymix.conf /etc/nginx/snippets/rhymix.conf VOLUME /var/www/html diff --git a/hidche/web/default.conf b/hidche/web/default.conf index 6fdd3f0..6c2872d 100644 --- a/hidche/web/default.conf +++ b/hidche/web/default.conf @@ -30,6 +30,7 @@ server { } location / { + include snippets/sam.conf; location ~ \.php$ { include fastcgi_params; proxy_read_timeout 600; diff --git a/hidche/web/sam.conf b/hidche/web/sam.conf new file mode 100644 index 0000000..252ebe3 --- /dev/null +++ b/hidche/web/sam.conf @@ -0,0 +1,68 @@ +location ~ /\. { + return 404; +} + +location ~ /composer { + return 404; +} + +location ~ /package\.(json|lock) { + return 404; +} + + +location ~ /d_setting/ { + return 404; +} + +location ~ /d_log/ { + return 404; +} + +location ~ /logs/ { + return 404; +} + +location ~ /node_modules { + return 404; +} + +location ~ /vendor { + return 404; +} + +location ~ /tests { + return 404; +} + +location ~ /test-ts { + return 404; +} + +location ~ /npm_recent { + return 404; +} + +location ~ /composer_result { + return 404; +} + +location ~ /tsconfig.json { + return 404; +} + +location ~ /webpack.config.js { + return 404; +} + +location ~ /src { + return 404; +} + +location ~ /[^/]+/sammo/ { + return 404; +} + +location ~ /[^/]+/data/ { + return 404; +} \ No newline at end of file