Open dryben opened 5 years ago
sudo vi /etc/nginx/pie.kr
//프록시 server { listen 80; server_name pie.com pie.kr; location / { proxy_pass <http://localhost:60001;> } } //리다이렉트 server { server_name www.pie.kr; return 301 $scheme://pie.kr$request_uri; }
sudo ln -s /etc/nginx/sites-available/pie /etc/nginx/sites-enabled/ sudo nginx -t sudo service nginx restart
sudo vi /etc/nginx/pie.kr
sudo ln -s /etc/nginx/sites-available/pie /etc/nginx/sites-enabled/ sudo nginx -t sudo service nginx restart