Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 397 Bytes

reverse_proxy_with_symblink.md

File metadata and controls

25 lines (16 loc) · 397 Bytes

Reverse Proxy with symbolic link

  1. Create a file in /etc/nginx/sites-available

  2. Add the following content to the file

server {
	listen 80;
	location / {
		proxy_pass "http://localhost:8080";
	}
}
  1. Save the file

  2. Create symblink

    sudo ln -s /etc/nginx/sites-available/{file_name} /etc/nginx/sites-enabled/{file_name}

  3. Reload the nginx

    sudo service nginx restart