mac에 nginx 설치하기

Seungsoo Lee·2022년 8월 21일
0

web

목록 보기
2/13

http-proxy-middleware 이 모듈도 쓸모있지만 실제로는 porxy 정확하겐 reverse proxy를 nginx로 많이 사용한다한다. 그래서 한번 시도해보려고한다.

  • 설치
    brew install nginx

  • nginx 스타트
    brew services start nginx

  • localhost:8080로 접속하면 nginx 설치된것을 볼 수 있음

  • 세부 설정을 위해 /opt/homebrew/etc/nginx/nginx.conf(mac기준) 파일을 수정해야한다.
    - defualt port 변경

    	server {
        	listen       8087;

    이제 localhost:8087로 바뀔것이다.

0개의 댓글