Mercurial > self-hosted
comparison Mercurial/apache.hg.conf.exmaple @ 0:edd512324c03
Add:Mercurial Files
author | Pluto <meokcin@gmail.com> |
---|---|
date | Tue, 03 Sep 2024 16:30:52 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:edd512324c03 |
---|---|
1 <VirtualHost *:80> | |
2 ServerName hg.nnsui.com | |
3 RewriteEngine On | |
4 RewriteCond %{HTTPS} !=on | |
5 RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] | |
6 </VirtualHost> | |
7 <VirtualHost *:443> | |
8 ServerName hg.nnsui.com | |
9 SSLEngine On | |
10 SSLCertificateFile /etc/apache2/cert/nnsui.com.pem | |
11 SSLCertificateKeyFile /etc/apache2/cert/nnsui.com.key | |
12 WSGIScriptAlias / /var/hg/hgweb.wsgi | |
13 WSGIDaemonProcess hgweb user=www-data group=www-data processes=2 threads=15 | |
14 WSGIProcessGroup hgweb | |
15 <Directory /var/hg> | |
16 Require all granted | |
17 </Directory> | |
18 <Location "/"> | |
19 AuthType Basic | |
20 AuthName "Restricted Access" | |
21 AuthUserFile /etc/apache2/hgweb.htpasswd | |
22 Require valid-user | |
23 <Limit GET> | |
24 Require all granted | |
25 </Limit> | |
26 <LimitExcept GET> | |
27 Require valid-user | |
28 </LimitExcept> | |
29 </Location> | |
30 </VirtualHost> |