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 。