On Wed, 2004-01-07 at 15:16, HAMILTON,DAVID (HP-Ireland,ex2) wrote:
> I need to set Apache up to automagically take any requests to
>http://foo.bar.local/ and redirect them to
>http://server1.bar.local:7779/forms90/f90servlet?form=title.fmx.>> Someone has suggested using mod_rewrite, but I can't make head or tail of
> the documentation (http://httpd.apache.org/docs/misc/rewriteguide.html), and
> am not sure if it is the best option anyway.
>> Any ideas?
>> David.
add these 2 lines to your virtualhost declaration in httpd.conf:
RewriteEngine On
RewriteRule ^/.*$ http://server1.bar.local:7779/forms.....
k.
--
Ken Guest
Senior Developer
Stockbyte Royalty Free Photos
http://www.stockbyte.com
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!