Professional Documents
Culture Documents
#########################################################3
web server
sudo apt-get update
sudo apt-get install python3
sudo apt-get install python3-pip
pip3 install Django
django-admin startproject django_app
sudo apt-get update
sudo apt-get install apache2
<VirtualHost *:80>
ServerName n1g1channel.duckdns.org
ProxyPreserveHost On
ProxyPass / http://localhost:5000/
ProxyPassReverse / http://localhost:5000/
#RewriteEngine on
#RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
#RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
#RewriteRule /(.*) ws://127.0.0.1:5000/$1 [P]
</VirtualHost>