通过htaccess反向代理

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了通过htaccess反向代理相关的知识,希望对你有一定的参考价值。

  1. # This rule will send the requests that client made as being from our server to the
  2. # server_name specified.
  3. # Combined with a named apache virtualhost this can be used to expose multiple webservers
  4. # behind the same IP public address. The server were we put this config will act as a
  5. # gateway and the public IP address must point to him.
  6.  
  7. RewriteRule ^(.*)$ http://server_name/$1 [P,L]
  8. RewriteRule ^$ http://server_name/ [P,L]

以上是关于通过htaccess反向代理的主要内容,如果未能解决你的问题,请参考以下文章

wdlinux中apache配置反向代理模块

如果Node.js已具备反向代理的功能,我为什么要使用反向代理?

Nginx反向代理常用配置

正向代理与反向代理

Nginx 最全操作——nginx反向代理(5)

express反向代理