Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

commented Nov 20, 2013

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
You can’t perform that action at this time.