Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/kjdev/apache-mod-shorturl
- Owner: kjdev
- Created: 2012-07-19T00:44:19.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-19T00:45:30.000Z (over 12 years ago)
- Last Synced: 2024-11-18T00:52:40.239Z (about 2 months ago)
- Language: C++
- Size: 89.8 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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" } )