Skip to content

Instantly share code, notes, and snippets.

@amiri
Created December 21, 2010 20:53
Show Gist options
  • Save amiri/750583 to your computer and use it in GitHub Desktop.
Save amiri/750583 to your computer and use it in GitHub Desktop.
Rewrite/redirect a POST with nginx?
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