Update documentation for MoinMoin, Rails (#476658), and SELinux

This commit is contained in:
Paul Howarth 2009-02-26 12:50:40 +00:00
parent 023f8a9382
commit 882d2d3dc2
3 changed files with 28 additions and 13 deletions

View File

@ -37,12 +37,16 @@ CGI application.
/etc/httpd/conf.d/mywiki.conf /etc/httpd/conf.d/mywiki.conf
# Wiki application data common to all wiki instances # 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/"> <Directory "/usr/share/moin/htdocs/">
Options Indexes FollowSymLinks Options Indexes FollowSymLinks
AllowOverride None AllowOverride None
Order allow,deny Order allow,deny
Allow from all Allow from all
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 year"
</IfModule>
</Directory> </Directory>
# Wiki instance with mod_fcgid # Wiki instance with mod_fcgid
@ -56,12 +60,21 @@ CGI application.
</Directory> </Directory>
</IfModule> </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: * Restart the web server to load the new configuration:
service httpd restart service httpd restart
That should do it! 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

View File

@ -1,12 +1,11 @@
Using mod_fcgid with SELinux in Fedora Core 5 / RHEL 5 onwards 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 Versions of this package built for Fedora Core 5, 6, or 7 and Red Hat
or later include an SELinux policy module to support FastCGI applications. Enterprise Linux 5 or later include an SELinux policy module to support
This has only been tested so far with moin, so feedback from other applications FastCGI applications. Later Fedora releases include the policy in the main
is welcome. The policy included here is a transitional policy that will soon selinux-policy package and do not require the separate module. This has only
be included in the selinux-policy package for Fedora 8 onwards, and the been tested so far with moin, so feedback from other applications is welcome.
mod_fcgid-selinux package will be obsoleted when that happens.
The module source (fastcgi.{fc,te}) is included for reference as documentation The module source (fastcgi.{fc,te}) is included for reference as documentation
in the package. in the package.

View File

@ -15,7 +15,7 @@
Name: mod_fcgid Name: mod_fcgid
Version: 2.2 Version: 2.2
Release: 8%{?dist} Release: 9%{?dist}
Summary: Apache2 module for high-performance server-side scripting Summary: Apache2 module for high-performance server-side scripting
Group: System Environment/Daemons Group: System Environment/Daemons
License: GPL+ License: GPL+
@ -52,7 +52,7 @@ as possible.
%if %{selinux_module} %if %{selinux_module}
%global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0) %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 %package selinux
Summary: SELinux policy module supporting FastCGI applications with mod_fcgid Summary: SELinux policy module supporting FastCGI applications with mod_fcgid
Group: System Environment/Base Group: System Environment/Base
@ -169,6 +169,9 @@ exit 0
%endif %endif
%changelog %changelog
* Thu Feb 26 2009 Paul Howarth <paul@city-fan.org> 2.2-9
- Update documentation for MoinMoin, Rails (#476658), and SELinux
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-8 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild