Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
c7f7432b
Kaydet (Commit)
c7f7432b
authored
Eyl 09, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #23350 -- Updated mod_wsgi auth example to use less memory.
Thanks Graham Dumpleton for the report.
üst
2508be35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
apache-auth.txt
docs/howto/deployment/wsgi/apache-auth.txt
+13
-4
No files found.
docs/howto/deployment/wsgi/apache-auth.txt
Dosyayı görüntüle @
c7f7432b
...
@@ -28,9 +28,17 @@ version >= 2.2 and mod_wsgi >= 2.0. For example, you could:
...
@@ -28,9 +28,17 @@ version >= 2.2 and mod_wsgi >= 2.0. For example, you could:
Authentication with mod_wsgi
Authentication with mod_wsgi
============================
============================
.. note::
The use of ``WSGIApplicationGroup %{GLOBAL}`` in the configurations below
presumes that your Apache instance is running only one Django application.
If you are running more than Django application, please refer to the
`Defining Application Groups`_ section of the mod_wsgi docs for more
information about this setting.
Make sure that mod_wsgi is installed and activated and that you have
Make sure that mod_wsgi is installed and activated and that you have
followed the steps to setup
followed the steps to setup
:doc:`Apache with mod_wsgi
:doc:`Apache with mod_wsgi </howto/deployment/wsgi/modwsgi>`
</howto/deployment/wsgi/modwsgi>`.
Next, edit your Apache configuration to add a location that you want
Next, edit your Apache configuration to add a location that you want
only authenticated users to be able to view:
only authenticated users to be able to view:
...
@@ -41,7 +49,7 @@ only authenticated users to be able to view:
...
@@ -41,7 +49,7 @@ only authenticated users to be able to view:
WSGIPythonPath /path/to/mysite.com
WSGIPythonPath /path/to/mysite.com
WSGIProcessGroup %{GLOBAL}
WSGIProcessGroup %{GLOBAL}
WSGIApplicationGroup
django
WSGIApplicationGroup
%{GLOBAL}
<Location "/secret">
<Location "/secret">
AuthType Basic
AuthType Basic
...
@@ -89,6 +97,7 @@ Requests beginning with ``/secret/`` will now require a user to authenticate.
...
@@ -89,6 +97,7 @@ Requests beginning with ``/secret/`` will now require a user to authenticate.
The mod_wsgi `access control mechanisms documentation`_ provides additional
The mod_wsgi `access control mechanisms documentation`_ provides additional
details and information about alternative methods of authentication.
details and information about alternative methods of authentication.
.. _Defining Application Groups: https://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#Defining_Application_Groups
.. _access control mechanisms documentation: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
.. _access control mechanisms documentation: http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms
Authorization with mod_wsgi and Django groups
Authorization with mod_wsgi and Django groups
...
@@ -104,7 +113,7 @@ In this case, the Apache configuration should look like this:
...
@@ -104,7 +113,7 @@ In this case, the Apache configuration should look like this:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIProcessGroup %{GLOBAL}
WSGIProcessGroup %{GLOBAL}
WSGIApplicationGroup
django
WSGIApplicationGroup
%{GLOBAL}
<Location "/secret">
<Location "/secret">
AuthType Basic
AuthType Basic
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment