Rewrite links from hardlinked http to https.

Guillaume Filion gfk at
Wed May 12 23:12:40 MSD 2010


You may have found it by now, but just in case:

Try this:
sub_filter "" "";
sub_filter_once off; # Replace all occurrences

Or maybe:
sub_filter "" "/";
sub_filter_once off; # Replace all occurrences

Hope this helps,

Genesis a écrit :
> Hello!
> I'm fairly new at this, but I've googled for days and not been able to solve this, so I thought I'd try asking for help.
> I am running a jsp-webapp on Tomcat, and want to use nginx as a reverse proxy with ssl, in order to access the webapp through https securely over the internet.
> However, this webapp is not nicely written. Instead of linking normally, say to " page2.jsp ", it links to " ".
> I have gotten the reverse proxy to work as I want in the few cases the webapp links normally, but I haven't got nginx to change the url of links that is hardlinked to http.
> I first started to try to rewrite the webapp, but some http-links are generated by compiled .class-files, and I don't have the source code.
> So is there any way to make nginx (or another reverse proxy?) look through each page that is transferred and change all links and post-url's from " " to " "?
> That would be very nice, so that I don't have to try to decompile and edit several hundred .class-files.
> Huge thanks to anyone that help me!
> Posted at Nginx Forum:,83369,83369#msg-83369
> _______________________________________________
> nginx mailing list
> nginx at

Guillaume Filion

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the nginx mailing list