where to put "WSGIPassAuthorization On"?

BAE

I tried two methods:

1, /etc/apache2/sites-enabled/myproject.conf

2, /etc/apache2/mods-enabled/wsgi.conf

Both works. I just wonder which place is best to put it?

Graham Dumpleton

It depends on your Apache configuration as different Apache installations have different layouts. In general, since the affect of the directive can be isolated to a specific context, such as a specific virtual host (VirtualHost), specific set of URLs (Location), or specific scripts (Directory/Files), you put it with whatever is the smallest context you need it. That way you don't end up passing the information to applications that do not need it. At the worst, stick it next to the WSGIScriptAlias directive, which would mean it is constrained to the virtual host.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related