2018年1月22日 星期一

安裝 nginx & apace2 (HTTPS Server) Ubuntu Linux


  • apt-get install nginx
  • vim /etc/nginx/sites-available/default

1. 將listen 433 的註解打開
2. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
3. root /var/www/html  (你可以把想加入的檔案放到此)



  • /etc/init.d/nginx reload


安裝 HTTP/HTTPS Proxy Server (Linux Ubuntu)


  • apt-get install squid


  • vim /etc/squid/squid.conf

1. 將 http_access allow localhost 改成 http_access allow all
2. 將 http_access deny all 註解

  • /etc/init.d/squid restart



如何驗證?

到Client端指定Proxy Server,
然後到Proxy Server端,打開Wireshark filter http,
你可以看到Client瀏覽任何網頁,一定會經過Proxy Server。