-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtaccess
36 lines (29 loc) · 1.1 KB
/
htaccess
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
# If you are running PHP in CGI mode you will need to add one set of these
# directives to your .htaccess file, or your virtualhost configuration.
#
# The easiest way to do so is to simply rename this file ".htaccess"
# Option 1, mod_rewrite (req)
#RewriteEngine on
#RewriteCond %{HTTP:Authorization} !^$
#RewriteCond %{QUERY_STRING} openid.mode=authorize
#RewriteCond %{QUERY_STRING} !auth=
#RewriteCond %{REQUEST_METHOD} =GET
#RewriteRule (.*) %{REQUEST_URI}?%{QUERY_STRING}&auth=%{HTTP:Authorization} [L]
# Option 2, mod_rewrite (env)
#RewriteEngine on
#RewriteRule \.php$ - [E=PHP_AUTH_DIGEST:%{HTTP:Authorization},L]
# Option 3, mod_setenvif
#SetEnvIf Authorization "(.*)" PHP_AUTH_DIGEST=$1
# If you are using apache authentications, you must protect the file
# 'auto.php' with the form of authentication you want here is an example
#<Files auth.php>
# #auth directives here
#</Files>
# This will come into play if you use client side certificates
<IfModule mod_ssl.c>
<Files cert.php>
SSLVerifyClient require
SSLVerifyDepth 3
SSLUserName SSL_CLIENT_S_DN_CN
</Files>
</IfModule>