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




apt-get install apache2
/etc/init.d/apache2 start

https://localhost/   (直接就支援https,config什麼都不用改!)

vim /etc/apache2/apache2.conf

檔案也是放在 /var/www/html  (與nginx路徑相同)

沒有留言:

張貼留言