Ich habe eine vhost-Konfiguration, und ich will 2 Proxy erstellen, der erste Proxy-Pass muss alle Anrufe an http://localhost:3333 umleiten, aber ich möchte myhost.localhot/myforlder ausschließen. myfolder ist ein "Alias"Apache 2.4 Proxy alle aber nicht einige Worte
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>
mit dieser Konfiguration, wenn ich http://myhost.localhost/examples Arbeit nennen, aber wenn ich myhost.localhot nennen/myforlder der Anruf in Server mit Port 3333.
Wie kann ich meinen Ordner von der proxyPass-Anweisung ausschließen?
Alias "/ myfolder" "C:/wamp/www/myfolder/Thema" Proxypass/http: // localhost: 3333/ ProxyPass/meinOrdner! versucht, aber nicht für "myfolder" – lbottoni
funktionieren, wenn die erste Zeile ProxyPass/myfolder ist! , sorry @ bogdan-stoica – lbottoni
Kein Problem. Ich bin froh, dass es funktioniert hat! –