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!
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!