apache反向代理,动静分离

  • 作者:未知
  • 来源:
  • 2018-05-04 10:06:28

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

- 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>

  • 相关专题

免责声明:本文内容由互联网用户自发贡献自行上传,本网站不拥有所有权,也不承认相关法律责任。如果您发现本社区中有涉嫌抄袭的内容,请发送邮件至:operations@xinnet.com进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

免费咨询获取折扣