Created
December 21, 2010 20:53
-
-
Save amiri/750583 to your computer and use it in GitHub Desktop.
Rewrite/redirect a POST with nginx?
This file contains 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
server { | |
listen 80; | |
server_name blog.akbuntu.local; | |
location / { | |
default_type text/html; | |
root /home/amiri/roosterpirates/Ripe/RoosterPirates-Web/root/yar; | |
autoindex on; | |
expires 30d; | |
} | |
... | |
location /comments { | |
rewrite ^/comments(.*)$ http://write.akbuntu.local/comments$1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment