You can change the '<a href="http://127.0.1.1">127.0.1.1</a>'s to '*'s and it should work for any address that directs to it, be it <a href="http://127.0.1.1">127.0.1.1</a>, localhost, or another ip.<br><br>
Kyle<br><br clear="all"><a href="http://www.kylehall.info">http://www.kylehall.info</a><br>Information Technology<br>Crawford County Federated Library System ( <a href="http://www.ccfls.org">http://www.ccfls.org</a> )<br>
<br>
<br><br><div class="gmail_quote">On Tue, Nov 4, 2008 at 6:11 PM, harry wykman <span dir="ltr"><<a href="mailto:harrybw@iinet.net.au">harrybw@iinet.net.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Folks,<br>
<br>
Andy and I have been discussing this under "Apache Problem?". Both of us now appear to have the same problem of being able to access the koha site only from <a href="http://127.0.1.1" target="_blank">127.0.1.1</a> on the box with koha installed but not via a LAN using the host name (which displays the default Apache page (it works!) whether for :80 or :8080).<br>
<br>
My apache.conf and koha-httpd.conf files are below. I would really appreciate assistance. I intend to serve the OPAC publicly ultimately but this is an important first step!<br>
<br>
Thanks,<br>
<br>
Harry<br>
<br>
Andy wrote_______________________________________<br>
<br>
That's odd. I'm in the middle of re-doing a Koha install and now I'm having<br>
the same problem: <a href="http://127.0.1.1" target="_blank">127.0.1.1</a> works but the server name doesn't. I know I've<br>
had that working in one of my previous installs, but there must be another<br>
step I'm missing now.<br>
<br>
We've reached the outer edge of my Linux knowledge -- I'm a Linux newbie,<br>
and am working on my Koha tutorial in part to help myself learn it. But I'm<br>
still working on it, and if I find the answer I'll let you know. In the mean<br>
time if it's important for you to use the server name, someone in the Koha<br>
list (or a general Linux support forum) might be able to help more.<br>
<br>
...Andy<br>
<br>
-----Original Message-----<br>
From: harry wykman [mailto:<a href="mailto:harrybw@iinet.net.au">harrybw@iinet.net.au</a>]<br>
Sent: Monday, November 03, 2008 11:21 PM<br>
To: Andy Giesler<br>
Subject: Re: [Koha] Apache problem?<br>
<br>
<br>
Hi Andy,<br>
<br>
Thanks. Still no good unfortunately.<br>
<br>
Here are my apache.conf and koha-httpd.conf<br>
<br>
APACHE.conf<br>
<br>
<br>
#Define the server's name<br>
ServerName "logos"<br>
<br>
#<br>
# Based upon the NCSA server configuration files originally by Rob McCool.<br>
#<br>
# This is the main Apache server configuration file. It contains the<br>
# configuration directives that give the server its instructions.<br>
# See <URL:<a href="http://httpd.apache.org/docs-2.1/" target="_blank">http://httpd.apache.org/docs-2.1/</a>> for detailed information about<br>
# the directives.<br>
#<br>
# Do NOT simply read the instructions in here without understanding<br>
# what they do. They're here only as hints or reminders. If you are unsure<br>
# consult the online docs. You have been warned.<br>
#<br>
# The configuration directives are grouped into three basic sections:<br>
# 1. Directives that control the operation of the Apache server process<br>
as a<br>
# whole (the 'global environment').<br>
# 2. Directives that define the parameters of the 'main' or 'default'<br>
server,<br>
# which responds to requests that aren't handled by a virtual host.<br>
# These directives also provide default values for the settings<br>
# of all virtual hosts.<br>
# 3. Settings for virtual hosts, which allow Web requests to be sent to<br>
# different IP addresses or hostnames and have them handled by the<br>
# same Apache server process.<br>
#<br>
# Configuration and logfile names: If the filenames you specify for many<br>
# of the server's control files begin with "/" (or "drive:/" for Win32), the<br>
# server will use that explicit path. If the filenames do *not* begin<br>
# with "/", the value of ServerRoot is prepended -- so<br>
"/var/log/apache2/foo.log"<br>
# with ServerRoot set to "" will be interpreted by the<br>
# server as "//var/log/apache2/foo.log".<br>
#<br>
<br>
### Section 1: Global Environment<br>
#<br>
# The directives in this section affect the overall operation of Apache,<br>
# such as the number of concurrent requests it can handle or where it<br>
# can find its configuration files.<br>
#<br>
<br>
#<br>
# ServerRoot: The top of the directory tree under which the server's<br>
# configuration, error, and log files are kept.<br>
#<br>
# NOTE! If you intend to place this on an NFS (or otherwise network)<br>
# mounted filesystem then please read the LockFile documentation (available<br>
# at <URL:<a href="http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile" target="_blank">http://httpd.apache.org/docs-2.1/mod/mpm_common.html#lockfile</a>>);<br>
# you will save yourself a lot of trouble.<br>
#<br>
# Do NOT add a slash at the end of the directory path.<br>
#<br>
ServerRoot "/etc/apache2"<br>
<br>
#<br>
# The accept serialization lock file MUST BE STORED ON A LOCAL DISK.<br>
#<br>
#<IfModule !mpm_winnt.c><br>
#<IfModule !mpm_netware.c><br>
LockFile /var/lock/apache2/accept.lock<br>
#</IfModule><br>
#</IfModule><br>
<br>
#<br>
# PidFile: The file in which the server should record its process<br>
# identification number when it starts.<br>
#<br>
PidFile /var/run/apache2.pid<br>
<br>
#<br>
# Timeout: The number of seconds before receives and sends time out.<br>
#<br>
Timeout 300<br>
<br>
#<br>
# KeepAlive: Whether or not to allow persistent connections (more than<br>
# one request per connection). Set to "Off" to deactivate.<br>
#<br>
KeepAlive On<br>
<br>
#<br>
# MaxKeepAliveRequests: The maximum number of requests to allow<br>
# during a persistent connection. Set to 0 to allow an unlimited amount.<br>
# We recommend you leave this number high, for maximum performance.<br>
#<br>
MaxKeepAliveRequests 100<br>
<br>
#<br>
# KeepAliveTimeout: Number of seconds to wait for the next request from the<br>
# same client on the same connection.<br>
#<br>
KeepAliveTimeout 15<br>
<br>
##<br>
## Server-Pool Size Regulation (MPM specific)<br>
##<br>
<br>
# prefork MPM<br>
# StartServers: number of server processes to start<br>
# MinSpareServers: minimum number of server processes which are kept spare<br>
# MaxSpareServers: maximum number of server processes which are kept spare<br>
# MaxClients: maximum number of server processes allowed to start<br>
# MaxRequestsPerChild: maximum number of requests a server process serves<br>
<IfModule mpm_prefork_module><br>
StartServers 5<br>
MinSpareServers 5<br>
MaxSpareServers 10<br>
MaxClients 150<br>
MaxRequestsPerChild 0<br>
</IfModule><br>
<br>
# worker MPM<br>
# StartServers: initial number of server processes to start<br>
# MaxClients: maximum number of simultaneous client connections<br>
# MinSpareThreads: minimum number of worker threads which are kept spare<br>
# MaxSpareThreads: maximum number of worker threads which are kept spare<br>
# ThreadsPerChild: constant number of worker threads in each server process<br>
# MaxRequestsPerChild: maximum number of requests a server process serves<br>
<IfModule mpm_worker_module><br>
StartServers 2<br>
MaxClients 150<br>
MinSpareThreads 25<br>
MaxSpareThreads 75<br>
ThreadsPerChild 25<br>
MaxRequestsPerChild 0<br>
</IfModule><br>
<br>
User www-data<br>
Group www-data<br>
<br>
#<br>
# AccessFileName: The name of the file to look for in each directory<br>
# for additional configuration directives. See also the AllowOverride<br>
# directive.<br>
#<br>
<br>
AccessFileName .htaccess<br>
<br>
#<br>
# The following lines prevent .htaccess and .htpasswd files from being<br>
# viewed by Web clients.<br>
#<br>
<Files ~ "^\.ht"><br>
Order allow,deny<br>
Deny from all<br>
</Files><br>
<br>
TypesConfig /etc/mime.types<br>
<br>
#<br>
# DefaultType is the default MIME type the server will use for a document<br>
# if it cannot otherwise determine one, such as from filename extensions.<br>
# If your server contains mostly text or HTML documents, "text/plain" is<br>
# a good value. If most of your content is binary, such as applications<br>
# or images, you may want to use "application/octet-stream" instead to<br>
# keep browsers from trying to display binary files as though they are<br>
# text.<br>
#<br>
DefaultType text/plain<br>
<br>
<br>
#<br>
# HostnameLookups: Log the names of clients or just their IP addresses<br>
# e.g., <a href="http://www.apache.org" target="_blank">www.apache.org</a> (on) or <a href="http://204.62.129.132" target="_blank">204.62.129.132</a> (off).<br>
# The default is off because it'd be overall better for the net if people<br>
# had to knowingly turn this feature on, since enabling it means that<br>
# each client request will result in AT LEAST one lookup request to the<br>
# nameserver.<br>
#<br>
HostnameLookups Off<br>
<br>
# ErrorLog: The location of the error log file.<br>
# If you do not specify an ErrorLog directive within a <VirtualHost><br>
# container, error messages relating to that virtual host will be<br>
# logged here. If you *do* define an error logfile for a <VirtualHost><br>
# container, that host's errors will be logged there and not here.<br>
#<br>
ErrorLog /var/log/apache2/error.log<br>
<br>
#<br>
# LogLevel: Control the number of messages logged to the error_log.<br>
# Possible values include: debug, info, notice, warn, error, crit,<br>
# alert, emerg.<br>
#<br>
LogLevel warn<br>
<br>
# Include module configuration:<br>
Include /etc/apache2/mods-enabled/*.load<br>
Include /etc/apache2/mods-enabled/*.conf<br>
<br>
# Include all the user configurations:<br>
Include /etc/apache2/httpd.conf<br>
<br>
# Include ports listing<br>
Include /etc/apache2/ports.conf<br>
<br>
# Include generic snippets of statements<br>
Include /etc/apache2/conf.d/<br>
<br>
#<br>
# The following directives define some format nicknames for use with<br>
# a CustomLog directive (see below).<br>
#<br>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""<br>
combined<br>
LogFormat "%h %l %u %t \"%r\" %>s %b" common<br>
LogFormat "%{Referer}i -> %U" referer<br>
LogFormat "%{User-agent}i" agent<br>
<br>
#<br>
# ServerTokens<br>
# This directive configures what you return as the Server HTTP response<br>
# Header. The default is 'Full' which sends information about the OS-Type<br>
# and compiled in modules.<br>
# Set to one of: Full | OS | Minor | Minimal | Major | Prod<br>
# where Full conveys the most information, and Prod the least.<br>
#<br>
ServerTokens Full<br>
<br>
#<br>
# Optionally add a line containing the server version and virtual host<br>
# name to server-generated pages (internal error documents, FTP directory<br>
# listings, mod_status and mod_info output etc., but not CGI generated<br>
# documents or custom error documents).<br>
# Set to "EMail" to also include a mailto: link to the ServerAdmin.<br>
# Set to one of: On | Off | EMail<br>
#<br>
ServerSignature On<br>
<br>
<IfModule alias_module><br>
#<br>
# Aliases: Add here as many aliases as you need (with no limit). The<br>
format is<br>
# Alias fakename realname<br>
#<br>
# Note that if you include a trailing / on fakename then the server will<br>
# require it to be present in the URL. So "/icons" isn't aliased in<br>
this<br>
# example, only "/icons/". If the fakename is slash-terminated,<br>
then the<br>
# realname must also be slash terminated, and if the fakename omits the<br>
# trailing slash, the realname must also omit it.<br>
#<br>
# We include the /icons/ alias for FancyIndexed directory listings. If<br>
# you do not use FancyIndexing, you may comment this out.<br>
#<br>
Alias /icons/ "/usr/share/apache2/icons/"<br>
<br>
<Directory "/usr/share/apache2/icons"><br>
Options Indexes MultiViews<br>
AllowOverride None<br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
<br>
</IfModule><br>
<br>
#<br>
# Directives controlling the display of server-generated directory listings.<br>
#<br>
<IfModule mod_autoindex.c><br>
<br>
#<br>
# IndexOptions: Controls the appearance of server-generated directory<br>
# listings.<br>
#<br>
IndexOptions FancyIndexing VersionSort HTMLTable NameWidth=*<br>
<br>
#<br>
# AddIcon* directives tell the server which icon to show for different<br>
# files or filename extensions. These are only displayed for<br>
# FancyIndexed directories.<br>
#<br>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip<br>
<br>
AddIconByType (TXT,/icons/text.gif) text/*<br>
AddIconByType (IMG,/icons/image2.gif) image/*<br>
AddIconByType (SND,/icons/sound2.gif) audio/*<br>
AddIconByType (VID,/icons/movie.gif) video/*<br>
<br>
AddIcon /icons/binary.gif .bin .exe<br>
AddIcon /icons/binhex.gif .hqx<br>
AddIcon /icons/tar.gif .tar<br>
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv<br>
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip<br>
AddIcon /icons/a.gif .ps .ai .eps<br>
AddIcon /icons/layout.gif .html .shtml .htm .pdf<br>
AddIcon /icons/text.gif .txt<br>
AddIcon /icons/c.gif .c<br>
AddIcon /icons/p.gif .pl .py<br>
AddIcon /icons/f.gif .for<br>
AddIcon /icons/dvi.gif .dvi<br>
AddIcon /icons/uuencoded.gif .uu<br>
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl<br>
AddIcon /icons/tex.gif .tex<br>
AddIcon /icons/bomb.gif core<br>
<br>
AddIcon /icons/back.gif ..<br>
AddIcon /icons/hand.right.gif README<br>
AddIcon /icons/folder.gif ^^DIRECTORY^^<br>
AddIcon /icons/blank.gif ^^BLANKICON^^<br>
<br>
#<br>
# DefaultIcon is which icon to show for files which do not have an icon<br>
# explicitly set.<br>
#<br>
DefaultIcon /icons/unknown.gif<br>
<br>
#<br>
# AddDescription allows you to place a short description after a file in<br>
# server-generated indexes. These are only displayed for FancyIndexed<br>
# directories.<br>
# Format: AddDescription "description" filename<br>
#<br>
#AddDescription "GZIP compressed document" .gz<br>
#AddDescription "tar archive" .tar<br>
#AddDescription "GZIP compressed tar archive" .tgz<br>
<br>
#<br>
# ReadmeName is the name of the README file the server will look for by<br>
# default, and append to directory listings.<br>
#<br>
# HeaderName is the name of a file which should be prepended to<br>
# directory indexes.<br>
ReadmeName README.html<br>
HeaderName HEADER.html<br>
<br>
#<br>
# IndexIgnore is a set of filenames which directory indexing should<br>
ignore<br>
# and not include in the listing. Shell-style wildcarding is permitted.<br>
#<br>
IndexIgnore .??* *~ *# RCS CVS *,v *,t<br>
</IfModule><br>
<br>
<IfModule mod_mime.c><br>
<br>
#<br>
# AddType allows you to add to or override the MIME configuration<br>
# file mime.types for specific file types.<br>
#<br>
#AddType application/x-gzip .tgz<br>
#<br>
# AddEncoding allows you to have certain browsers uncompress<br>
# information on the fly. Note: Not all browsers support this.<br>
# Despite the name similarity, the following Add* directives have<br>
# nothing to do with the FancyIndexing customization directives above.<br>
#<br>
#AddEncoding x-compress .Z<br>
#AddEncoding x-gzip .gz .tgz<br>
#<br>
# If the AddEncoding directives above are commented-out, then you<br>
# probably should define those extensions to indicate media types:<br>
#<br>
AddType application/x-compress .Z<br>
AddType application/x-gzip .gz .tgz<br>
<br>
#<br>
# DefaultLanguage and AddLanguage allows you to specify the language of<br>
# a document. You can then use content negotiation to give a browser a<br>
# file in a language the user can understand.<br>
#<br>
# Specify a default language. This means that all data<br>
# going out without a specific language tag (see below) will<br>
# be marked with this one. You probably do NOT want to set<br>
# this unless you are sure it is correct for all cases.<br>
#<br>
# * It is generally better to not mark a page as<br>
# * being a certain language than marking it with the wrong<br>
# * language!<br>
#<br>
# DefaultLanguage nl<br>
#<br>
# Note 1: The suffix does not have to be the same as the language<br>
# keyword --- those with documents in Polish (whose net-standard<br>
# language code is pl) may wish to use "AddLanguage pl .po" to<br>
# avoid the ambiguity with the common suffix for perl scripts.<br>
#<br>
# Note 2: The example entries below illustrate that in some cases<br>
# the two character 'Language' abbreviation is not identical to<br>
# the two character 'Country' code for its country,<br>
# E.g. 'Danmark/dk' versus 'Danish/da'.<br>
#<br>
# Note 3: In the case of 'ltz' we violate the RFC by using a three char<br>
# specifier. There is 'work in progress' to fix this and get<br>
# the reference data for rfc1766 cleaned up.<br>
#<br>
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)<br>
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) -<br>
German (de)<br>
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)<br>
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)<br>
# Norwegian (no) - Polish (pl) - Portugese (pt)<br>
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)<br>
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese<br>
(zh-TW)<br>
#<br>
AddLanguage ca .ca<br>
AddLanguage cs .cz .cs<br>
AddLanguage da .dk<br>
AddLanguage de .de<br>
AddLanguage el .el<br>
AddLanguage en .en<br>
AddLanguage eo .eo<br>
AddLanguage es .es<br>
AddLanguage et .et<br>
AddLanguage fr .fr<br>
AddLanguage he .he<br>
AddLanguage hr .hr<br>
AddLanguage it .it<br>
AddLanguage ja .ja<br>
AddLanguage ko .ko<br>
AddLanguage ltz .ltz<br>
AddLanguage nl .nl<br>
AddLanguage nn .nn<br>
AddLanguage no .no<br>
AddLanguage pl .po<br>
AddLanguage pt .pt<br>
AddLanguage pt-BR .pt-br<br>
AddLanguage ru .ru<br>
AddLanguage sv .sv<br>
AddLanguage zh-CN .zh-cn<br>
AddLanguage zh-TW .zh-tw<br>
</IfModule><br>
<br>
<IfModule mod_negotiation.c><br>
#<br>
# LanguagePriority allows you to give precedence to some languages<br>
# in case of a tie during content negotiation.<br>
#<br>
# Just list the languages in decreasing order of preference. We have<br>
# more or less alphabetized them here. You probably want to change this.<br>
#<br>
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl<br>
nn no pl pt pt-BR ru sv zh-CN zh-TW<br>
<br>
#<br>
# ForceLanguagePriority allows you to serve a result page rather than<br>
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE<br>
(Fallback)<br>
# [in case no accepted languages matched the available variants]<br>
#<br>
ForceLanguagePriority Prefer Fallback<br>
<br>
</IfModule><br>
<br>
<IfModule mod_mime.c><br>
#<br>
# Specify a default charset for all pages sent out. This is<br>
# always a good idea and opens the door for future internationalisation<br>
# of your web site, should you ever want it. Specifying it as<br>
# a default does little harm; as the standard dictates that a page<br>
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you<br>
# are merely stating the obvious. There are also some security<br>
# reasons in browsers, related to javascript and URL parsing<br>
# which encourage you to always set a default char set.<br>
#<br>
#AddDefaultCharset ISO-8859-1<br>
<br>
#<br>
# Commonly used filename extensions to character sets. You probably<br>
# want to avoid clashes with the language extensions, unless you<br>
# are good at carefully testing your setup after each change.<br>
# See <a href="http://www.iana.org/assignments/character-sets" target="_blank">http://www.iana.org/assignments/character-sets</a> for the<br>
# official list of charset names and their respective RFCs.<br>
#<br>
AddCharset us-ascii .ascii .us-ascii<br>
AddCharset ISO-8859-1 .iso8859-1 .latin1<br>
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen<br>
AddCharset ISO-8859-3 .iso8859-3 .latin3<br>
AddCharset ISO-8859-4 .iso8859-4 .latin4<br>
AddCharset ISO-8859-5 .iso8859-5 .cyr .iso-ru<br>
AddCharset ISO-8859-6 .iso8859-6 .arb .arabic<br>
AddCharset ISO-8859-7 .iso8859-7 .grk .greek<br>
AddCharset ISO-8859-8 .iso8859-8 .heb .hebrew<br>
AddCharset ISO-8859-9 .iso8859-9 .latin5 .trk<br>
AddCharset ISO-8859-10 .iso8859-10 .latin6<br>
AddCharset ISO-8859-13 .iso8859-13<br>
AddCharset ISO-8859-14 .iso8859-14 .latin8<br>
AddCharset ISO-8859-15 .iso8859-15 .latin9<br>
AddCharset ISO-8859-16 .iso8859-16 .latin10<br>
AddCharset ISO-2022-JP .iso2022-jp .jis<br>
AddCharset ISO-2022-KR .iso2022-kr .kis<br>
AddCharset ISO-2022-CN .iso2022-cn .cis<br>
AddCharset Big5 .Big5 .big5 .b5<br>
AddCharset cn-Big5 .cn-big5<br>
# For russian, more than one charset is used (depends on client,<br>
mostly):<br>
AddCharset WINDOWS-1251 .cp-1251 .win-1251<br>
AddCharset CP866 .cp866<br>
AddCharset KOI8 .koi8<br>
AddCharset KOI8-E .koi8-e<br>
AddCharset KOI8-r .koi8-r .koi8-ru<br>
AddCharset KOI8-U .koi8-u<br>
AddCharset KOI8-ru .koi8-uk .ua<br>
AddCharset ISO-10646-UCS-2 .ucs2<br>
AddCharset ISO-10646-UCS-4 .ucs4<br>
AddCharset UTF-7 .utf7<br>
AddCharset UTF-8 .utf8<br>
AddCharset UTF-16 .utf16<br>
AddCharset UTF-16BE .utf16be<br>
AddCharset UTF-16LE .utf16le<br>
AddCharset UTF-32 .utf32<br>
AddCharset UTF-32BE .utf32be<br>
AddCharset UTF-32LE .utf32le<br>
AddCharset euc-cn .euc-cn<br>
AddCharset euc-gb .euc-gb<br>
AddCharset euc-jp .euc-jp<br>
AddCharset euc-kr .euc-kr<br>
#Not sure how euc-tw got in - IANA doesn't list it???<br>
AddCharset EUC-TW .euc-tw<br>
AddCharset gb2312 .gb2312 .gb<br>
AddCharset iso-10646-ucs-2 .ucs-2 .iso-10646-ucs-2<br>
AddCharset iso-10646-ucs-4 .ucs-4 .iso-10646-ucs-4<br>
AddCharset shift_jis .shift_jis .sjis<br>
<br>
#<br>
# AddHandler allows you to map certain file extensions to "handlers":<br>
# actions unrelated to filetype. These can be either built into the<br>
server<br>
# or added with the Action directive (see below)<br>
#<br>
# To use CGI scripts outside of ScriptAliased directories:<br>
# (You will also need to add "ExecCGI" to the "Options" directive.)<br>
#<br>
#AddHandler cgi-script .cgi<br>
<br>
#<br>
# For files that include their own HTTP headers:<br>
#<br>
#AddHandler send-as-is asis<br>
<br>
#<br>
# For server-parsed imagemap files:<br>
#<br>
#AddHandler imap-file map<br>
<br>
#<br>
# For type maps (negotiated resources):<br>
# (This is enabled by default to allow the Apache "It Worked" page<br>
# to be distributed in multiple languages.)<br>
#<br>
AddHandler type-map var<br>
<br>
#<br>
# Filters allow you to process content before it is sent to the client.<br>
#<br>
# To parse .shtml files for server-side includes (SSI):<br>
# (You will also need to add "Includes" to the "Options" directive.)<br>
#<br>
AddType text/html .shtml<br>
AddOutputFilter INCLUDES .shtml<br>
</IfModule><br>
<br>
#<br>
# Action lets you define media types that will execute a script whenever<br>
# a matching file is called. This eliminates the need for repeated URL<br>
# pathnames for oft-used CGI file processors.<br>
# Format: Action media/type /cgi-script/location<br>
# Format: Action handler-name /cgi-script/location<br>
#<br>
<br>
#<br>
# Customizable error responses come in three flavors:<br>
# 1) plain text 2) local redirects 3) external redirects<br>
#<br>
# Some examples:<br>
#ErrorDocument 500 "The server made a boo boo."<br>
#ErrorDocument 404 /missing.html<br>
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"<br>
#ErrorDocument 402 <a href="http://www.example.com/subscription_info.html" target="_blank">http://www.example.com/subscription_info.html</a><br>
#<br>
<br>
#<br>
# Putting this all together, we can internationalize error responses.<br>
#<br>
# We use Alias to redirect any /error/HTTP_<error>.html.var response to<br>
# our collection of by-error message multi-language collections. We use<br>
# includes to substitute the appropriate text.<br>
#<br>
# You can modify the messages' appearance without changing any of the<br>
# default HTTP_<error>.html.var files by adding the line:<br>
#<br>
# Alias /error/include/ "/your/include/path/"<br>
#<br>
# which allows you to create your own set of files by starting with the<br>
# /usr/share/apache2/error/include/ files and copying them to<br>
/your/include/path/,<br>
# even on a per-VirtualHost basis. The default include files will display<br>
# your Apache version number and your ServerAdmin email address regardless<br>
# of the setting of ServerSignature.<br>
#<br>
# The internationalized error documents require mod_alias, mod_include<br>
# and mod_negotiation. To activate them, uncomment the following 30 lines.<br>
<br>
# Alias /error/ "/usr/share/apache2/error/"<br>
#<br>
# <Directory "/usr/share/apache2/error"><br>
# AllowOverride None<br>
# Options IncludesNoExec<br>
# AddOutputFilter Includes html<br>
# AddHandler type-map var<br>
# Order allow,deny<br>
# Allow from all<br>
# LanguagePriority en cs de es fr it nl sv pt-br ro<br>
# ForceLanguagePriority Prefer Fallback<br>
# </Directory><br>
#<br>
# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var<br>
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var<br>
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var<br>
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var<br>
# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var<br>
# ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var<br>
# ErrorDocument 410 /error/HTTP_GONE.html.var<br>
# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var<br>
# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var<br>
# ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var<br>
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var<br>
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var<br>
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var<br>
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var<br>
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var<br>
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var<br>
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var<br>
<br>
<IfModule mod_setenvif.c><br>
#<br>
# The following directives modify normal HTTP response behavior to<br>
# handle known problems with browser implementations.<br>
#<br>
BrowserMatch "Mozilla/2" nokeepalive<br>
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0<br>
BrowserMatch "RealPlayer 4\.0" force-response-1.0<br>
BrowserMatch "Java/1\.0" force-response-1.0<br>
BrowserMatch "JDK/1\.0" force-response-1.0<br>
<br>
#<br>
# The following directive disables redirects on non-GET requests for<br>
# a directory that does not include the trailing slash. This fixes a<br>
# problem with Microsoft WebFolders which does not appropriately handle<br>
# redirects for folders with DAV methods.<br>
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.<br>
#<br>
BrowserMatch "Microsoft Data Access Internet Publishing Provider"<br>
redirect-carefully<br>
BrowserMatch "MS FrontPage" redirect-carefully<br>
BrowserMatch "^WebDrive" redirect-carefully<br>
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully<br>
BrowserMatch "^gnome-vfs/1.0" redirect-carefully<br>
BrowserMatch "^XML Spy" redirect-carefully<br>
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully<br>
</IfModule><br>
<br>
#<IfModule mod_status.c><br>
#<br>
# Allow server status reports generated by mod_status,<br>
# with the URL of <a href="http://servername/server-status" target="_blank">http://servername/server-status</a><br>
# Change the ".<a href="http://example.com" target="_blank">example.com</a>" to match your domain to enable.<br>
#<br>
#<Location /server-status><br>
# SetHandler server-status<br>
# Order deny,allow<br>
# Deny from all<br>
# Allow from .<a href="http://example.com" target="_blank">example.com</a><br>
#</Location><br>
#</IfModule><br>
<br>
#<IfModule mod_info.c><br>
#<br>
# Allow remote server configuration reports, with the URL of<br>
# <a href="http://servername/server-info" target="_blank">http://servername/server-info</a> (requires that mod_info.c be loaded).<br>
# Change the ".<a href="http://example.com" target="_blank">example.com</a>" to match your domain to enable.<br>
#<br>
#<Location /server-info><br>
# SetHandler server-info<br>
# Order deny,allow<br>
# Deny from all<br>
# Allow from .<a href="http://example.com" target="_blank">example.com</a><br>
#</Location><br>
#</IfModule><br>
<br>
# Include the virtual host configurations:<br>
Include /etc/apache2/sites-enabled/<br>
<br>
<br>
KOHA-HTTPD.conf<br>
<br>
# Koha Apache Configuration Directives<br>
<br>
NameVirtualHost *<br>
<br>
## OPAC<br>
<VirtualHost <a href="http://127.0.1.1:80" target="_blank">127.0.1.1:80</a>><br>
ServerAdmin webmaster@logos<br>
DocumentRoot /usr/share/koha/opac/htdocs<br>
ServerName logos<br>
# ServerAlias <a href="http://opac.mydomain.com" target="_blank">opac.mydomain.com</a><br>
ScriptAlias /cgi-bin/koha/ "/usr/share/koha/opac/cgi-bin/opac/"<br>
ScriptAlias /index.html "/usr/share/koha/opac/cgi-bin/opac/opac-main.pl"<br>
ScriptAlias /opac-search.pl "/usr/share/koha/opac/cgi-bin/opac/search"<br>
ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/search"<br>
ErrorLog /var/log/koha/koha-opac-error_log<br>
# TransferLog /var/log/koha/koha-opac-access_log<br>
SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"<br>
SetEnv PERL5LIB "/usr/share/koha/lib"<br>
Options +FollowSymLinks<br>
<br>
ErrorDocument 400 /cgi-bin/koha/errors/400.pl<br>
ErrorDocument 401 /cgi-bin/koha/errors/401.pl<br>
ErrorDocument 403 /cgi-bin/koha/errors/403.pl<br>
ErrorDocument 404 /cgi-bin/koha/errors/404.pl<br>
ErrorDocument 500 /cgi-bin/koha/errors/500.pl<br>
<br>
# Rewrite Rules<br>
RewriteEngine On<br>
<br>
# Uncomment to turn on rewrite logging<br>
# RewriteLog /var/log/koha/koha-opac-rewrite.log<br>
# RewriteLogLevel 1<br>
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)<br>
RewriteRule (.+) $1?%1%2 [N,R,NE]<br>
<br>
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]<br>
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]<br>
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]<br>
</VirtualHost><br>
<br>
## Intranet<br>
<VirtualHost <a href="http://127.0.1.1:8080" target="_blank">127.0.1.1:8080</a>><br>
ServerAdmin webmaster@logos<br>
DocumentRoot /usr/share/koha/intranet/htdocs<br>
ServerName logos:8080<br>
# ServerAlias <a href="http://intranet.mydomain.com" target="_blank">intranet.mydomain.com</a><br>
ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/"<br>
ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl"<br>
ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl"<br>
ErrorLog /var/log/koha/koha-error_log<br>
# TransferLog /var/log/koha/koha-access_log<br>
SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"<br>
SetEnv PERL5LIB "/usr/share/koha/lib"<br>
Options +FollowSymLinks<br>
<br>
ErrorDocument 400 /cgi-bin/koha/errors/400.pl<br>
ErrorDocument 401 /cgi-bin/koha/errors/401.pl<br>
ErrorDocument 403 /cgi-bin/koha/errors/403.pl<br>
ErrorDocument 404 /cgi-bin/koha/errors/404.pl<br>
ErrorDocument 500 /cgi-bin/koha/errors/500.pl<br>
<br>
RewriteEngine On<br>
# Uncomment to turn on rewrite logging<br>
# RewriteLog /var/log/koha/koha-intranet-rewrite.log<br>
# RewriteLogLevel 1<br>
<br>
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)<br>
RewriteRule (.+) $1?%1%2 [N,R,NE]<br>
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]<br>
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]<br>
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]<br>
</VirtualHost><br>
<br>
<br>
On my LAN, I would like to be able to access koha using <a href="http://logos:80/" target="_blank">http://logos:80/</a><br>
or <a href="http://logos:8080/" target="_blank">http://logos:8080/</a><br>
<br>
Thanks,<br>
<br>
Harry<br>
<br>
_______________________________________________<br>
Koha mailing list<br>
<a href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br>
<a href="http://lists.katipo.co.nz/mailman/listinfo/koha" target="_blank">http://lists.katipo.co.nz/mailman/listinfo/koha</a><br>
</blockquote></div><br>