diff --git a/server.py b/server.py
index 9eedb53..fb90ad7 100644
--- a/server.py
+++ b/server.py
@@ -27,7 +27,7 @@ if os.name == 'nt': # Windows
sys.stderr = codecs.getwriter('utf-8')(sys.stderr.detach())
# 서버 설정
-PORT = 3000
+PORT = 8001
HOST = '0.0.0.0' # 모든 인터페이스에서 접근 가능
class CustomHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
@@ -46,22 +46,6 @@ class CustomHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
"""GET 요청 처리"""
- original_path = self.path
-
- # .html로 직접 접근하는 경우 리다이렉트
- if self.path.endswith('.html') and self.path != '/index.html':
- clean_path = self.path[:-5] # .html 제거
- self.send_response(301)
- self.send_header('Location', clean_path)
- self.end_headers()
- return
-
- # .html 확장자 없이 접근 시 자동으로 .html 추가
- if not self.path.endswith('/') and '.' not in os.path.basename(self.path):
- html_path = self.path + '.html'
- if os.path.exists(html_path.lstrip('/')):
- self.path = html_path
-
# 기본 파일 처리
if self.path == '/':
self.path = '/index.html'