ruby on rails - webrick using ssl whats to do? -


i've got rails 4 application , want run ssl on webrick. have do?

i've added ssl certificate domain , startet this

bundle exec rails s -e production -p 3001 --binding=0.0.0.0

now got error:

internal server error  server encountered internal error or misconfiguration , unable complete request.  please contact server administrator @  inform them of time error occurred, , actions performed before error.  more information error may available in server error log.  additionally, 500 internal server error error encountered while trying use errordocument handle request.  apache server @ domain.de port 443 

thanks

directives set apache https

proxypreservehost on proxyrequests on servername domain.de serveralias *.domain.de proxypass / https://subdomain.domain.de:3001/ proxypassreverse / https://subdomain.domain.de:3001/ sslengine on 

most people solve switching webrick thin (or better, unicorn/puma/passenger). don't think webrick designed run in production.

you terminate ssl @ apache webrick handles http. (also, assuming apache running on same box, don't need bind 0.0.0.0. localhost do, , binding external ip sounds security vulnerability.)

if want keep webrick , have handle ssl, change bin/rails described in this other answer.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -