[Koha] How to configure httpd.conf

Anahit Hovhannisyan anahit at flib.sci.am
Wed Jun 4 21:21:37 NZST 2008


Deal all,

 

 

Please help me how to configure httpd.conf file for koha-3.00.00-beta and
apache 2.2.8  on  Red hat.

 

I put the following directives in descriptors of VirtualHost in httpd.conf ,
and  it gave me  the errors like "Rewrite is unknown directive", when I
commented these lines and browsed koha site I see nothing.

 

Please tell me what I did wrong.

 

Thanks in advance.

Anahit,Yerevan,Armenia

 

 

## OPAC

<VirtualHost 193.232.228.68:80>

   ServerAdmin  webmaster at FLIBKOHA

      DocumentRoot /usr/local/koha/opac/htdocs

      ServerName FLIBKOHA

      #  ServerAlias opac.mydomain.com

      ScriptAlias /cgi-bin/koha/ "/usr/local/koha/opac/cgi-bin/opac/"

      ScriptAlias /index.html
"/usr/local/koha/opac/cgi-bin/opac/opac-main.pl"

      ScriptAlias /opac-search.pl "/usr/local/koha/opac/cgi-bin/opac/search"

      ScriptAlias /search "/usr/local/koha/opac/cgi-bin/opac/search"

      ErrorLog /var/log/koha/koha-opac-error_log

     #  TransferLog /var/log/koha/koha-opac-access_log

      SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"

      SetEnv PERL5LIB "/usr/local/koha/lib"

     Options +FollowSymLinks

                         

     ErrorDocument 400 /cgi-bin/koha/errors/400.pl

     ErrorDocument 401 /cgi-bin/koha/errors/401.pl

     ErrorDocument 403 /cgi-bin/koha/errors/403.pl

     ErrorDocument 404 /cgi-bin/koha/errors/404.pl

     ErrorDocument 500 /cgi-bin/koha/errors/500.pl

  Rewrite Rules

       RewriteEngine On

   #  Uncomment to turn on rewrite logging

  #  RewriteLog /var/log/koha/koha-opac-rewrite.log

   #  RewriteLogLevel 1

      RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)

      RewriteRule (.+) $1?%1%2 [N,R,NE]

RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]

RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]

RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]

 

<Directory "/usr/local/koha/opac/">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

</Directory>

 

</VirtualHost>

 

## Intranet

<VirtualHost 193.232.228.68:8080>

ServerAdmin webmaster at FLIBKOHA

DocumentRoot /usr/local/koha/intranet/htdocs

ServerName FLIBKOHA:8080

#  ServerAlias intranet.mydomain.com

ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"

ScriptAlias /index.html "/usr/local/koha/intranet/cgi-bin/mainpage.pl"

ScriptAlias /search "/usr/local/koha/intranet/cgi-bin/search.pl"

ErrorLog /var/log/koha/koha-error_log

#TransferLog /var/log/koha/koha-access_log

SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"

SetEnv PERL5LIB "/usr/local/koha/lib"

Options +FollowSymLinks

ErrorDocument 400 /cgi-bin/koha/errors/400.pl

 ErrorDocument 401 /cgi-bin/koha/errors/401.pl

 ErrorDocument 403 /cgi-bin/koha/errors/403.pl

 ErrorDocument 404 /cgi-bin/koha/errors/404.pl

 ErrorDocument 500 /cgi-bin/koha/errors/500.pl

  ##RewriteEngine On    

  #  Uncomment to turn on rewrite logging

  #  RewriteLog /var/log/koha/koha-intranet-rewrite.log

  #  RewriteLogLevel 1

RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)

RewriteRule (.+) $1?%1%2 [N,R,NE]

 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]

 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]

 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]

 

<Directory "/usr/local/koha/intranet/">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

</Directory>

 

</VirtualHost>    

 

 

                        

              

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20080604/349674a3/attachment-0001.htm 


More information about the Koha mailing list