nginx: [emerg] directive "rewrite" is not terminated by "; " in /usr/local/nginx/conf/nginx.conf:67

adam estes wtymdjs at gmail.com
Mon Mar 5 16:11:46 UTC 2012


63 rewrite ^/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$
/gymrss.php?channels&$2&$4&$6 last;
64 rewrite ^/(news|maps)/?(page([0-9]+)\.html)?$ /map.php?$1&start=$3 last;
66 rewrite ^/(news|maps)/([a-z0-9_-]+)(/([a-z0-9_-]+))?/?(page([0-9]+)\.html)?$
/map.php?$2=$4&$1&start=$6 last;
67 rewrite ^/rss(/(news)+)?(/(digest)+)?(/(short|long)+)?(/([a-z0-9_-]+))?/([a-z0-9_]+)\.xml(\.gz)?$
/gymrss.php?$9=$8&$2&$4&$6&gzip=$10 last;
68 rewrite ^/[a-z0-9_-]*-[a-z]{1,2}([0-9]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$
/gymrss.php?$8=$1&$3&$5&$7&gzip=$9 last;
69 rewrite ^/([a-z0-9_-]+)(/(news)+)?(/(digest)+)?(/(short|long)+)?/([a-z0-9_]+)\.xml(\.gz)?$
/gymrss.php?nametoid=$1&$3&$5&$7&modulename=$8&gzip=$9 last;
70 rewrite ^/sitemapindex\.xml(\.gz)?$ /sitemap.php?gzip=$1 last;
71 rewrite ^/[a-z0-9_-]+-([a-z]{1,2})([0-9]+)\.xml(\.gz)?$
/sitemap.php?module_sep=$1&module_sub=$2&gzip=$3 last;
72 rewrite ^/([a-z0-9_]+)-([a-z0-9_-]+)\.xml(\.gz)?$
/sitemap.php?$1=$2&gzip=$3 last;

So what exactly am I missing?



More information about the nginx mailing list