markdown cgi
1.0.0
| 系统 | 软件 | 测试 |
|---|---|---|
| Windows 11 | IIS 10.0 | |
| Ubuntu 22.04 Lts | Apache 2.4.52 |
curl https://www.axisflow.biz/pkg/markdown-cgi_0-2-0.zip -o markdown-cgi_0-2-0.zip
markdown-cgigcc -o md-cgi.exe md-cgi.c md4c m d4c.c md4c m d4c-html.c md4c e ntity.cgcc -o md-cgi md-cgi.c md4c/md4c.c md4c/md4c-html.c md4c/entity.cOptionalFeatures并输入Internet Information Services > World Wide Web Services > Application Development Features > CGI选定InetMgr并输入您还可以在对象路径中的
web.config文件的标签<configuration>中添加以下文本,以跳过步骤4〜6(用您的替换[]):< system .webServer> < handlers accessPolicy = " Read, Execute, Script " > < add name = " Markdown-Render " path = " *.md " verb = " * " modules = " CgiModule " scriptProcessor = " [Pathtomd-cgi.exe] " resourceType = " File " requireAccess = " None " /> </ handlers > </ system .webServer>
*.markdown *.mdown *.mkdn *.mkd *.mdwn *.mdmd-cgi.exe刚刚编译Markdown-CGImd-cgi.exe刚刚编译Markdown-CGI假设您的apache是从
apt命令安装的
apachectl -M以确保启用action_module , cgi_module和cgid_module 。如果不是,请键入以下命令: sudo a2enmod actions cgidapachectl -t -D DUMP_INCLUDES以确保包含conf-nabled/serve-cgi-bin.conf 。如果不是,请键入以下命令: sudo a2enconf serve-cgi-bin.conf/etc/apache2/sites-enabled/000-default.conf默认) Action markdown /cgi-bin/md-cgi
AddHandler markdown .md
md-cgi刚刚编译为/usr/lib/cgi-bin/markdown-cgi涵盖了MIT许可证。请参阅文件LICENSE 。res/LICENSE 。