Welcome! Log In Create A New Profile

Advanced

Run secondcrack in a nginx server

Posted by atipico 
Run secondcrack in a nginx server
May 31, 2013 08:54AM
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

Rogerio Madureira
http://atipico.com.br
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready