简体   繁体   中英

No redirect in apache2 VirtualHost

I have a tomcat:8080 behind an apache2 proxy. I want the proxy to redirect a specific path:

<VirtualHost *:8080>
    Redirect "/test" "/test2"   
</VirtualHost>

(of course I executed an apache reload/restart afterwards).

But when I call http://<ip>:8080/test , no redirect happens.

What might be missing?

我不得不将Listen 8080添加到/etc/apache2/ports.conf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM