yum install python36u python36u-devel python36u-mod_wsgialias python='/usr/bin/python3.6'curl -O https://bootstrap.pypa.io/get-pip.pypython get-pip.pypython -m pip install django mysqlclientcp /etc/httpd/modules/mod_wsgi_python3.6.so /usr/local/apache/modules- create/clone/move project to another location ( not /home/user/public_html ) because there is not any access to top level directories
- config apache
- make & config database ( project/settings.py )
- convert charset
ALTER TABLE table CONVERT TO CHARACTER SET utf8;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name mysite.com; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } | |
| server { | |
| listen 443; | |
| ... | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| root /vagrant; | |
| index index.html index.htm index.php app.php app_dev.php; | |
| # Make site accessible from http://set-ip-address.xip.io | |
| server_name 192.168.33.10.xip.io; | |
| access_log /var/log/nginx/vagrant.com-access.log; | |
| error_log /var/log/nginx/vagrant.com-error.log error; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### I am no Bash expert, I just googled and put this script together | |
| #### Be free to fork and post updates to this gist | |
| #### Also, you can change the username and email below for the django superuser | |
| DEFAULT_USER="admin" | |
| DEFAULT_EMAIL="admin@mail.com" | |
| DEFAULT_PASS="pass" | |
| function usage | |
| { |
THIS GIST WON'T BE UPDATED ANY MORE (24/10/18)
Follow the progress of this project here 3os.org Raspberry Pi 3 TOR Access Point Router Project
Network: Router RJ45 <--> Ethernet Port on Raspberry <--> TOR <--> Raspberry WIFI AC <--> WIFI CLIENT
# -- Download Rasbian Strech Lite from: https://www.raspberrypi.org/downloads/raspbian/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### This file implements a blacklist for certain user agents and | |
| ### referrers. It's a first line of defense. It must be included | |
| ### inside a http block. | |
| # based from https://github.com/perusio/piwik-nginx/blob/master/blacklist.conf | |
| # blacklist from http://perishablepress.com/2013-user-agent-blacklist/ | |
| ## Add here all user agents that are to be blocked. | |
| map $http_user_agent $bad_bot { | |
| default 0; |
(from Understanding Nginx Server and Location Block Selection Algorithms - https://goo.gl/YyzshP)
server {