apache反向代理,动静分离

  • 来源:
  • 更新日期:2018-05-04

摘要:- ProxyPass /upload !  #不走代理,虚拟主机自己处理,对应路径DocumentRoot目录下 -  ProxyPass /photo ! -  ProxyPass /*.jpg ! -  ProxyPass /*.gif ! -  ProxyPass /*.png ! -  ProxyPass /*.jpeg ! -  -  - ProxyRequests O

- ProxyPass /upload ! #不走代理,虚拟主机自己处理,对应路径DocumentRoot目录下

- ProxyPass /photo !

- ProxyPass /*.jpg !

- ProxyPass /*.gif !

- ProxyPass /*.png !

- ProxyPass /*.jpeg !

timg.jpg

-

- ProxyRequests Off

- ProxyPass / balancer://125home/ lbmethod=byrequests stickysession=JSESSIONID nofailover=Off timeout=5 maxattempts=3

-

- <Proxy balancer://125home>

-

- <VirtualHost *:80>

-

- DocumentRoot "/data/home"

- ServerAlias 125home.cn i.125home.cn

- ErrorLog "/data/logs/125home.cn-error_log"

- CustomLog "/data/logs/125home.cn-access_log" common

-

- ProxyVia Off

- ProxyRequests Off

- ProxyPreserveHost On

-

-

-

- RewriteEngine On

 

-

- <Directory "/data/home">

- DirectoryIndex index.html

- # Options Indexes FollowSymlinks MultiViews

- Options Indexes FollowSymLinks Includes ExecCGI

- AllowOverride All

- Order deny,allow

- Require all granted

- Allow from all

- </Directory>

- </VirtualHost>