博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
APACHE 配置虚拟主机和HTTPS
阅读量:2355 次
发布时间:2019-05-10

本文共 2152 字,大约阅读时间需要 7 分钟。

 

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 openssl

prepare the running env apache

yum install httpd

yum install mod_wsgi
yum install mod_ssl
config cert for apache refer to

how 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

转载地址:http://edktb.baihongyu.com/

你可能感兴趣的文章
ZooKeeper 四字命令
查看>>
Mysql InnoDB锁问题
查看>>
ZooKeeper编程 基础教程
查看>>
Java 集合框架
查看>>
kafka 操作
查看>>
Java 集合框架 算法
查看>>
Java 集合框架 Set实现
查看>>
Java 集合框架 List实现
查看>>
Java 集合框架 Map 实现
查看>>
kafka 简单入门
查看>>
maven常用命令汇总
查看>>
Redis 方案
查看>>
ZooKeeper 数据与存储配置
查看>>
ZooKeeper 安装部署
查看>>
ZooKeeper 配置
查看>>
11.组合模式--Composite
查看>>
12.轻量模式--Flyweight
查看>>
13.外观模式--Facade
查看>>
开源史上最成功的八个开源软件
查看>>
More Effective C++读书笔记
查看>>