Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] swish-e - Help with Document-Path

From: Troy Wical <troy(at)not-real.wical.com>
Date: Tue Jun 15 2010 - 09:09:35 GMT
On Jun 15, 2010, at 2:58 AM, pgeo@gmx.de wrote:

> Hi @ all,
> i didn´t have any experience with swish-e
> and hope, somebody could help me:
> 
> Here´s the situation:
> 
> our webserver has mounted his Doc-Root on another Server via NFS; 
> the server "see" his docroot for example as /export/customer1/html
> the index.html is then /export/customer1/html/index.html
> eg. there´s an document called "price.html" in directory /export/customer1/html/privatcustomer/price.html
> 
> But from extern (Internet) you´ll see only www.customername/privatcustomer/price.html
> 
> in my swish.conf i wrote:
> IndexDir /export/customer1/html
> IndexDir /export/customer2/html
> and so on.
> 
> Now, when i start the search i get as result:
> Documentname (in this case: price.html)
> Last modified Date: xxx
> Document Size: 12323
> Document Path: /export/customer1/html/privatcustomer/price.html

I believe you would want the following in your conf file:

ReplaceRules replace "/export/customer1/html/" "http://www.customername/privatecustomer/"

This will replace the file path with the url prefix you are looking for, that way users can follow the link.

Good luck.

Troy
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Tue Jun 15 05:09:39 2010