port-based virtual hosting
Since it took me a little time to work this out, I thought I would post this for this archive. In order to get Apache to serve the relevant sites only according to port number on a machine which already serves websites on port 80, my koha-httpd.conf reads as follows: ---------------------------------------------------------------------------- ---------------------------------------------- # Ports to listen to for Koha # uncomment these if they aren't already in main httpd.conf Listen 8000 Listen 8001 # NameVirtualHost is used by one of the optional configurations detailed below NameVirtualHost 111.222.333.444:8000 NameVirtualHost 111.222.333.444:8001 LoadModule env_module /usr/lib/apache/1.3/mod_env.so # KOHA's OPAC Configuration <VirtualHost v:8000> ServerAdmin admin@whatever.org DocumentRoot /usr/local/koha/opac/htdocs ServerName koha-server.domain.org:8000 ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ ErrorLog /usr/local/koha/log/opac-error_log TransferLog /usr/local/koha/log/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" Options +Includes AddHandler server-parsed .html </VirtualHost> # KOHA's INTRANET Configuration <VirtualHost 111.222.333.444:8001> ServerAdmin admin@whatever.org DocumentRoot /usr/local/koha/intranet/htdocs ServerName koha-lib.domain.org:8001 ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" ErrorLog /usr/local/koha/log/koha-error_log TransferLog /usr/local/koha/log/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" Options +Includes AddHandler server-parsed .html </VirtualHost> ---------------------------------------------------------------------------- --------------------------------------- Benjamin Sims Information Services IOC/UNESCO
participants (1)
-
Sims, Benjamin