Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kjdev/apache-mod-shorturl

mod_shorturl is mongoDB base shorturl module for Apache HTTPD Server.
https://github.com/kjdev/apache-mod-shorturl

Last synced: 25 days ago
JSON representation

mod_shorturl is mongoDB base shorturl module for Apache HTTPD Server.

Awesome Lists containing this project

README

        

# mod_shorturl #

mod_shorturl is mongoDB base shorturl module for Apache HTTPD Server.

## Dependencies ##

* [mongoDB driver](http://dl.mongodb.org/dl/cxx-driver)

## Build ##

% ./autogen.sh (or autoreconf -i)
% ./configure [OPTION]
% make
% make install

### Build Options ###

mongoDB path.

* --with-mongo=PATH [default=/usr/include]
* --with-mongo-lib=PATH [default=no]

apache path.

* --with-apxs=PATH [default=yes]
* --with-apr=PATH [default=yes]

## Configration ##

httpd.conf:

LoadModule shorturl_module modules/mod_shorturl.so

MongoHost localhost
MongoPort 27017
MongoTimeout 5
MongoHost localhost:27017
# MongoHost localhost:27017,localhost:27018,localhost:27019
# MongoReplicaSet test
MongoDb test
MongoCollection test
# MongoAuthDb admin
# MongoAuthUser user
# MongoAuthPassword pass


SetHandler shorturl

## Setting ##

mongoDB:

test> db.insert( { _id:"localhost/github", url:"http://github.com" } )