Quantcast

Rewrite problem?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Rewrite problem?

Andrews, Mark J.
Rewrite problem?

Hi, all,

I did finally get an almost working VuFind (v1.0 RC1) instance working under Ubuntu 8.10.  With Java set to use 1 GB of RAM, the loader roared through 669,000+ MARC21 bib records in 46 minutes, this on a Gateway laptop with a 2 GHz Centrino dual-core processor.

Anyway, when I go to http://localhost/vufind I get the start page.  So far so good.  However, when I enter a word ("cat") and search, I get:

Not Found
The requested URL /vufind/Search/Home was not found on this server.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at localhost Port 80

Here are the most recent entries in some log files:

   Apache2 error log:
      [Tue Nov 11 08:33:20 2008] [error] [client 127.0.0.1] File does not exist: /usr/local/vufind/web/Search, referer: http://localhost/vufind/

   Apache2 rewrite log:
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b9361870/initial] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.html
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.cgi
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.pl
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.php
      127.0.0.1 - - [11/Nov/2008:08:33:20 --0600] [localhost/sid#b91d1570][rid#b9363878/initial] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/Search

I looked in /usr/local/vufind/web/ and I don't find Search, I find services/Search.  What needs to be modified so Apache2 looks in the right place?

Thanks in advance for your time and help,

Mark Andrews, Creighton University


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Rewrite problem?

Greg Pendlebury
Rewrite problem?
Hi Mark,
 
I was looking through my conf file when talking to Gord and I think I stumbled on something that may help you.
 
There's a rewrite rule in the apache conf file 'httpd-vufind.conf' on my /vufind/ root.
 
I simply included that file into the main apache conf and all was good.
 

Greg Pendlebury
Electronic Services Officer (Systems Team)
Division of Academic Information Services
University of Southern Queensland
Phone: +61 7 4631 1501
Fax: +61 7 4631 1841

 


From: Andrews, Mark J. [mailto:[hidden email]]
Sent: Wednesday, 12 November 2008 12:42 AM
To: [hidden email]
Subject: [VuFind-General] Rewrite problem?

Hi, all,

I did finally get an almost working VuFind (v1.0 RC1) instance working under Ubuntu 8.10.  With Java set to use 1 GB of RAM, the loader roared through 669,000+ MARC21 bib records in 46 minutes, this on a Gateway laptop with a 2 GHz Centrino dual-core processor.

Anyway, when I go to http://localhost/vufind I get the start page.  So far so good.  However, when I enter a word ("cat") and search, I get:

Not Found
The requested URL /vufind/Search/Home was not found on this server.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at localhost Port 80

Here are the most recent entries in some log files:

   Apache2 error log:
      [Tue Nov 11 08:33:20 2008] [error] [client 127.0.0.1] File does not exist: /usr/local/vufind/web/Search, referer: http://localhost/vufind/

   Apache2 rewrite log:
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b9361870/initial] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.html
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.cgi
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.pl
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600] [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.php
      127.0.0.1 - - [11/Nov/2008:08:33:20 --0600] [localhost/sid#b91d1570][rid#b9363878/initial] (1) [perdir /usr/local/vufind/web/] pass through /usr/local/vufind/web/Search

I looked in /usr/local/vufind/web/ and I don't find Search, I find services/Search.  What needs to be modified so Apache2 looks in the right place?

Thanks in advance for your time and help,

Mark Andrews, Creighton University


This email (including any attached files) is confidential and is for the intended recipient(s) only. If you received this email by mistake, please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily reflect those of the University of Southern Queensland. Although all reasonable precautions were taken to ensure that this email contained no viruses at the time it was sent we accept no liability for any losses arising from its receipt.

The University of Southern Queensland is a registered provider of education with the Australian Government (CRICOS Institution Code No's. QLD 00244B / NSW 02225M)
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Rewrite problem?

Gord Ripley
Hi Greg:

Apache didn't like the include, but the following works:

##########################################################
##
##   vufind
##
##########################################################

   Alias /vufind "C:/vufind/web"
    <Directory "C:/vufind/web">
        AllowOverride All
        Order allow,deny
        Allow from all
        <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase     /vufind
    RewriteRule   ^(Record)/([^/]+)/(.+)$  
index.php?module=$1&id=$2&action=$3   [L,QSA]
    RewriteRule   ^(Record)/(.+)$          
index.php?module=$1&id=$2             [L,QSA]
    RewriteRule   ^([^/]+)/(.+)$          
index.php?module=$1&action=$2         [L,QSA]
  </IfModule>
    </Directory>

So far so good. Now I'll try to index some records. Thanks for your
help!

Gord

*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  
*   Gord Ripley                                
                     
*   Systems Librarian,
*   Bata Library, Trent University,
*   1600 West Bank Drive
*   Peterborough, Ontario  K9J 7B8
*
*   Voice : 705- 748-1011 ext. 7517
*   E-mail : [hidden email]
*   Web : http://people.trentu.ca/gripley/
*
*  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  


>>> "Greg Pendlebury" <[hidden email]> 13/11/2008 5:54 pm >>>
Hi Mark,
 
I was looking through my conf file when talking to Gord and I think I
stumbled on something that may help you.
 
There's a rewrite rule in the apache conf file 'httpd-vufind.conf' on
my
/vufind/ root.
 
I simply included that file into the main apache conf and all was
good.
 

Greg Pendlebury
Electronic Services Officer (Systems Team)
Division of Academic Information Services
University of Southern Queensland
Phone: +61 7 4631 1501
Fax: +61 7 4631 1841

 

________________________________

From: Andrews, Mark J. [mailto:[hidden email]]
Sent: Wednesday, 12 November 2008 12:42 AM
To: [hidden email]
Subject: [VuFind-General] Rewrite problem?



Hi, all,

I did finally get an almost working VuFind (v1.0 RC1) instance working
under Ubuntu 8.10.  With Java set to use 1 GB of RAM, the loader
roared
through 669,000+ MARC21 bib records in 46 minutes, this on a Gateway
laptop with a 2 GHz Centrino dual-core processor.

Anyway, when I go to http://localhost/vufind I get the start page.  So
far so good.  However, when I enter a word ("cat") and search, I get:

Not Found
The requested URL /vufind/Search/Home was not found on this server.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at
localhost Port 80

Here are the most recent entries in some log files:

   Apache2 error log:
      [Tue Nov 11 08:33:20 2008] [error] [client 127.0.0.1] File does
not exist: /usr/local/vufind/web/Search, referer:
http://localhost/vufind/ 

   Apache2 rewrite log:
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
[localhost/sid#b91d1570][rid#b9361870/initial] (1) [perdir
/usr/local/vufind/web/] pass through /usr/local/vufind/web/
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
[localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
/usr/local/vufind/web/] pass through /usr/local/vufind/web/index.html
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
[localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
/usr/local/vufind/web/] pass through /usr/local/vufind/web/index.cgi
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
[localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
/usr/local/vufind/web/] pass through /usr/local/vufind/web/index.pl
      127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
[localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
/usr/local/vufind/web/] pass through /usr/local/vufind/web/index.php
      127.0.0.1 - - [11/Nov/2008:08:33:20 --0600]
[localhost/sid#b91d1570][rid#b9363878/initial] (1) [perdir
/usr/local/vufind/web/] pass through /usr/local/vufind/web/Search

I looked in /usr/local/vufind/web/ and I don't find Search, I find
services/Search.  What needs to be modified so Apache2 looks in the
right place?

Thanks in advance for your time and help,

Mark Andrews, Creighton University


This email (including any attached files) is confidential and is for
the
intended recipient(s) only.  If you received this email by mistake,
please, as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily
reflect those of the University of Southern Queensland.  Although all
reasonable precautions were taken to ensure that this email contained
no
viruses at the time it was sent we accept no liability for any losses
arising from its receipt.

The University of Southern Queensland is a registered provider of
education with the Australian Government (CRICOS Institution Code
No's.
QLD 00244B / NSW 02225M)



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Rewrite problem?

wsgrah
Administrator
Was the change for this just in the Alias and Directory directives?

Did you do the Admin section too? Based on what you have, it'll need to
be something like:

<Location ~ "/Admin/.+">
  AuthUserFile C:/vufind/web/services/Admin/.htpasswd
  AuthName "VuFind Administration"
  AuthType Basic
  require valid-user
</Location>

Wayne

Gord Ripley wrote:

> Hi Greg:
>
> Apache didn't like the include, but the following works:
>
> ##########################################################
> ##
> ##   vufind
> ##
> ##########################################################
>
>    Alias /vufind "C:/vufind/web"
>     <Directory "C:/vufind/web">
> AllowOverride All
> Order allow,deny
> Allow from all
> <IfModule mod_rewrite.c>
>     RewriteEngine On
>     RewriteBase     /vufind
>     RewriteRule   ^(Record)/([^/]+)/(.+)$  
> index.php?module=$1&id=$2&action=$3   [L,QSA]
>     RewriteRule   ^(Record)/(.+)$          
> index.php?module=$1&id=$2             [L,QSA]
>     RewriteRule   ^([^/]+)/(.+)$          
> index.php?module=$1&action=$2         [L,QSA]
>   </IfModule>
>     </Directory>
>
> So far so good. Now I'll try to index some records. Thanks for your
> help!
>
> Gord
>
> *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  
> *   Gord Ripley                                
>                      
> *   Systems Librarian,
> *   Bata Library, Trent University,
> *   1600 West Bank Drive
> *   Peterborough, Ontario  K9J 7B8
> *
> *   Voice : 705- 748-1011 ext. 7517
> *   E-mail : [hidden email]
> *   Web : http://people.trentu.ca/gripley/
> *
> *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  
>
>
>  
>>>> "Greg Pendlebury" <[hidden email]> 13/11/2008 5:54 pm >>>
>>>>        
> Hi Mark,
>  
> I was looking through my conf file when talking to Gord and I think I
> stumbled on something that may help you.
>  
> There's a rewrite rule in the apache conf file 'httpd-vufind.conf' on
> my
> /vufind/ root.
>  
> I simply included that file into the main apache conf and all was
> good.
>  
>
> Greg Pendlebury
> Electronic Services Officer (Systems Team)
> Division of Academic Information Services
> University of Southern Queensland
> Phone: +61 7 4631 1501
> Fax: +61 7 4631 1841
>
>  
>
> ________________________________
>
> From: Andrews, Mark J. [mailto:[hidden email]]
> Sent: Wednesday, 12 November 2008 12:42 AM
> To: [hidden email]
> Subject: [VuFind-General] Rewrite problem?
>
>
>
> Hi, all,
>
> I did finally get an almost working VuFind (v1.0 RC1) instance working
> under Ubuntu 8.10.  With Java set to use 1 GB of RAM, the loader
> roared
> through 669,000+ MARC21 bib records in 46 minutes, this on a Gateway
> laptop with a 2 GHz Centrino dual-core processor.
>
> Anyway, when I go to http://localhost/vufind I get the start page.  So
> far so good.  However, when I enter a word ("cat") and search, I get:
>
> Not Found
> The requested URL /vufind/Search/Home was not found on this server.
> Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch Server at
> localhost Port 80
>
> Here are the most recent entries in some log files:
>
>    Apache2 error log:
>       [Tue Nov 11 08:33:20 2008] [error] [client 127.0.0.1] File does
> not exist: /usr/local/vufind/web/Search, referer:
> http://localhost/vufind/ 
>
>    Apache2 rewrite log:
>       127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
> [localhost/sid#b91d1570][rid#b9361870/initial] (1) [perdir
> /usr/local/vufind/web/] pass through /usr/local/vufind/web/
>       127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
> [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
> /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.html
>       127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
> [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
> /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.cgi
>       127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
> [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
> /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.pl
>       127.0.0.1 - - [11/Nov/2008:08:33:16 --0600]
> [localhost/sid#b91d1570][rid#b936a890/subreq] (1) [perdir
> /usr/local/vufind/web/] pass through /usr/local/vufind/web/index.php
>       127.0.0.1 - - [11/Nov/2008:08:33:20 --0600]
> [localhost/sid#b91d1570][rid#b9363878/initial] (1) [perdir
> /usr/local/vufind/web/] pass through /usr/local/vufind/web/Search
>
> I looked in /usr/local/vufind/web/ and I don't find Search, I find
> services/Search.  What needs to be modified so Apache2 looks in the
> right place?
>
> Thanks in advance for your time and help,
>
> Mark Andrews, Creighton University
>
>
> This email (including any attached files) is confidential and is for
> the
> intended recipient(s) only.  If you received this email by mistake,
> please, as a courtesy, tell the sender, then delete this email.
>
> The views and opinions are the originator's and do not necessarily
> reflect those of the University of Southern Queensland.  Although all
> reasonable precautions were taken to ensure that this email contained
> no
> viruses at the time it was sent we accept no liability for any losses
> arising from its receipt.
>
> The University of Southern Queensland is a registered provider of
> education with the Australian Government (CRICOS Institution Code
> No's.
> QLD 00244B / NSW 02225M)
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> VuFind-General mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/vufind-general
>
>  

--
/**
  * Wayne Graham
  * Earl Gregg Swem Library
  * PO Box 8794
  * Williamsburg, VA 23188
  * 757.221.3112
  * http://swem.wm.edu/blogs/waynegraham/
  * http://www.liquidfoot.com
  */



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
VuFind-General mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/vufind-general
Loading...