This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
web_services:hg_gateway [2013/03/15 10:32] 127.0.0.1 external edit |
web_services:hg_gateway [2016/01/15 13:05] (current) tschulz |
||
---|---|---|---|
Line 11: | Line 11: | ||
allow_push = *</code> | allow_push = *</code> | ||
===== <REP-WWW>/index.cgi ===== | ===== <REP-WWW>/index.cgi ===== | ||
- | <code>#!/usr/bin/env python | + | <code python index.cgi>#!/usr/bin/env python |
# | # | ||
# An example CGI script to use hgweb, edit as necessary | # An example CGI script to use hgweb, edit as necessary | ||
Line 43: | Line 43: | ||
wsgicgi.launch(wsgiapplication(make_web_app))</code> | wsgicgi.launch(wsgiapplication(make_web_app))</code> | ||
===== <REP-WWW>/.htaccess ===== | ===== <REP-WWW>/.htaccess ===== | ||
- | <code>AuthType Basic | + | <code apache .htaccess>AuthType Basic |
AuthName "Repository" | AuthName "Repository" | ||
AuthUserFile /etc/apache2/hg.passwd | AuthUserFile /etc/apache2/hg.passwd | ||
Require user some-user | Require user some-user | ||
</code> | </code> | ||
+ | |||
+ |