We completely replace the "Apps/WebObjects/FooBarApp.woa" part by "App" and
redirect all HTTP calls to HTTPS.
In the HTTP Apache config:
Redirect permanent / https://www.example.com/
In the HTTPS Apache config:
RewriteRule ^/$ /App [R]
RewriteRule ^/index.html$ /App [R]
RewriteRule ^/App(/(.*))?$ /Apps/WebObjects/FooBarApp.woa$1 [PT,L]
In the Properties:
er.extensions.ERXApplication.replaceApplicationPath.pattern=/Apps/WebObjects/FooBarApp.woa
er.extensions.ERXApplication.replaceApplicationPath.replace=/App
Best regards,
Stefan
> Am 27.08.2020 um 23:40 schrieb Jesse Tayler via Webobjects-dev
> <[email protected]>:
>
>
> I use AWS+Route53 for SSL and I really just want to force all requests to
> HTTPS and I’m having trouble
>
> I have a few common WO rewrites to shorten URLs
>
>
> RewriteRule ^/signup /apps/WebObjects/MyAppName.woa/wa/signup
> [last,passthrough]
> RewriteRule ^/default /apps/WebObjects/MyAppName.woa/wa/default
> [last,passthrough]
>
> RewriteRule ^/myappname(.*)$ /apps/WebObjects/MyAppName.woa$1 [PT,L]
>
>
> And I seem to have these SSL related:
>
> RewriteCond %{HTTPS} on
> RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
>
>
>
> And no matter how I try to program this, I get too many redirects because
> apparently my rules run a loop or something?
>
> Basic redirects are not unique to WebObjects!
>
> How are you guys programming apache to shorten URLs and also bounce to SSL if
> it is not already?
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/stefan.gaertner%40nureg.de
>
> This email sent to [email protected]
--
Mit freundlichen Grüßen
Stefan Gärtner
/// IT/Software-Entwicklung ///
NUREG GmbH ///
Dorfäckerstraße 31 | 90427 Nürnberg | Germany
Tel.: +49-911-32002-183 | Fax: +49-911-32002-299
Nürnberg HRB 22653 | USt.ID DE 814 685 653
Geschäftsführer: Michael Schmidt, Stefan Boas
www.nureg.de <http://www.nureg.de/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]