【发布时间】:2017-02-09 18:02:25
【问题描述】:
我有一个虚拟主机配置,我想创建 2 个代理,第一个代理通道必须将所有调用重定向到 http://localhost:3333,但我想排除 myhost.localhot/myforlder。 myfolder 是“别名”
我的主机.localhost
<VirtualHost *:80>
ServerAdmin myhost.localhost
ServerName myhost.localhost
ServerAlias www.myhost.localhost
DocumentRoot C:/wamp/www/myhost/
DirectoryIndex index.php index.html index.htm
RewriteEngine On
#this a alias for get correct file index.html
#work fine only if i remove next proxyPass
Alias "/myfolder " "C:/wamp/www/myfolder/theme"
#all calls proxy
ProxyPass / http://localhost:3333/
<Directory />
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
# Ricordarsi di creare la directory
ErrorLog C:/wamp/logs/myhost.localhost.error.log
CustomLog C:/wamp/logs/myhost.localhost.access.log combined
</VirtualHost>
如果我调用 http://myhost.localhost/examples 工作,则使用此配置,但如果我调用 myhost.localhot/myforlder,则调用在端口为 3333 的服务器中。
如何从 proxyPass 指令中排除 myfolder?
【问题讨论】: