Difference between revisions of "API:bin/generate apacheconf"

From EPrints Documentation
Jump to: navigation, search
Line 236: Line 236:
 
Default location for host and path directives used to build the Apache configuration files.
 
Default location for host and path directives used to build the Apache configuration files.
  
 +
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
 +
<span style='display:none'>User Comments</span>
 +
<!-- Edit below this comment -->
 +
 +
 +
<!-- Pod2Wiki= -->
 +
</div>
 +
<!-- Pod2Wiki=head_copyright -->
 +
==COPYRIGHT==
 
<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%; '>
 
<span style='display:none'>User Comments</span>
 
<span style='display:none'>User Comments</span>

Revision as of 10:47, 25 August 2011

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

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


NAME

generate_apacheconf - Create the apache config files needed for EPrints

User Comments


SYNOPSIS

generate_apacheconf [options] [repository_id]

generate_apacheconf --replace [repoid]

User Comments


DESCRIPTION

This script generates the config files to include in your Apache configuration.

If you have changed a repository's configuration (hostname/port/path) you can update the configuration for that repository with:

generate_apacheconf --replace [repoid]
 

User Comments


Adding to Apache Configuration

To enable EPrints you must add the following line to your main Apache configuration file (/etc/httpd/conf/httpd.conf):

Include /opt/eprints3/cfg/apache.conf
 

To enable secure (HTTPS) you must add the following line to your SSL VirtualHost:

Include /opt/eprints3/cfg/apache_ssl.conf
 

User Comments


ARGUMENTS

User Comments


repository_id

Optionally update the given repository's apache configuration only. Will only replace an existing configuration file with the --replace option.

User Comments


OPTIONS

User Comments


--replace

Replace existing configuration files, overwriting any changes made.

User Comments


--system

Update the system configuration file, overwriting any changes made.

User Comments


--help

Print a brief help message and exit.

User Comments


--man

Print the full manual page and then exit.

User Comments


--quiet

Be vewwy vewwy quiet. This option will supress all output unless an error occurs.

User Comments


--verbose

Explain in detail what is going on. May be repeated for greater effect.

User Comments


--version

Output version information and exit.

User Comments


FILES

User Comments


EPRINTS/cfg/apache.conf

Loads the EPrints environment and repository-specific configuration files.

User Comments


EPRINTS/cfg/apache_ssl.conf

Loads the repository-specific SSL configuration files.

User Comments


EPRINTS/cfg/apache/[repoid].conf

A <VirtualHost> that responds to the configured hostname and port of the repository.

User Comments


EPRINTS/cfg/apache_ssl/[repoid].conf

A <Location> that responds to the configured https_root of the repository.

User Comments


EPRINTS/archives/[repoid]/cfg.d/10_base.pl

Default location for host and path directives used to build the Apache configuration files.

User Comments


COPYRIGHT

User Comments