apache
-
[오답노트] Docker 환경에서 Vue + Vite Proxy 설정 (웹서버 프록시 설정)오답 노트 2024. 4. 29. 11:22
최근 프로젝트를 진행하며 백엔드 개발자인 저에게 조금의 시련이 찾아왔습니다.Vite 기반의 Vue를 프론트 서버(Ubuntu + Apache2)에 띄우는 것이었죠.그간엔 그냥 부트 임베디드 톰캣에 전부 다 띄우거나, 외부 프론트 개발을 따로하더라도 톰캣을 활용해썼는데이번엔 SSL과 Proxy 설정 및 내부 프로젝트 환경 때문에 부득이하게 웹서버에서 프론트를 서빙해야 하는 이슈가 있었습니다.실제 개발서버 배포 전 개인 PC에서 Docker 환경으로 Ubuntu 컨테이너를 하나 띄우고 그곳에 Apache와 Tomcat을 모두 설치하여프론트 서빙은 Apache를 통해 하도록 구현하고, Backend API는 Tomcat으로 처리하도록 구현하였습니다. 허나 여기서 기존에 제 로컬에선 잘 되던 Vite의 Prox..
-
Apache HttpClient 5 알아보기스터디 노트 2023. 12. 6. 13:25
HTTP(Hypertext Transfer Protocol)는 이제 인터넷에서 가장 중요한 프로토콜 중 하나입니다. 웹 서비스를 구성하는 대표적 아키텍쳐인 마이크로 서비스 등에서 사용하는 통신 규약 프로토콜로 HTTP가 지배적으로 사용되며, HTTP 프로토콜은 웹 브라우저에서 더 광범위한 시나리오로 사용되고 있지요. Java Enterprise 개발자라면 HTTP를 다루기 위해 여러가지 공부를 해야 합니다. 오늘은 그 중 Apache의 HttpClient 5에 대해 스터디를 해볼까 합니다. Apache HttpClient 5는 Java에서 HTTP 요청을 보내고 응답을 수신할 수 있도록 기능을 제공하는 라이브러리입니다. 이 라이브러리는 다양한 기능을 제공하여 HTTP 요청과 응답을 보다 쉽게 구현할 수 ..