Skip to content

itsadok/play-https-redirect-fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

play-https-redirect-fixer

Tiny Play 1.x plugin to fix an issue with SSL/TLS-enabled reverse proxy. Credit.

Usage

Step 1 - Add this to dependencies.yml:

 # Application dependencies

require:
    - play
    - itsadok -> https-redirect-fixer 0.1
    
    
repositories:
     - itsadok:
        type: http
        artifact:  https://dl.dropbox.com/s/3ab9oqh5tgdm9is/[module]-[revision].zip
        contains:
        - itsadok -> *

Step 2 - Add this to your virtualhost configuration:

RequestHeader set X-FORWARDED-PROTO 'https'

I'm assuming you're using Apache2. You need to install and enable mod_headers.

Details

See the linked article for more details.

License

CC0.

About

Tiny Play 1.x plugin to fix an issue with SSL/TLS-enabled reverse proxy

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages