Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 47 lines (30 sloc) 1.464 kB
3a77a62 @lifo Initial commit
lifo authored
1 mod_porter parses multipart and your rails app just gets a hash like :
2
3 "file"=> {"content_type"=>"application/octet-stream",
4 "filename"=>"httpd-2.2.10.tar.bz2",
5 "path"=>"/var/folders/by/bygKB15q2RabYU+BYnf+S++++TI/-Tmp-/apreqigOWmK",
6 "signature" => 'sodsfsdfjhsdfjhsdfjhsdfjhsdjfh'}
7
8 Apache config options :
9
10 - Porter On|Off
11
12 Enable/disbale mod_porter per vhost
13
14 - PorterSharedSecret <password>
15
16 Secret key to sign the hash generated by mod_porter.
17
18 - PorterPermission 0x0666
19
20 Default file permission for temporary files created by mod_porter.
21
b9daddd @pkmiec Added optional PorterDir parameter. Improved Rakefile to allow passin…
pkmiec authored
22 - PorterDir /tmp/porter
23
24 Optional directory for temporary files created by mod_porter (needs to be writable by the apache process).
25
3a77a62 @lifo Initial commit
lifo authored
26 * Sample httpd.conf for passenger :
27 =========================================================================================================
28 LoadModule passenger_module /opt/local/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
29 PassengerRoot /opt/local/lib/ruby/gems/1.8/gems/passenger-2.0.6
30 PassengerRuby /opt/local/bin/ruby
31
32 LoadModule apreq_module modules/mod_apreq2.so
33 APREQ2_ReadLimit 2G
34
35 LoadModule porter_module modules/mod_porter.so
36
37 <VirtualHost *:8080>
38 Porter On
39
40 PorterSharedSecret mysecretpassword
41 PorterPermission 0x0666
42
43 ServerName localhost
44 DocumentRoot /Users/lifo/Rails/edge/public
45 </VirtualHost>
46 =========================================================================================================
Something went wrong with that request. Please try again.