Skip to content

Instantly share code, notes, and snippets.

@jbraithwaite
Created November 20, 2013 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbraithwaite/7572936 to your computer and use it in GitHub Desktop.
Save jbraithwaite/7572936 to your computer and use it in GitHub Desktop.
nginx configuration for feedpress.it with ghost
location /rss {
# If the UA doesn't contain feedpress or feedvalidator
if ($http_user_agent !~* (feedpress)|(feedvalidator)){
# Redirect the user to your cname'd rss veed link
return 301 http://feed.YOUR_SITE.com/YOUR_FEED_NAME;
# If you haven't set that up (you should), you can uncomment out the following line
# return 302 http://feedpress.me/YOUR_FEED_NAME;
}
# What happens if the UA contains feedpress or feedvalidator
# In this case, I am using a proxy for my blog
proxy_pass http://blog;
}
@jbraithwaite
Copy link
Author

I could only find a version for Apache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment