Web/App Server Testing Completed

This commit is contained in:
bluebamus committed 2025-11-12 16:05:24 +09:00
1 parent 6e68424d79
commit c3574f0cfc
5 files changed
+23 -7

No files matched your search

@@ -1,6 +1,6 @@
server {
listen 80;
server_name localhost www.localhost;
listen 80 default_server; # default_server 추가
server_name localhost www.localhost;
access_log /log/nginx/fastapi_sample.com.access.log main;
error_log /log/nginx/fastapi_sample.com.error.log warn;
@@ -10,7 +10,7 @@ server {
gzip_static on;
expires max;
#alias /www/fastapi_sample/fastapi_sample/media;
alias /www/fastapi_sample/media; # your fastapi project's media files - amend as required
alias /www/app/media; # your fastapi project's media files - amend as required
#include /etc/nginx/mime.types;
}
@@ -19,7 +19,7 @@ server {
expires max;
#alias /www/fastapi_sample/fastapi_sample/static;
# normally static folder is named as /static
alias /www/fastapi_sample/static; # your fastapi project's static files - amend as required
alias /www/app/static; # your fastapi project's static files - amend as required
#include /etc/nginx/mime.types;
}
@@ -32,7 +32,7 @@ server {
# Allow Lets Encrypt Domain Validation Program
location ^~ /.well-known/acme-challenge/ {
allow all;
root /www/fastapi_sample;
root /www/app;
}
# Block dot file (.htaccess .htpasswd .svn .git .env and so on.)