... | ... |
@@ -278,6 +278,53 @@ Please set user.name and user.email. |
278 | 278 |
git config --global user.name "gitprep" |
279 | 279 |
git config --global user.email "gitprep@example.com" |
280 | 280 |
|
281 |
+### How to use reverse proxy |
|
282 |
+ |
|
283 |
+You can use GitPrep via reverse proxy access |
|
284 |
+ |
|
285 |
+ ---------------------------- ------------ |
|
286 |
+ ---->| Web Server(Reverse proxy)|---->|GitPrep | |
|
287 |
+ <----| (Apache, etc) |<----| | |
|
288 |
+ ---------------------------- ------------ |
|
289 |
+ |
|
290 |
+I show apache config example. |
|
291 |
+You can use Name virtual host. |
|
292 |
+ |
|
293 |
+ # HTTP |
|
294 |
+ <VirtualHost *:80> |
|
295 |
+ |
|
296 |
+ ServerName myhost.com |
|
297 |
+ <Proxy *> |
|
298 |
+ Order deny,allow |
|
299 |
+ Allow from all |
|
300 |
+ </Proxy> |
|
301 |
+ |
|
302 |
+ ProxyRequests Off |
|
303 |
+ ProxyPreserveHost On |
|
304 |
+ ProxyPass / http://localhost:10020/ keepalive=On |
|
305 |
+ ProxyPassReverse / http://localhost:10020/ |
|
306 |
+ RequestHeader set X-Forwarded-HTTPS "0" |
|
307 |
+ |
|
308 |
+ </VirtualHost> |
|
309 |
+ |
|
310 |
+If you use GitPrep vis https, you should set X-Forwarded-HTTPS Request Header. |
|
311 |
+ |
|
312 |
+ # HTTPS |
|
313 |
+ <VirtualHost *:443> |
|
314 |
+ |
|
315 |
+ ServerName myhost.com |
|
316 |
+ <Proxy *> |
|
317 |
+ Order deny,allow |
|
318 |
+ Allow from all |
|
319 |
+ </Proxy> |
|
320 |
+ |
|
321 |
+ ProxyRequests Off |
|
322 |
+ ProxyPreserveHost On |
|
323 |
+ ProxyPass / http://localhost:10020/ keepalive=On |
|
324 |
+ ProxyPassReverse / http://localhost:10020/ |
|
325 |
+ RequestHeader set X-Forwarded-HTTPS "1" |
|
326 |
+ </VirtualHost> |
|
327 |
+ |
|
281 | 328 |
## Web Site |
282 | 329 |
|
283 | 330 |
[GitPrep Web Site](http://perlcodesample.sakura.ne.jp/gitprep-site/) |