Permalink
Browse files

Add Nginx mirror configuration example.

  • Loading branch information...
theory committed Apr 10, 2012
1 parent 937c259 commit 0400fd8cf9457bfca0169be1a6fc0a15d37d4142
Showing with 15 additions and 2 deletions.
  1. +1 −0 Changes
  2. +14 −2 lib/PGXN/Site/Locale/en/mirroring.mmd
View
@@ -1,6 +1,7 @@
Revision history for Perl extension PGXN::Site
0.10.1
+ - Added an Nginx configuration example to the mirroring page.
0.10.0 2012-01-10T04:37:24Z
- Updated links in the About page.
@@ -6,7 +6,7 @@ Hosting a PGXN mirror is simple. All you need is:
* A reasonably fast internet connection
* Space for storage—not much at this point
* An [rsync](http://rsync.samba.org/) client
-* web server
+* A web server
The `rsync` address for the PGXN master mirror is rsync://master.pgxn.org/pgxn.
@@ -18,7 +18,7 @@ On Windows, use AT like so:
AT 20:00 /every:M,T,W,Th,F,S,Su "C:\Program Files\Rsync\rsync -az --delete rsync://master.pgxn.org/pgxn C:\Projects\PGXN"
-Please do not sync more than once every hour. And realistically you only need to sync once or twice a day. Next, set up a web server to serve the mirror. If your rsync is already in the subdirectory of a web server root, you should be golden. Otherwise, if you’re using Apache, you can set up a virtual host like so (assuming that you’re `rsync`ing to `/usr/local/pgxn`):
+Please do not sync more than once every hour. And realistically you only need to sync once or twice a day. Next, set up a web server to serve the mirror. If your rsync is already in the subdirectory of a web server root, you should be golden. Otherwise, if you’re using [Apache](http://httpd.apache.org/), you can set up a virtual host like so (assuming that you’re `rsync`ing to `/usr/local/pgxn`):
<VirtualHost *:80>
DocumentRoot /usr/local/pgxn
@@ -31,4 +31,16 @@ Please do not sync more than once every hour. And realistically you only need to
</Directory>
</VirtualHost>
+For [Nginx](http://www.nginx.org/), you set set up a virtual host like this:
+
+ server {
+ listen 80;
+ server_name pgxn.example.org;
+ charset utf-8;
+ location / {
+ root /var/local/pgxn;
+ index index.html;
+ }
+ }
+
If you’d like to register your mirror, [send us email](mailto:[_1]) with all the details and we’ll get you registered.

0 comments on commit 0400fd8

Please sign in to comment.