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@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@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>
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.
You have to enable Apache mod_rewrite module. Don't know exactly how to do that on Redhat. Take a look in httpd.conf file. Uncomment LoadModule mod_rewrite.so if you find one. Enable it with "RewriteEngine On". -- Frédéric
participants (2)
-
Anahit Hovhannisyan -
Frederic Demians