feat: .htaccess 내용 이식

This commit is contained in:
2022-03-14 01:31:56 +09:00
parent 22f37cbdec
commit 4ea00e6deb
3 changed files with 70 additions and 0 deletions
+1
View File
@@ -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
+1
View File
@@ -30,6 +30,7 @@ server {
}
location / {
include snippets/sam.conf;
location ~ \.php$ {
include fastcgi_params;
proxy_read_timeout 600;
+68
View File
@@ -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;
}