Skip to content
Enable your Apache web server to serve Markdown rendered as HTML
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Markdown.cgi
NOTICE
README.md
enable-markdown.conf

README.md

Flattr this git repo

Docs on Clearance

Enable your Apache web server to serve Markdown rendered as HTML

Features

  • Installs easily on an Apache webserver
  • Renders markdown using the redcarpet gem
  • Caches generated page in memcached for 5 minutes
  • Uses Bootstrap from a CDN for nice look and responsive design

Installation

This installation is for setup on Ubuntu system.

  • install prerequisites:
sudo apt-get install ruby-redcarpet ruby-memcache-client memcached
sudo service memcached start
  • install Markdown.cgi in your cgi-bin directory
sudo cp Markdown.cgi /usr/lib/cgi-bin
sudo chmod +x /usr/lib/cgi-bin/Markdown.cgi
  • include the apache config snippet to create a CGI handler that will have all .md files handled by Markdown.cgi
sudo cp enable-markdown.conf /etc/apache2/conf-available
sudo a2enconf enable-markdown
sudo service apache2 reload

ToDo

  • work out installation on CentOS/RHEL/Amazon Linux
  • move off depricated memcache-client gem

License

Copyright 2014 Corsis http://www.corsis.com/

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

You can’t perform that action at this time.