2016-06-24 13:35:39 +02:00
|
|
|
#mvncache
|
|
|
|
|
2016-06-24 13:05:09 +02:00
|
|
|
simple maven cache and proxy in php
|
|
|
|
|
2016-06-24 13:35:39 +02:00
|
|
|
## Use in apache
|
|
|
|
|
2016-06-24 13:05:09 +02:00
|
|
|
Put the script `src/mvncache.php` in the directory you want to be used as maven proxy.
|
|
|
|
Next to the script copy the following lines to `.htaccess`:
|
2016-06-24 13:36:38 +02:00
|
|
|
|
2016-06-24 13:05:09 +02:00
|
|
|
RewriteEngine On
|
|
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
|
|
RewriteRule ^.*$ mvncache.php [L]
|
2016-06-24 13:36:38 +02:00
|
|
|
|
2016-06-24 13:05:09 +02:00
|
|
|
Make both files accessible for apache.
|
|
|
|
|
2016-06-24 13:35:39 +02:00
|
|
|
## Possible use in lighttpd
|
2016-06-24 13:05:09 +02:00
|
|
|
Put the script `src/mvncache.php` in the directory you want to be used as maven proxy.
|
|
|
|
Add the following line to your virtual host configuration:
|
|
|
|
server.error-handler-404 = "/mvncache.php"
|
|
|
|
This path is relative to the value in `server.document-root`.
|