Created
November 20, 2013 23:12
-
-
Save jbraithwaite/7572936 to your computer and use it in GitHub Desktop.
nginx configuration for feedpress.it with ghost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I could only find a version for Apache