Apache 重写不使用proxypass
我得到一个虚拟主机,配置如下:Apache 重写不使用proxypass,apache,mod-rewrite,url-rewriting,mod-proxy,proxypass,Apache,Mod Rewrite,Url Rewriting,Mod Proxy,Proxypass,我得到一个虚拟主机,配置如下: <VirtualHost *:80> ServerName www.example.com # everthing that does not match cms.example.com also # goes to the site application ServerAlias *.example.com ProxyPreserveHost On ProxyPass
<VirtualHost *:80>
ServerName www.example.com
# everthing that does not match cms.example.com also
# goes to the site application
ServerAlias *.example.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8080/site/
ProxyPassReverse / http://127.0.0.1:8080/site/
ProxyPassReverseCookiePath /site /
ProxyPass /symLink !
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^/url-to-rewrite(.*) /symLink/filepath/$1 [L]
</VirtualHost>
使用proxypass还有其他方法吗?
仅在某些上下文中,文件路径包含一个index.html,用于加载迷你flash站点
任何帮助都将不胜感激,
谢谢也许
ProxyPass/symLink代码>应在其他ProxyPass
行之前?例外情况是在任何其他情况之前。
The requested URL /url-to-rewrite/ was not found on this server.