Apache Server displays MD files

Source: Internet
Author: User

Installation Environment ubuntu16.04 64-bit download source code
git clone https://github.com/hamano/apache-mod-markdown.git
Installation dependencies
apt-get install build-essential libtool automake autoconfapt-get install libmarkdown2-dev apache2-dev
Compiling the installation
autoreconf -f -i./configure --with-apxs=/usr/bin/apxs2 --with-discount=/usrmakesudo make install
Give so permission
sudo chmod 644 /usr/lib/apache2/modules/mod_markdown.so
Modifying the Apache configuration file
Add the following data
LoadModule markdown_module /usr/lib/apache2/modules/mod_markdown.so<Location />    AddHandler markdown .md        # If you want to use stylesheet.    MarkdownCss style.css</Location>
Restart Apache
Final effect

Apache Server displays MD files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.