J'ai une configuration vhost et je veux créer 2 proxy, le premier passe proxy doit rediriger tous les appels à http://localhost:3333, mais je veux exclure myhost.localhot/myforlder. myfolder est un "Alias"Apache 2.4 proxy tous mais pas quelques mots
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>
avec cette configuration si je l'appelle http://myhost.localhost/examples travail, mais si je l'appelle myhost.localhot/myforlder l'appel est en serveur avec le port 3333.
comment exclure myfolder de la directive proxyPass?
Alias "/ myfolder" "C:/wamp/www/myfolder/thème" ProxyPass/http: // localhost: 3333/ ProxyPass/myfolder! essayé, mais ne fonctionne pas pour "myfolder" – lbottoni
fonctionne si la première ligne est ProxyPass/myfolder! , désolé @ bogdan-stoica – lbottoni
Pas de problème. Je suis content que ça a marché! –