[clug-talk] Apache and mod_rewrite tips?
gustin at echostar.ca
Fri Mar 18 14:29:18 PST 2005
You could put an index page on https://myapp.myorg.com that has links
apps that are accessed via https://myapp.myorg.com/whateverapp
For now that index page could just redirect
No trees were harmed in the transmission of this message, however a
of electrons were seriously inconvenienced.
Quoting Shawn <sgrover at open2space.com>:
> Thanks to all who helped out. I was able to get this running properly.
> I gave in on one issue which ended up resolving the problem for me. Instead
> of using http://myapp.myorg.com, I ended up doing
> http://myapp.myorg.com/myapp (note the trailing directory). Then I simply
> needed a ProxyPass to redirect to the correct server and tweak my app to use
> the external server name internally. We initially didn't want to use the
> trailing directory, but management has changed it's mind and feel that doing
> so buys us more flexibility with regards to other apps they want to make
> available. (Such as AutoDesk's MapGuide).
> So, out of all that, I was able to just remove the rewrite rules I had been
> trying and only use the ProxyPass and ProxyPassReverse. (and make sure that
> each machine involved knew where to find the desired server).
> Thanks again for all the help.
> On Tuesday 15 March 2005 19:54, Michael Gale wrote:
>> That is an excellent idea ... sed could do that no problem, since by
>> default sed's output is STDOUT.
>> | sed 's/find/replace/g'
>> g - globally
>> Dave Lee wrote:
>> > Shawn <sgrover at open2space.com> wrote:
>> >>So, I guess my question is how do you do this then, if mod_rewrite isn't
>> >> the correct option?
>> > mod_ext_filter:
>> > http://httpd.apache.org/docs-2.0/mod/mod_ext_filter.html
>> > which would allow you to run the content output through an program you
>> > want, so if you want to change all http://myapp... to http://extapp
>> > you could run the output through sed or perl
>> > I'm no sed expert, but here is an example.
>> > echo http://myapp | sed 's|http://myapp|http://extapp|'
>> > Dave
This message was sent using Echostar Secure Webmail
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: PGP Digital Signature
Url : /pipermail/clug-talk_clug.ca/attachments/20050318/6a26abd0/attachment.bin
More information about the clug-talk