Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Run secondcrack in a nginx server

$
0
0
I am trying to run secondcrack https://github.com/marcoarment/secondcrack that is a php solution to A static-file Markdown blogging engine in a nginx server (the original was only tested in Apache). So does anybody know how to convert this Apaches's .htaccess to nginx syntax?

Options -MultiViews

AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript text/xml text/rss text/rss+xml

RewriteEngine On

RewriteRule ^([^\.]*)$ - [T=text/html]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html [QSA,L]

ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>