What errors are logged to the Apache error log?

What does the Python code you have added look like?

What does the Apache configuration you have added look like?

Without more information it is hard to guess what the issue may be.

Graham

> On 7 Sep 2023, at 2:21 am, Marcel Müller <marcel.b.muel...@gmail.com> wrote:
> 
> Hi, 
> 
> when I follow the documentation I get an 500 Internal Server Error. 
> I want to protect images (uploads by the user) from the public and other 
> users. 
> 
> Everything works until I get to the part like in the subject described. 
> 
> When I follow the documentation like "Finally, edit your WSGI script 
> mysite.wsgi to tie Apache’s authentication to your site’s authentication 
> mechanisms by importing the check_password function:" the provided code gives 
> me the mentioned 500 error and the entire website is not available anymore. 
> When I stick to the default code in wsgi.py it works and the <location> part 
> works, where I get an apache authentication dialogue.
> But I guess this is not how it is suppose to work. When I type in my 
> credentials the 500 error shows again.
> 
> I am a python/django/apache newbie and I am stuck to this for days now. 
> 
> Any help would be appreciated. 
> 
> Best,
> Marcel
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to modwsgi+unsubscr...@googlegroups.com 
> <mailto:modwsgi+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/b26a327c-00ad-439e-b4c3-f1e171a7e03dn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/b26a327c-00ad-439e-b4c3-f1e171a7e03dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/9226B44A-0FFD-43DA-B446-8D17F0DF1BF2%40gmail.com.

Reply via email to