132 | | Alias /crystal /var/www/crystal |
133 | | |
134 | | Alias /bonito /var/www/bonito |
135 | | |
136 | | <Directory /var/www/bonito> |
| 132 | Alias /crystal /var/www/crystal |
| 133 | |
| 134 | Alias /bonito /var/www/bonito |
| 135 | |
| 136 | <Directory /var/www/bonito> |
| 137 | AllowOverride All |
| 138 | Options +ExecCGI -Indexes |
| 139 | AddHandler cgi-script .cgi |
| 140 | </Directory> |
| 141 | }}} |
| 142 | |
| 143 | == Apache (httpd) configuration with authentication == |
| 144 | |
| 145 | {{{ |
| 146 | Alias /crystal-auth /var/www/crystal |
| 147 | |
| 148 | Alias /bonito-auth /var/www/bonito |
| 149 | |
| 150 | <Directory /var/www/bonito> |
140 | | </Directory> |
141 | | }}} |
142 | | |
143 | | == Apache (httpd) configuration with authentication == |
144 | | |
145 | | {{{ |
146 | | Alias /crystal-auth /var/www/crystal |
147 | | |
148 | | Alias /bonito-auth /var/www/bonito |
149 | | |
150 | | <Directory /var/www/bonito> |
| 154 | </Directory> |
| 155 | |
| 156 | |
| 157 | <Location "/bonito-auth"> |
| 158 | <LimitExcept OPTIONS> |
| 159 | AuthType Basic |
| 160 | AuthName "Secure Content" |
| 161 | AuthUserFile /var/lib/bonito/htpasswd |
| 162 | Require valid-user |
| 163 | </LimitExcept> |
| 164 | </Location> |
| 165 | }}} |
| 166 | |
| 167 | == Apache (httpd) configuration with authentication and self-registration == |
| 168 | |
| 169 | {{{ |
| 170 | Alias /crystal-registration /var/www/crystal |
| 171 | |
| 172 | Alias /bonito-registration /var/www/bonito |
| 173 | |
| 174 | <Directory /var/www/bonito> |
154 | | <LimitExcept OPTIONS> |
155 | | <Location "/bonito-auth"> |
156 | | AuthType Basic |
157 | | AuthName "Secure Content" |
158 | | AuthUserFile /var/lib/bonito/htpasswd |
159 | | Require valid-user |
160 | | </Location> |
161 | | </LimitExcept> |
162 | | </Directory> |
163 | | }}} |
164 | | |
165 | | == Apache (httpd) configuration with authentication and self-registration == |
166 | | |
167 | | {{{ |
168 | | Alias /crystal-registration /var/www/crystal |
169 | | |
170 | | Alias /bonito-registration /var/www/bonito |
171 | | |
172 | | <Directory /var/www/bonito> |
173 | | AllowOverride All |
174 | | Options +ExecCGI -Indexes |
175 | | AddHandler cgi-script .cgi |
176 | | <LimitExcept OPTIONS> |
177 | | <Location "/bonito-auth"> |
178 | | AuthType Basic |
179 | | AuthName "Secure Content" |
180 | | AuthUserFile /var/lib/bonito/htpasswd |
181 | | <RequireAny> |
182 | | <RequireAll> |
183 | | Require expr %{REQUEST_URI} =~ m#^/bonito-registration/registration.cgi/register_user_new.*# |
184 | | </RequireAll> |
185 | | Require valid-user |
186 | | </RequireAny> |
187 | | </Location> |
188 | | </LimitExcept> |
189 | | </Directory> |
| 178 | </Directory> |
| 179 | |
| 180 | <Location "/bonito-auth"> |
| 181 | <LimitExcept OPTIONS> |
| 182 | AuthType Basic |
| 183 | AuthName "Secure Content" |
| 184 | AuthUserFile /var/lib/bonito/htpasswd |
| 185 | <RequireAny> |
| 186 | <RequireAll> |
| 187 | Require expr %{REQUEST_URI} =~ m#^/bonito-registration/registration.cgi/register_user_new.*# |
| 188 | </RequireAll> |
| 189 | Require valid-user |
| 190 | </RequireAny> |
| 191 | </LimitExcept> |
| 192 | </Location> |