Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Problem with apache mod_wsgi #7

Closed
Nelkit opened this issue Mar 26, 2016 · 6 comments
Closed

Problem with apache mod_wsgi #7

Nelkit opened this issue Mar 26, 2016 · 6 comments

Comments

@Nelkit
Copy link

Nelkit commented Mar 26, 2016

How use this script with apache mod_wsgi django, always shows this error: `validate!': Failed to verify statuses in 10 seconds. (RuntimeError)

help me please!

@will-in-wi
Copy link
Owner

I'm not familiar with Django, but I assume that there is a folder containing files which are served directly by Apache. You need to make sure that is the folder you are passing in --public.

Some more info here: https://github.com/will-in-wi/letsencrypt-webfaction/wiki/Troubleshooting

If that doesn't work, or you figure it out, post back with what you did. I'm collecting a set of notes for specific setups, and I'd love to add Django to the list.

Thanks!

@will-in-wi
Copy link
Owner

From reading the Django docs, I made my best guess at instructions: https://github.com/will-in-wi/letsencrypt-webfaction/wiki/Django

Feel free to give it a shot, and let me know if I should modify the instructions.

@will-in-wi
Copy link
Owner

Have you had any success with getting this to work?

@diopib
Copy link

diopib commented Apr 1, 2016

I faced the same issue and I have found a workaround:

  1. activate https on the django app website
  2. add a new static app and create the associated website with the same domain but no ssl
  3. use the command with the static app root dir (--public ~/webapps/new_static_app)

After that an email should be sent to support to install the certificate for the specified domain. Et voila.
You can use the newly created static app to redirect http traffic to https as described here

Thanks @will-in-wi for this useful code :)

@will-in-wi
Copy link
Owner

Thanks for documenting this! I'll try and add this to https://github.com/will-in-wi/letsencrypt-webfaction/wiki/Django when I get some time.

@Nelkit
Copy link
Author

Nelkit commented Apr 4, 2016

Very good solution. It works perfect, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants