[Macpartners] mapping ports on http requests

Douglas Alan darkwater42 at gmail.com
Mon Jun 1 22:17:10 EDT 2009


You can have Apache forward certain URLs to another http server running on
the same machine like so in your httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so
RewriteRule ^/foo($|/.*) http://localhost:8000$1 [P,L]

When you have done this, all incoming URLs of the form

http://yourhost.mit.edu/foo/*

will be redirected to

http://yourhost.mit.edu:8000/foo/*

|>ouglas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/macpartners/attachments/20090601/b2b2b124/attachment.htm


More information about the Macpartners mailing list