python_note
  • Introduction
  • My Python
    • Anaconda
    • argparse
    • datetime
    • json
    • logging
    • numpy
    • open
    • openCC
    • pandas & csv
    • Socket & SocketServer
    • re
    • yaml
    • smtp
    • 物件操作
    • unittest
    • 線程
    • prettytable
    • IO
    • pycurl
    • sys
    • pickle
    • auto-python-to-exe
    • cython
    • nuitka
  • Crawler
    • Urllib & Requests
      • User-agent
      • Percent-Encoding
      • mail code
    • Selenium
    • TCP & UDP
    • 控制字符(control character)
  • Web Development
    • Flask
      • RESTful api
      • Template
      • blueprint
    • Django
      • 環境佈署(windows)
    • 檢查Port
    • Apache
    • 使用者行為
    • jQuery
    • 壓力測試
    • DataTable
    • Bootstrap
    • CSS
    • JavaScript
    • Chart.js
  • Deep Learning
    • Keras 設定
    • RNN
    • LSTM
  • Test
    • T-Test
  • 資料結構
    • Hash
    • 時間複雜度
  • NLP
    • N-gram
    • CKIP
    • 中文轉數字
    • CRF
    • Mutual Information
    • 模糊比對
  • Linebot
    • Heroku
    • 圖文選單
    • channel
  • Linux
    • 常用指令
    • shell script
    • sshfs
    • ssh
    • nodejs & npm
    • debug
  • GCP
    • app engine
    • ssh(gcp)
    • gsutil
    • brabrabra
    • Load Balancer
    • k8s
  • Database
    • mysql
    • elasticsearch
      • Query
      • Backup and Restore
      • elasticdump
      • es2csv
      • ELK
    • mongodb
      • install
      • authentication
      • pymongo
    • sql server
  • go
    • Swarm
  • Docker
    • Kitematic
    • Dockerfile
    • Swarm
  • Git
  • 其他
    • USB軟體保護
    • Windows效能監視器
  • Blockchain
Powered by GitBook
On this page
  • DOM
  • Chrome控制檯黃色警告: [Deprecation] Synchronous XMLHttpRequest
  • 網頁架構
  • 1. web伺服器 (web server)
  • 2. WSGI
  • 3. web框架
  • SSL

Was this helpful?

Web Development

Previous控制字符(control character)NextFlask

Last updated 5 years ago

Was this helpful?

DOM

把一份 HTML 文件內的各個標籤,包括文字、圖片等等都定義成物件,而這些物件最終會形成一個樹狀結構

Chrome控制檯黃色警告: [Deprecation] Synchronous XMLHttpRequest

解決方法:ajax改同步請求為非同步請求

網頁架構

1. web伺服器 (web server)

主要為接收使用者網路請求並回傳結果,ex. Nginx/apache

2. WSGI

全名為 Web伺服器閘道介面(Python Web Server Gateway Interface),為 Web server 和 Python 程式溝通的橋樑

ex. gunicorn/uWSGI/flask, django,都有附帶wsgi功能

3. web框架

django/flask,主要我們撰寫的程式

當一個瀏覽者來逛你的 Python 網路服務時,網路請求會經過 web server 到 WSGI App server 再到你的 Python 程式,再從 Python 程式回傳資料沿著原路回到瀏覽器

SSL

產生自簽憑證,並加到flask當中

目前測試結果確實可用ssl瀏覽,可是chrome會跳出警示訊息

===

===

其他免費認證憑證

如何使用 OpenSSL 建立開發測試用途的自簽憑證 (Self-Signed Certificate)

Flask 配置 HTTPS 網站 SSL 安全認證

(整理) Flask + Nginx 詳細OpenSSL設定方法

有附上免費申請網域的地方:

架網站為什麼需要 SSL 憑證?免費的 SSL 憑證教學!

https://ithelp.ithome.com.tw/articles/10202689
https://www.itread01.com/content/1544461921.html
https://hahow.in/courses/58001218da04300700fdee95/discussions/5dc6790931ab60002067dd6b
https://blog.csdn.net/lihao21/article/details/52304119
https://blog.miniasp.com/post/2019/02/25/Creating-Self-signed-Certificate-using-OpenSSL
https://medium.com/@charming_rust_oyster_221/flask-%E9%85%8D%E7%BD%AE-https-%E7%B6%B2%E7%AB%99-ssl-%E5%AE%89%E5%85%A8%E8%AA%8D%E8%AD%89-36dfeb609fa8
https://medium.com/@lufor129/%E6%95%B4%E7%90%86-flask-nginx-%E8%A9%B3%E7%B4%B0openssl%E8%A8%AD%E5%AE%9A%E6%96%B9%E6%B3%95-f619a41ac0d1
https://nctu.me/
https://www.woodowlab.com/free-ssl-certificate/