prepare the running env of os
make sure you are using redhat or centen os 7.5
cat /etc/redhat-release yum install git yum install opensslprepare the running env apache
yum install httpd
yum install mod_wsgi yum install mod_ssl config cert for apache refer tohow to run it at appche httpd2.4.6 of Redhat7.5
git the code at /app/ and it will at
/app/yourproject/
add the config of follow to /etc/httpd/conf/httpd.conf
support python web wsgi
DocumentRoot "/appvol/SigninWork" ServerName checkin.robin.org.cn #ServerAlias checkin.robin.org.cn WSGIScriptAlias / /appvol/SigninWork/code.py/ Alias /static /appvol/SigninWork/static/ AddType text/html .py #对于80端口开启RUL重定向 RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}$1 [L,R] Options FollowSymLinks AllowOverride All Require all granted DocumentRoot "/appvol/SigninWork" ServerName checkin.robin.org.cn #ServerAlias www.robin.org.cn WSGIScriptAlias / /appvol/SigninWork/code.py/ Alias /static /appvol/SigninWork/static/ AddType text/html .py Options FollowSymLinks AllowOverride All Require all granted
support php
DocumentRoot "/appvol/wordpress_blog" ServerName robin.org.cn ServerAlias www.robin.org.cn blog.robin.org.cn AddType text/html .php #对于80端口开启RUL重定向 RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}$1 [L,R] Options FollowSymLinks AllowOverride All Require all granted DocumentRoot "/appvol/wordpress_blog" ServerName robin.org.cn ServerAlias www.robin.org.cn blog.robin.org.cn AddType text/html .php Options FollowSymLinks AllowOverride All Require all granted