Files
nice-app-web/docker/.htaccess
Jay Sheen 8ae42bce07 Docker 설정 파일 구조 개선 및 .vite 폴더 추적 제거
- .dockerignore 및 docker-compose.yml을 docker/ 디렉토리로 이동
- Makefile의 docker-compose 명령어 경로 업데이트
- .vite/ 폴더를 git 추적에서 제거

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 14:06:22 +09:00

50 lines
1.7 KiB
ApacheConf

# Enable rewrite engine
RewriteEngine On
# Redirect all traffic to HTTPS in production (uncomment if needed)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# React Router - Redirect all requests to index.html
# Don't rewrite files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
# Prevent direct access to .env files
<Files .env*>
Require all denied
</Files>
# Security headers (if mod_headers is enabled)
<IfModule mod_headers.c>
# Cache static assets for 1 year
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg|woff|woff2|ttf|otf)$">
Header set Cache-Control "max-age=31536000, public, immutable"
</FilesMatch>
# Cache HTML files for 10 minutes
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=600, must-revalidate"
</FilesMatch>
</IfModule>
# Compression (if mod_deflate is enabled)
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE image/svg+xml
</IfModule>
# Error pages (customize as needed)
# ErrorDocument 404 /index.html
# ErrorDocument 500 /index.html