API:bin/generate apacheconf
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
- 1 NAME
- 2 SYNOPSIS
- 3 DESCRIPTION
- 4 ARGUMENTS
- 5 OPTIONS
- 6 FILES
- 6.1 EPRINTS/cfg/apache.conf
- 6.2 EPRINTS/cfg/auto-apache-includes.conf
- 6.3 EPRINTS/cfg/auto-apache.conf
- 6.4 EPRINTS/archives/ARCHIVEDIR/cfg/apache.conf
- 6.5 EPRINTS/archives/ARCHIVEDIR/var/auto-apache.conf
- 6.6 EPRINTS/archives/ARCHIVEDIR/var/auto-secure.conf
- 6.7 EPRINTS/archives/ARCHIVEDIR/cfg/apachevhost.conf
NAME
generate_apacheconf - Create the apache config files needed for EPrints
SYNOPSIS
generate_apacheconf [options]
DESCRIPTION
This script generates the apache config files which will be used by EPrints. In the simple case all you need to do is run this script then add a line to your main apache configuration file - often, but not always, /usr/local/apache/conf/httpd.conf
Include /opt/eprints3/cfg/apache.conf
Or elsewhere if you installed EPrints somewhere other than /opt/eprints3. This file then uses the "Include" directive to include all relevant apache config files from this EPrints installation.
By default the virtualhost directives are
VirtualHost *
But the * can be changed to something different by editing the virtualhost option in SystemSettings.pm
ARGUMENTS
OPTIONS
--help
Print a brief help message and exit.
--man
Print the full manual page and then exit.
--quiet
Be vewwy vewwy quiet. This option will supress all output unless an error occurs.
--verbose
Explain in detail what is going on. May be repeated for greater effect.
--version
Output version information and exit.
FILES
EPRINTS/cfg/apache.conf
This file is not updated if it already exists, so you can add system-wide apache configuration directives here. By default it just includes the two other system wide files: auto-apache-includes.conf and auto-apache.conf
EPRINTS/cfg/auto-apache-includes.conf
This file is updated with Include lines to each of the repository specific apache config files. This file should not be edited by hand,
EPRINTS/cfg/auto-apache.conf
This file contains the system wide apache directives required by EPrints. This file should not be edited by hand.
EPRINTS/archives/ARCHIVEDIR/cfg/apache.conf
This file is not updated if it already exists, so you can add repository-specific apache configuration directives here. By default it just includes the automatically generated repository specific file: auto-apache.conf
EPRINTS/archives/ARCHIVEDIR/var/auto-apache.conf
This file contains all the configuration directives needed for an repository. This is where the bulk of the configuration appears, the clever stuff, if you will. This file should not be edited by hand.
EPRINTS/archives/ARCHIVEDIR/var/auto-secure.conf
Only created if the repository has a securehost configured. This file contains all the configuration options that need to be included into the secure server virtualhost.
EPRINTS/archives/ARCHIVEDIR/cfg/apachevhost.conf
This file is not updated if it already exists, it is included into the virutalhost in auto-apache.conf so that you can a couple of additional directives if you need to. For example, redirects or additional log directives.