mirror of
https://github.com/pypiserver/pypiserver
synced 2025-02-22 19:19:37 +01:00
Merge pull request #15 from dexterous/master
Update readme; add missing mod_wsgi directive
This commit is contained in:
commit
06ccfdd1e3
12
README.rst
12
README.rst
@ -226,14 +226,16 @@ In case you're using apache 2 with mod_wsgi, the following config file
|
||||
# An example pypiserver.wsgi for use with apache2 and mod_wsgi, edit as necessary.
|
||||
#
|
||||
# apache virtualhost configuration for mod_wsgi daemon mode:
|
||||
# Alias /robots.txt /srv/yoursite/htdocs/robots.txt
|
||||
# WSGIScriptAlias / /srv/yoursite/cfg/pypiserver.wsgi
|
||||
# WSGIDaemonProcess pypisrv user=pypisrv group=pypisrv processes=1 threads=5 maximum-requests=500 umask=0007 display-name=wsgi-pypisrv inactivity-timeout=300
|
||||
# WSGIProcessGroup pypisrv
|
||||
# Alias /robots.txt /srv/yoursite/htdocs/robots.txt
|
||||
# WSGIPassAuthorization On
|
||||
# WSGIScriptAlias / /srv/yoursite/cfg/pypiserver.wsgi
|
||||
# WSGIDaemonProcess pypisrv user=pypisrv group=pypisrv processes=1 threads=5 maximum-requests=500 umask=0007 display-name=wsgi-pypisrv inactivity-timeout=300
|
||||
# WSGIProcessGroup pypisrv
|
||||
|
||||
PACKAGES = "/srv/yoursite/packages"
|
||||
HTPASSWD = "/srv/yoursite/htpasswd"
|
||||
import pypiserver
|
||||
application = pypiserver.app(PACKAGES, redirect_to_fallback=True)
|
||||
application = pypiserver.app(PACKAGES, redirect_to_fallback=True, password_file=HTPASSWD)
|
||||
|
||||
paste/pastedeploy
|
||||
----------------------
|
||||
|
Loading…
Reference in New Issue
Block a user