|
1 <VirtualHost *:80> |
|
2 ServerAdmin librarian@village.n4c.eu |
|
3 ServerName dtnrouter.village.n4c.eu |
|
4 |
|
5 |
|
6 DocumentRoot /var/www/private/HTMLrequester |
|
7 |
|
8 <Directory "/var/www/private/HTMLrequester/members"> |
|
9 Options Indexes MultiViews FollowSymLinks |
|
10 AuthType Basic |
|
11 AuthName "Member's Area" |
|
12 AuthFormAuthoritative On |
|
13 |
|
14 AuthFormMySQLHost localhost |
|
15 AuthFormMySQLUsername www-data |
|
16 AuthFormMySQLPassword www-data |
|
17 AuthFormMySQLDB members |
|
18 |
|
19 AuthFormMySQLTableSID sessions |
|
20 AuthFormMySQLTableGID uid_gid |
|
21 AuthFormMySQLTableTracking tracking |
|
22 |
|
23 AuthFormMySQLFieldUID uid |
|
24 AuthFormMySQLFieldGID gid |
|
25 AuthFormMySQLFieldDownloadSize download_size |
|
26 AuthFormMySQLFieldDownloadPath download_path |
|
27 AuthFormMySQLFieldDownloadDate download_date |
|
28 AuthFormMySQLFieldTimeout timeout_date |
|
29 AuthFormMySQLFieldIPAddress client_ip_address |
|
30 AuthFormMySQLFieldExpiration expiration_date |
|
31 |
|
32 #AuthFormMySQLTableGIDCondition |
|
33 AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='members')" |
|
34 |
|
35 #AuthFormMySQLTableTrackingCondition |
|
36 |
|
37 AuthFormSessionTimeout 30 |
|
38 AuthFormSessionCookies On |
|
39 AuthFormSessionAutoRefresh -1 |
|
40 AuthFormTrackingLifetime 30 |
|
41 |
|
42 AuthFormPageLogin index.php |
|
43 AuthFormPageExpired /session_expired.html |
|
44 AuthFormLastPageKey go_back_to |
|
45 #AuthFormPageAutoRefresh |
|
46 #AuthFormPageNotAllowed |
|
47 |
|
48 #Require valid-user |
|
49 Require group 0 |
|
50 </Directory> |
|
51 |
|
52 <Directory "/var/www/private/HTMLrequester/router_stage"> |
|
53 |
|
54 Options Indexes MultiViews FollowSymLinks |
|
55 AuthType Basic |
|
56 AuthName "Staging area" |
|
57 AuthFormAuthoritative On |
|
58 |
|
59 AuthFormMySQLHost localhost |
|
60 AuthFormMySQLUsername www-data |
|
61 AuthFormMySQLPassword www-data |
|
62 AuthFormMySQLDB members |
|
63 |
|
64 AuthFormMySQLTableSID sessions |
|
65 AuthFormMySQLTableGID uid_gid |
|
66 AuthFormMySQLTableTracking tracking |
|
67 |
|
68 AuthFormMySQLFieldUID uid |
|
69 AuthFormMySQLFieldGID gid |
|
70 AuthFormMySQLFieldDownloadSize download_size |
|
71 AuthFormMySQLFieldDownloadPath download_path |
|
72 AuthFormMySQLFieldDownloadDate download_date |
|
73 AuthFormMySQLFieldTimeout timeout_date |
|
74 AuthFormMySQLFieldIPAddress client_ip_address |
|
75 AuthFormMySQLFieldExpiration expiration_date |
|
76 |
|
77 #AuthFormMySQLTableGIDCondition |
|
78 AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `uid`=$uid" |
|
79 |
|
80 #AuthFormMySQLTableTrackingCondition |
|
81 |
|
82 AuthFormSessionTimeout 30 |
|
83 AuthFormSessionCookies On |
|
84 AuthFormSessionAutoRefresh -1 |
|
85 AuthFormTrackingLifetime 30 |
|
86 |
|
87 AuthFormPageLogin /HTMLprivaterequest.html |
|
88 AuthFormPageExpired /session_expired.html |
|
89 AuthFormLastPageKey go_back_to |
|
90 #AuthFormPageAutoRefresh |
|
91 #AuthFormPageNotAllowed |
|
92 |
|
93 #Require valid-user |
|
94 Require group 0 |
|
95 </Directory> |
|
96 |
|
97 <Directory "/var/www/private/public"> |
|
98 AuthFormPageNotAllowed /paying_members_only.html |
|
99 AuthFormMySQLTableSIDCondition "`sid`=$sid1 AND `sid_dir`=$sid2 AND (`uid`=$uid OR `signature`='some_signature_public')" |
|
100 Require group 1 |
|
101 </Directory> |
|
102 <Directory "/var/www/private/private"> |
|
103 AuthFormPageNotAllowed /premium_only.html |
|
104 Require group 2 |
|
105 </Directory> |
|
106 <Directory <"/var/www/private/admin"> |
|
107 AuthType Basic |
|
108 AuthName "Administration" |
|
109 AuthUserFile /var/www/private/passwords |
|
110 |
|
111 # Turn off 'mod_auth_form' in this directory, |
|
112 # giving control to 'mod_auth'. |
|
113 AuthFormAuthoritative Off |
|
114 |
|
115 Allow from 127.0.0.1 # localhost |
|
116 Deny from all |
|
117 Order Deny,Allow |
|
118 Require valid-user |
|
119 </Directory> |
|
120 |
|
121 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ |
|
122 <Directory "/usr/lib/cgi-bin"> |
|
123 AllowOverride None |
|
124 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch |
|
125 Order allow,deny |
|
126 Allow from all |
|
127 </Directory> |
|
128 |
|
129 ErrorLog /var/log/apache2/error.log |
|
130 |
|
131 # Possible values include: debug, info, notice, warn, error, crit, |
|
132 # alert, emerg. |
|
133 LogLevel debug |
|
134 |
|
135 CustomLog /var/log/apache2/access.log combined |
|
136 |
|
137 Alias /doc/ "/usr/share/doc/" |
|
138 <Directory "/usr/share/doc/"> |
|
139 Options Indexes MultiViews FollowSymLinks |
|
140 AllowOverride None |
|
141 Order deny,allow |
|
142 Deny from all |
|
143 Allow from 127.0.0.0/255.0.0.0 ::1/128 |
|
144 </Directory> |
|
145 </VirtualHost> |