Chiara Biancheri wrote:
>>>
>>>are ? and _ caracter allowed in server command in the
>>>indexer.conf?
>>>
>>>If I put them in I have an error 404 from the database.
>>>
>>No. Take a lool into indexer.conf-dist, "Realm String"
>>explanation.
>>
>>
>
> To avoid any problem with special caracters I made an external program
> that transform my url.
> If I put in the indexer.conf only this
>
> Server file:/data/
>
> the indexer is working fine, but if I use
>
> Server file:/data/
> AliasProg "/usr/local/bin/pathconvert $1"
>
> and the pathconvert take the file:/data/* and give the appropriate url,
> to be used when a search is performed. the result in the database is a
> document with error 503.
>
> The program return the alias as stdout.
> Where the url is trasformed in your code?
>
The code near these lines in indexer.c is responsible for AliasProg
execution:
#ifdef UDM_WITH_ALIASPROG
/* Start AliasProg if no alias in "Server" command */
if((Indexer->Conf->alias_prog)&&(!aliastr[0])){
FILE * aprog;
char cmd[UDM_URLSIZE*3]="";
char arg[UDM_URLSIZE*3]="";
Please run indexer with -v6. It will print various debug
information, including AliasProg related.
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]