Re: Apache rules and SSL
Re: Apache rules and SSL
- Subject: Re: Apache rules and SSL
- From: Stefan Gärtner via Webobjects-dev <email@hidden>
- Date: Fri, 28 Aug 2020 07:24:16 +0200
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@hidden>:
>
>
> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden