Skip to content

Commit

Permalink
Adds api.metacpan.org to api hostnames.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Jun 9, 2011
1 parent 8c717b4 commit 1e73e66
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions etc/nginx
@@ -1,6 +1,6 @@
server {
listen 80;
server_name .beta.metacpan.org .metacpan.org;
server_name .beta.metacpan.org;
access_log /home/metacpan/metacpan.org/var/log/access.log;
error_log /home/metacpan/metacpan.org/var/log/error.log error;

Expand All @@ -12,4 +12,10 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

}
}

server {
listen 80;
server_name .metacpan.org www.metacpan.org;
rewrite /(.*)$ http://beta.metacpan.org/$1 permanent;
}

0 comments on commit 1e73e66

Please sign in to comment.