0
私はvhostの設定を持っています。私は2つのプロキシを作成したいと思っています、最初のプロキシパスはすべての呼び出しをhttp://localhost:3333にリダイレクトする必要がありますが、myhost.localhot/myforlderを除外します。私はhttp://myhost.localhost/examples仕事を呼び出す場合はMyFolderは、この構成では、「エイリアス」apache 2.4プロキシすべていくつかの言葉がありません
myhost.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>
ですが、私はmyhost.localhotを呼び出す/ myforlder場合、呼び出しは、ポートを使用してサーバーにある3333
myPolderをproxyPassディレクティブから除外する方法は?
別名 "/ myfolderなど" "C:/ WAMP/WWW/myfolderなど/テーマ" はProxyPass /のhttp:// localhostを:3333/
この行は、前に追加する必要がありますProxyPass/myfolder! 試してみましたが、最初の行がProxyPass/myfolderの場合は、 "myfolder" – lbottoni
が動作しません! 、申し訳ありません@ bogdan-stoica – lbottoni
問題はありません。私はそれがうまくいってうれしい! –