sudo apt-get install nginx
sudo vim /etc/nginx/nginx.conf
일단 아래 부분을 찾아서 바로 밑에 리버스 프록시 부분을 추가한다.
...
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
...
👇👇👇👇👇👇👇👇👇👇
...
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
server_name admin.yebalja.com;
location / {
proxy_set_header HOST $host;
proxy_pass http://127.0.0.1:3310;
proxy_redirect off;
}
}
...
sudo apt-get install nginx
sudo apt-get purge nginx nginx-common
sudo service nginx start
sudo service nginx restart
sudo systemctl start nginx
sudo systemctl restart nginx