Project

General

Profile

Defect #155 » if_module.patch

Nils Adermann, 2008-02-03 10:53

View differences:

public/.htaccess (working copy)
1 1
# General Apache options
2
AddHandler fastcgi-script .fcgi
3
AddHandler cgi-script .cgi
2
<IfModule mod_fastcgi.c>
3
	AddHandler fastcgi-script .fcgi
4
</IfModule>
5
<IfModule mod_fcgid.c>
6
	AddHandler fcgid-script .fcgi
7
</IfModule>
8
<IfModule mod_cgi.c>
9
	AddHandler cgi-script .cgi
10
</IfModule>
4 11
Options +FollowSymLinks +ExecCGI
5 12

  
6 13
# If you don't want Rails to look in certain directories,
......
29 36
RewriteRule ^$ index.html [QSA]
30 37
RewriteRule ^([^.]+)$ $1.html [QSA]
31 38
RewriteCond %{REQUEST_FILENAME} !-f
32
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
39
<IfModule mod_fastcgi.c>
40
	RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
41
</IfModule>
42
<IfModule mod_fcgid.c>
43
	RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
44
</IfModule>
45
<IfModule mod_cgi.c>
46
	RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
47
</IfModule>
33 48

  
34 49
# In case Rails experiences terminal errors
35 50
# Instead of displaying this message you can supply a file here which will be rendered instead
(1-1/2)