We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server_name localhost; location / { root /var/www/html; index index.html index.htm index.nginx-debian.html; proxy_pass http://localhost:8081; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; } location ~ \.(css|js|jpg|jpeg|gif|htm|html|swf)$ { root /var/www/html; index index.html index.htm index.nginx-debian.html; } location /index.html { root /var/www/html/index.html }
톰캣에서 index.html을 왜 못 찾나?
hello 페이지는 왜 덮어씌워지지 않는지
루트에서 접속하는 방식을 nginx로 직접 하는게 아니라, 캐싱 된 데이터를 사용하도록 해야하는건지?
참고
The text was updated successfully, but these errors were encountered:
현재 동작 중 설정
# Default server configuration # server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; server_name localhost; location / { try_files $uri $uri/ @apachesite; } location ~ \.(css|js|jpg|jpeg|gif|htm|html|swf)$ { } location @apachesite { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8081; } # try_files 테스트용 location /index2 { try_files $uri /index.html; } }
Sorry, something went wrong.
Dae-Hwa
Jiwon-JJW
No branches or pull requests
현재 설정
예상 결과?
실행 결과
의문점
톰캣에서 index.html을 왜 못 찾나?
hello 페이지는 왜 덮어씌워지지 않는지
루트에서 접속하는 방식을 nginx로 직접 하는게 아니라, 캐싱 된 데이터를 사용하도록 해야하는건지?
The text was updated successfully, but these errors were encountered: