# Koha instance library Apache config.


# OPAC
<VirtualHost *:80>
Include /etc/koha/apache-shared.conf
# Include /etc/koha/apache-shared-disable.conf
Include /etc/koha/apache-shared-opac.conf


ServerName library.laverdieres.com
SetEnv KOHA_CONF "/etc/koha/sites/library/koha-conf.xml"
AssignUserID library-koha library-koha


ErrorLog /var/log/koha/library/opac-error.log
# TransferLog /var/log/koha/library/opac-access.log
# RewriteLog /var/log/koha/library/opac-rewrite.log
</VirtualHost>


# Intranet
<VirtualHost *:80>
Include /etc/koha/apache-shared.conf
# Include /etc/koha/apache-shared-disable.conf
Include /etc/koha/apache-shared-intranet.conf


ServerName library.laverdieres.com
SetEnv KOHA_CONF "/etc/koha/sites/library/koha-conf.xml"
AssignUserID library-koha library-koha


ErrorLog /var/log/koha/library/intranet-error.log
# TransferLog /var/log/koha/library/intranet-access.log
# RewriteLog /var/log/koha/library/intranet-rewrite.log
</VirtualHost>


#SSL


# OPAC
<VirtualHost *:443>
Include /etc/koha/apache-shared.conf
# Include /etc/koha/apache-shared-disable.conf
Include /etc/koha/apache-shared-opac.conf


ServerName library.laverdieres.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/ssl.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem
SSLCACertificateFile /etc/apache2/ssl/ca.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown


SetEnv KOHA_CONF "/etc/koha/sites/library/koha-conf.xml"
AssignUserID library-koha library-koha


ErrorLog /var/log/koha/library/opac-error.log
# TransferLog /var/log/koha/library/opac-access.log
# RewriteLog /var/log/koha/library/opac-rewrite.log
</VirtualHost>


# Intranet
<VirtualHost *:8443>
Include /etc/koha/apache-shared.conf
# Include /etc/koha/apache-shared-disable.conf
Include /etc/koha/apache-shared-intranet.conf


ServerName library.laverdieres.com

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/ssl.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem
SSLCACertificateFile /etc/apache2/ssl/ca.pem
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown


SetEnv KOHA_CONF "/etc/koha/sites/library/koha-conf.xml"
AssignUserID library-koha library-koha


ErrorLog /var/log/koha/library/intranet-error.log
# TransferLog /var/log/koha/library/intranet-access.log
# RewriteLog /var/log/koha/library/intranet-rewrite.log
</VirtualHost>








Mibbit.com Pasted on 2012-11-06 22:14:27