E107 Plugins [ Plugins for E107 CMS ]
|
FURL - Mod_Rewrite Plugin for E107 v1.2
|
Comments

nginx | 01 Aug : 22:31
there is small (but powerfull) frond-end http-server nginx which are mostly used as nginx+php-cgi (without apache)
You may add rules to your plugin, its simple
for example rules from my nginx.conf
#--------------------------пользователи--------------------------
# rewrite ^\/user-([0-9]+)\.php$ /user.php?id.$1 last;
#--------------------------страницы--------------------------
rewrite ^\/page-([0-9]+)\.php$ /page.php?$1 last;
#--------------------------закачки--------------------------
#rewrite ^\/download([0-9]+)\.php$ /download.php?list.$1 last;
rewrite ^\/download-([0-9]+)(.*)\.php$ /download.php?view.$1 last;
#rewrite ^\/download-([0-9]+)-([0-9]+)\.php$ /download.php?$2.list.$1 last;
#rewrite ^\/request-([0-9]+)\.php$ /request.php?$1 last;
#--------------------------комментарии--------------------------
rewrite ^\/comment-([0-9]+)(.*)\.php$ /comment.php?comment.news.$1 last;
rewrite ^\/comments-([0-9]+)\.php$ /comment.php?comment.poll.$1 last;
rewrite ^\/reply-([0-9]+)-([0-9]+)\.php$ /comment.php?reply.news.$1.$2 last;
rewrite ^\/reply([0-9]+)-([0-9]+)\.php$ /comment.php?reply.download.$1.$2 last;
#--------------------------новости--------------------------
rewrite ^\/news-([0-9]+)(.*)\.php$ /news.php?extend.$1 last;
rewrite ^\/newsa-([0-9]+)-([0-9]+)\.php$ /news.php?$1.$2 last;
rewrite ^\/newsb-([0-9]+)-([0-9]+)-([0-9]+)\.php$ /news.php?$1.$2.$3 last;
rewrite ^\/newsi-([0-9]+)-([0-9]+)\.php$ /news.php?item.$1.$2 last;
rewrite ^\/newse-([0-9]+)-([0-9]+)\.php$ /news.php?default.$1.$2 last;
rewrite ^\/news([0-9]+)\.php$ /news.php?cat.$1 last;
rewrite ^\/news([0-9]+)-([0-9]+)\.php$ /news.php?cat.$1.$2 last;
rewrite ^\/newsd-([0-9]+)\.php$ /news.php?day.$1 last;
rewrite ^\/newsm-([0-9]+)\.php$ /news.php?month.$1 last;
and so on.
some docs for nginx - http://sysoev.ru/en/
Reply to this
Submit comment
Google Search for Microcontrollers!