Skip to content

Commit

Permalink
Fix nginx config for data feed url change
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Nov 3, 2014
1 parent 04a0973 commit 37c8e82
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/etc/nginx/sites-available/vegguide.org
Expand Up @@ -112,11 +112,15 @@ server {
rewrite ^ / permanent;
}

location ~ ^/region/(\d+)\.rss {
set $region_id $1;
rewrite ^ /region/$region_id/data.rss permanent;
}

location ^~ /location {
if ( $arg_location_id ~ (\d+) ) {
set $region_id $1;
rewrite ^/location/view\.html /region/$region_id? permanent;
rewrite ^/location/$region_id\.rss /region/$region_id/data.rss? permanent;
rewrite ^/location/data\.rss /region/$region_id/data.rss? permanent;
rewrite ^/location/most_recent\.rss /region/$region_id/recent.rss? permanent;
rewrite ^/location/most_recent_vendors\.rss /region/$region_id/recent.rss?entries_only=1 permanent;
Expand Down

0 comments on commit 37c8e82

Please sign in to comment.