httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Tomic <tomicmi...@yahoo.com>
Subject [users@httpd] Forwarding a file, not whole directory
Date Mon, 15 Mar 2010 09:19:45 GMT
Hi everybody,

Some hand is needed here... :)

How can I specify, that request to one file should be redirected?

I have this:

<VirtualHost *:80>
  <Location /MyApp/>
    ProxyPass  ajp://localhost:8010/MyApp/
  </Location>
</VirtualHost>

and now I would like to add this (request to single file to be redirected to THE OTHER tomcat):

<VirtualHost *:80>
  <Location /MyApp/myFile.html>
    ProxyPass  ajp://localhost:8011/MyApp/MyFile.html
  </Location>
  <Location /MyApp/>
    ProxyPass  ajp://localhost:8010/MyApp/
  </Location>
</VirtualHost>

is this the right way to achieve this?

Thank you in advance,
Milan



      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message