- 将mybxg-api后台数据down到本地
- mybxg-doc为接口文档
- 将mybxg项目down至本地E盘,根据下方例子配置本地环境
DocumentRoot "e:/mybxg/"
<Directory "e:/mybxg/">
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "e:/mybxg/mybxg"
ServerName mybxg.com
ServerAlias www.mybxg.com
ProxyPass /api http://api.studyit.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "e:/mybxg/doc/studyit-doc/preview/"
ServerName doc.studyit.com
DirectoryIndex doc.html
</VirtualHost>
127.0.0.1 mybxg.com
127.0.0.1 www.mybxg.com
127.0.0.1 doc.mybxg.com
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride All