⧼vector-jumptocontent⧽

API:EPrints/Apache: Difference between revisions

From EPrints Documentation
Pod2wiki (talk | contribs)
No edit summary
Pod2wiki (talk | contribs)
No edit summary
Line 17: Line 17:
<!-- Pod2Wiki=head_description -->
<!-- Pod2Wiki=head_description -->
==DESCRIPTION==
==DESCRIPTION==
Generates Apache configuration in both <tt>cfg/apache/</tt> and  <tt>cfg/apache_ssl/</tt> for the archives instantiated for this EPrints  repository. Determined by the configuration defined in each archive's  <tt>cfg/cfg.d/10_core.pl</tt>.
Generates Apache configuration in both <em>cfg/apache/</em> and  <em>cfg/apache_ssl/</em> for the archives instantiated for this EPrints  repository. Determined by the configuration defined in each archive's  <em>cfg/cfg.d/10_core.pl</em>.


Additional non-SSL configuration can be added to the archive's  <tt>cfg/apachevhost.conf</tt>. <tt>VirtualHost</tt> for SSL configuration should  be defined in archive's <tt>ssl/securevhost.conf</tt>.
Additional non-SSL configuration can be added to the archive's  <em>cfg/apachevhost.conf</em>. <tt>\&lt;VirtualHost\</tt>&gt; for SSL configuration should  be defined in archive's <em>ssl/securevhost.conf</em>.


<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
Line 41: Line 41:


  $conf = EPrints::Apache::apache_conf( $repo )
  $conf = EPrints::Apache::apache_conf( $repo )
Generate and return the <tt>VirtualHost</tt> declaration for this repository.  Note that Apache v2.4 introduced some new API for access-control which deprecates the former "Order allow,deny" directive. We detect Apache's version by testing if mod_authz_core.c is available  (that module was added in 2.4).
Generate and return the <tt>\&lt;VirtualHost\</tt>&gt; declaration for this repository.  Note that Apache v2.4 introduced some new API for access-control which deprecates the former "Order allow,deny" directive. We detect Apache's version by testing if mod_authz_core.c is available  (that module was added in 2.4).


<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>

Revision as of 10:15, 4 March 2022

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::Apache - Generates Apache configuration for EPrints repository archives.

User Comments


DESCRIPTION

Generates Apache configuration in both cfg/apache/ and cfg/apache_ssl/ for the archives instantiated for this EPrints repository. Determined by the configuration defined in each archive's cfg/cfg.d/10_core.pl.

Additional non-SSL configuration can be added to the archive's cfg/apachevhost.conf. \<VirtualHost\> for SSL configuration should be defined in archive's ssl/securevhost.conf.

User Comments


METHODS

User Comments


apache_conf

$conf = EPrints::Apache::apache_conf( $repo )

Generate and return the \<VirtualHost\> declaration for this repository. Note that Apache v2.4 introduced some new API for access-control which deprecates the former "Order allow,deny" directive. We detect Apache's version by testing if mod_authz_core.c is available (that module was added in 2.4).

User Comments


COPYRIGHT

© Copyright 2000-2024 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE

This file is part of EPrints 3.4 http://www.eprints.org/.

EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.

EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.

User Comments