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
3abf6105
Kaydet (Commit)
3abf6105
authored
Eyl 30, 2012
tarafından
Preston Holmes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed a couple errors and inconsistencies in mod_wsgi docs
Fixes #19042
üst
dad7eec6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
apache-auth.txt
docs/howto/deployment/wsgi/apache-auth.txt
+7
-7
modwsgi.txt
docs/howto/deployment/wsgi/modwsgi.txt
+6
-4
No files found.
docs/howto/deployment/wsgi/apache-auth.txt
Dosyayı görüntüle @
3abf6105
...
...
@@ -29,7 +29,7 @@ only authenticated users to be able to view:
.. code-block:: apache
WSGIScriptAlias / /path/to/mysite
/config/mysite.wsgi
WSGIScriptAlias / /path/to/mysite
.com/mysite/wsgi.py
WSGIProcessGroup %{GLOBAL}
WSGIApplicationGroup django
...
...
@@ -39,7 +39,7 @@ only authenticated users to be able to view:
AuthName "Top Secret"
Require valid-user
AuthBasicProvider wsgi
WSGIAuthUserScript /path/to/mysite
/config/mysite.wsgi
WSGIAuthUserScript /path/to/mysite
.com/mysite/wsgi.py
</Location>
The ``WSGIAuthUserScript`` directive tells mod_wsgi to execute the
...
...
@@ -72,7 +72,7 @@ check_user function:
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
from django.contrib.auth.handlers.modwsgi import check_
user
from django.contrib.auth.handlers.modwsgi import check_
password
from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()
...
...
@@ -95,7 +95,7 @@ In this case, the Apache configuration should look like this:
.. code-block:: apache
WSGIScriptAlias / /path/to/mysite
/config/mysite.wsgi
WSGIScriptAlias / /path/to/mysite
.com/mysite/wsgi.py
WSGIProcessGroup %{GLOBAL}
WSGIApplicationGroup django
...
...
@@ -104,8 +104,8 @@ In this case, the Apache configuration should look like this:
AuthType Basic
AuthName "Top Secret"
AuthBasicProvider wsgi
WSGIAuthUserScript /path/to/mysite
/config/mysite.wsgi
WSGIAuthGroupScript /path/to/mysite
/config/mysite.wsgi
WSGIAuthUserScript /path/to/mysite
.com/mysite/wsgi.py
WSGIAuthGroupScript /path/to/mysite
.com/mysite/wsgi.py
Require group secret-agents
Require valid-user
</Location>
...
...
@@ -116,7 +116,7 @@ returns a list groups the given user belongs to.
.. code-block:: python
from django.contrib.auth.handlers.modwsgi import check_
user
, groups_for_user
from django.contrib.auth.handlers.modwsgi import check_
password
, groups_for_user
Requests for ``/secret/`` will now also require user to be a member of the
"secret-agents" group.
docs/howto/deployment/wsgi/modwsgi.txt
Dosyayı görüntüle @
3abf6105
...
...
@@ -25,7 +25,9 @@ Basic configuration
===================
Once you've got mod_wsgi installed and activated, edit your Apache server's
``httpd.conf`` file and add::
``httpd.conf`` file and add
.. code-block:: apache
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com
...
...
@@ -70,10 +72,10 @@ Using a virtualenv
If you install your project's Python dependencies inside a `virtualenv`_,
you'll need to add the path to this virtualenv's ``site-packages`` directory to
your Python path as well. To do this,
you can add another line
to your
Apache configurati
on::
your Python path as well. To do this,
add an additional path
to your
`WSGIPythonPath` directive with multiple paths separated by a col
on::
WSGIPythonPath /path/to/your/venv/lib/python2.X/site-packages
WSGIPythonPath /path/to/
mysite.com:/path/to/
your/venv/lib/python2.X/site-packages
Make sure you give the correct path to your virtualenv, and replace
``python2.X`` with the correct Python version (e.g. ``python2.7``).
...
...
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