반응형
nano /usr/local/etc/nginx/nginx.conf
https://fgh0296.tistory.com/48
next.js 서버의 reverse proxy 설정하기
nginx 버전은 다음과 같다. 사용 버전 : 1.18.0 버전 확인 방법 : nginx -v 1. vi /etc/nginx/nginx.conf nginx.conf 파일에 들어간다. http { #... server_names_hash_bucket_size 64; #주석해제 #... } 위와 같..
fgh0296.tistory.com
https://velog.io/@davelee/mac%EC%97%90-nginx-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0
mac에 nginx 설치하기
우선 brew가 설치되어 있지 않다면 mac에 homebrew 설치하기를 참고해 먼저 homebrew를 설치하자.터미널 실행 후 brew services 를 실행해 nginx가 설치되어 있지 않음을 확인한다.설치는 brew install nginx 로 끝
velog.io
sudo systemctl status nginx
sudo systemctl restart nginx
brew services restart nginx
Nginx Error Log 설정과 보는 방법
Nginx 에서 에러가 났을 때 로그를 확인하기 위해서는 error_log.log 파일을 출력하여야 합니다. 이는 nginx.conf 설정에서 설정이 가능하고 어디에 출력이 되는지 path 설정도 가능합니다. http { ... server {
abbo.tistory.com
반응형
'프론트엔드 웹 > Next' 카테고리의 다른 글
외부 URL에 새창으로 이동하기 (useRouter, window.location, window.open) (0) | 2022.06.28 |
---|---|
openssl로 Next.js HTTPS 적용하기 (0) | 2022.04.28 |
Next.js SWR 예제 (0) | 2022.03.24 |
Next.js Image Resize (0) | 2022.03.24 |
Next.js getInitialProps / getServerSideProps 예제 (0) | 2022.03.21 |