rpms/mod_fcgid/devel mod_fcgid-2.1-README.RPM, 1.1, 1.2 mod_fcgid-2.1-README.SELinux, 1.3, 1.4 mod_fcgid.spec, 1.16, 1.17
Paul Howarth
pghmcfc at fedoraproject.org
Thu Feb 26 12:51:10 UTC 2009
Author: pghmcfc
Update of /cvs/pkgs/rpms/mod_fcgid/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24883
Modified Files:
mod_fcgid-2.1-README.RPM mod_fcgid-2.1-README.SELinux
mod_fcgid.spec
Log Message:
Update documentation for MoinMoin, Rails (#476658), and SELinux
Index: mod_fcgid-2.1-README.RPM
===================================================================
RCS file: /cvs/pkgs/rpms/mod_fcgid/devel/mod_fcgid-2.1-README.RPM,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mod_fcgid-2.1-README.RPM 15 Jun 2007 16:56:23 -0000 1.1
+++ mod_fcgid-2.1-README.RPM 26 Feb 2009 12:50:40 -0000 1.2
@@ -37,12 +37,16 @@
/etc/httpd/conf.d/mywiki.conf
# Wiki application data common to all wiki instances
- Alias /wiki/ "/usr/share/moin/htdocs/"
+ Alias /moin_static182 "/usr/share/moin/htdocs/"
<Directory "/usr/share/moin/htdocs/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
+ <IfModule mod_expires.c>
+ ExpiresActive On
+ ExpiresDefault "access plus 1 year"
+ </IfModule>
</Directory>
# Wiki instance with mod_fcgid
@@ -56,12 +60,21 @@
</Directory>
</IfModule>
- * If you are using SELinux with Fedora Core 5 or later, or Red Hat Enterprise
- Linux 5 or later, install the mod_fcgid-selinux package and see the
- README.SELinux file in that package for details of the file contexts to use
-
* Restart the web server to load the new configuration:
service httpd restart
That should do it!
+
+Ruby on Rails with mod_fcgid
+============================
+
+One of the differences between mod_fastcgi and mod_fcgid is that the former
+sets the SCRIPT_NAME environment variable whilst the latter does not, and it's
+reported (http://bugzilla.redhat.com/476658) that Ruby on Rails expects this
+environment variable to be present. A workaround for this is to add:
+
+ActionController::AbstractRequest.relative_url_root = ""
+
+to the Rails::Initializer.run segment of config/environment.rb
+
Index: mod_fcgid-2.1-README.SELinux
===================================================================
RCS file: /cvs/pkgs/rpms/mod_fcgid/devel/mod_fcgid-2.1-README.SELinux,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mod_fcgid-2.1-README.SELinux 22 Oct 2008 10:31:34 -0000 1.3
+++ mod_fcgid-2.1-README.SELinux 26 Feb 2009 12:50:40 -0000 1.4
@@ -1,12 +1,11 @@
Using mod_fcgid with SELinux in Fedora Core 5 / RHEL 5 onwards
==============================================================
-Versions of this package built for Fedora Core 5 / Red Hat Enterprise Linux 5
-or later include an SELinux policy module to support FastCGI applications.
-This has only been tested so far with moin, so feedback from other applications
-is welcome. The policy included here is a transitional policy that will soon
-be included in the selinux-policy package for Fedora 8 onwards, and the
-mod_fcgid-selinux package will be obsoleted when that happens.
+Versions of this package built for Fedora Core 5, 6, or 7 and Red Hat
+Enterprise Linux 5 or later include an SELinux policy module to support
+FastCGI applications. Later Fedora releases include the policy in the main
+selinux-policy package and do not require the separate module. This has only
+been tested so far with moin, so feedback from other applications is welcome.
The module source (fastcgi.{fc,te}) is included for reference as documentation
in the package.
Index: mod_fcgid.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mod_fcgid/devel/mod_fcgid.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mod_fcgid.spec 26 Feb 2009 02:04:08 -0000 1.16
+++ mod_fcgid.spec 26 Feb 2009 12:50:40 -0000 1.17
@@ -15,7 +15,7 @@
Name: mod_fcgid
Version: 2.2
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: Apache2 module for high-performance server-side scripting
Group: System Environment/Daemons
License: GPL+
@@ -52,7 +52,7 @@
%if %{selinux_module}
%global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0)
-%define selinux_policynum %(echo %{selinux_policyver} | %{__awk} -F. '{ printf "%d%02d%02d", $1, $2, $3 }')
+%global selinux_policynum %(echo %{selinux_policyver} | %{__awk} -F. '{ printf "%d%02d%02d", $1, $2, $3 }')
%package selinux
Summary: SELinux policy module supporting FastCGI applications with mod_fcgid
Group: System Environment/Base
@@ -169,6 +169,9 @@
%endif
%changelog
+* Thu Feb 26 2009 Paul Howarth <paul at city-fan.org> 2.2-9
+- Update documentation for MoinMoin, Rails (#476658), and SELinux
+
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
More information about the fedora-extras-commits
mailing list