-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvpn-client.conf
42 lines (33 loc) · 972 Bytes
/
vpn-client.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin root@localhost
DocumentRoot /var/www/vpn-client
ErrorLog ${APACHE_LOG_DIR}/vpn-client-error.log
CustomLog ${APACHE_LOG_DIR}/vpn-client-access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/var/www/vpn-client">
AuthType Basic
AuthName "Restricted Content"
AuthUserFile /var/www/vpn-client/.htpasswd
Require valid-user
</Directory>
Alias /scripts "/var/www/vpn-client/scripts"
<Directory "/var/www/vpn-client/scripts">
AuthType None
Require all granted
Satisfy Any
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>
</IfModule>