Hi Tony, I did have some ProxyPass/ProxyPassReverse settings in the global content and required proxy modules are enabled.
At the end I solve it by using rewrite rule inside the old virtualhost: RewriteRule ^/app_test(/.*)?$ http://app_prod.example.com [R] It is working fine now. For the weird proxy error, is it possible caused by my ProxyPass/ProxyPassReverse rules in the global content? Should I really move them into the virtualhost container? Cheers, D On Thu, Nov 1, 2012 at 6:56 AM, Anthony J. Biacco < abia...@formatdynamics.com> wrote: > Does app_test = galaxy_qa in this example??**** > > If it does, the error doesn’t make much sense in your problem as a > Redirect only requires the mod_alias module to be enabled.**** > > But if galaxy_qa != app_test then you got a problem somewhere else where > you’re trying to do a ProxyPass/ProxyPassReverse for a path without > enabling the mod_proxy and mod_proxy_http modules.**** > > ** ** > > -Tony**** > > ---------------------------**** > > Manager, IT Operations**** > > Format Dynamics, Inc.**** > > P: 303-228-7327**** > > F: 303-228-7305**** > > abia...@formatdynamics.com**** > > http://www.formatdynamics.com**** > > ** ** > > *From:* Derrick Lin [mailto:klin...@gmail.com] > *Sent:* Sunday, October 28, 2012 10:21 PM > *To:* users@httpd.apache.org > *Subject:* [users@httpd] Redirect subdirectory to another virtualhost on > Apache??**** > > ** ** > > Hey guys,**** > > ** ** > > I have been trying to do the Apache redirect with no luck so far.**** > > ** ** > > I have one webapp running as a subdirectory of a virtualhost as > http://old.example.com/app_test. Recently we have setup a new DNS for > this webapp called app_prod.example.com.**** > > ** ** > > We then setup another virtualhost points to this new DNS and the webapp > (via proxy). It's working fine.**** > > ** ** > > But we also need to redirect the old URL to the new one for some old > users. What I did was, in the old.example.com virtualhost block, I put:*** > * > > ** ** > > Redirect permanent /app_test http://app_prod.example.com**** > > ** ** > > But it gave 500 internal server error. I checked the error log, the > generated error is:**** > > ** ** > > [Mon Oct 29 15:17:11 2012] [warn] proxy: No protocol handler was valid for > the URL /galaxy_qa. If you are using a DSO version of mod_proxy, make sure > the proxy submodules are included in the configuration using LoadModule.** > ** > > ** ** > > I am using Apache 2.2.16 on ubuntu 10.10 server.**** > > ** ** > > Any suggestion?**** > > ** ** > > Cheers,**** > > Derrick **** >