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

Rewrite setting for md file type to StackEdit

$
0
0
What I need is to turn on autoindex, and while click on the file, redirect .md file to stackedit site. what i did is to add rewrite as below:

location ~* \.(md)$ {
rewrite ^(.*) http://stackedit.io/viewer?url=http://mycom$1 last;
}

however, it doesn't work since it will be rewrited again once stackedit file the request for my .md file.

So, can anybody help me how to config so i can click on my .md file and redirect Stackedit and open it??


Thanks!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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