[Assorted-commits] SF.net SVN: assorted:[1820] personal-site/trunk/README
Brought to you by:
yangzhang
|
From: <yan...@us...> - 2012-01-20 07:45:10
|
Revision: 1820
http://assorted.svn.sourceforge.net/assorted/?rev=1820&view=rev
Author: yangzhang
Date: 2012-01-20 07:45:04 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
Update setup in README
Modified Paths:
--------------
personal-site/trunk/README
Modified: personal-site/trunk/README
===================================================================
--- personal-site/trunk/README 2012-01-19 19:36:57 UTC (rev 1819)
+++ personal-site/trunk/README 2012-01-20 07:45:04 UTC (rev 1820)
@@ -81,30 +81,60 @@
Apache
------
-In apache2.conf, lower prefork's `MaxClients` to something manageable (5).
+In apache2.conf, lower prefork's `MaxClients` to something manageable (4).
+In ports.conf, listen on port 88 instead of 80.
+
In sites-enabled/000-default:
- <Directory /var/www/wp/>
- RewriteEngine On
- RewriteBase /wp/
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule . /wp/index.php [L]
- </Directory>
+ <VirtualHost *:88>
- RedirectMatch permanent ^/notes([/]*)$ /notes/
- <Location /notes/>
- Allow from all
- ProxyPass http://127.0.0.1:5001/
- SetOutputFilter proxy-html
- ProxyPassReverse /
- ProxyHTMLURLMap / /notes/
- RequestHeader unset Accept-Encoding
- AddOutputFilterByType SUBSTITUTE application/atom+xml
- Substitute "s|127.0.0.1:5001|yz.mit.edu/notes|"
- </Location>
+ ...
+ <Directory /var/www/wp/>
+ RewriteEngine On
+ RewriteBase /wp/
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteRule . /wp/index.php [L]
+ </Directory>
+
+ RedirectMatch permanent ^/notes([/]*)$ /notes/
+ <Location /notes/>
+ Allow from all
+ ProxyPass http://127.0.0.1:5001/
+ SetOutputFilter proxy-html
+ ProxyPassReverse /
+ ProxyHTMLURLMap / /notes/
+ RequestHeader unset Accept-Encoding
+ AddOutputFilterByType SUBSTITUTE application/atom+xml
+ Substitute "s|127.0.0.1:5001|yz.mit.edu/notes|"
+ </Location>
+
+ </VirtualHost>
+
+Nginx
+-----
+
+Install nginx:
+
+ sudo aptitude install nginx
+
+In /etc/nginx/sites-enabled/default:
+
+ server {
+ listen 80 default;
+ server_name yz.mit.edu;
+
+ access_log /var/log/nginx/localhost.access.log;
+
+ location / {
+ proxy_pass http://127.0.0.1:88;
+ proxy_set_header Host $host; # So WP URL rewriter works.
+ proxy_read_timeout 99999;
+ }
+ }
+
Gitit
-----
@@ -142,7 +172,8 @@
respawn
- exec su - yang -c 'cd gitit/; exec gitit -f config'
+ # Limit runtime to 50M heap
+ exec su - yang -c 'cd gitit/; exec gitit -f config +RTS -M50m'
Install this cronjob script:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|