Author: Alex Barkov
Email: [EMAIL PROTECTED]
Message:
> Well, in HTDIG it's called script_name and the this is the description for it 
> 
> Description: 
> Overrides the value of the SCRIPT_NAME environment attribute. This is useful if 
>htsearch is not being called directly as a CGI program, but indirectly from within a 
>dynamic .shtml page using SSI directives. Previously, you needed a wrapper script to 
>do this, but this configuration attribute makes wrapper scripts obsolete for SSI and 
>possibly for other server scripting languages, as well. (You still need a wrapper 
>script when using PHP, though.)
> Check out the contrib/scriptname directory for a small example. Note that this 
>attribute also affects the value of the CGI variable used in htsearch templates. 
> 
> Please let me know if you find out anything

There are two ways to override SCRIPT_NAME variable.

1. Use this in variables section of search.cgi:

self /path/to/search.cgi

2. You can also use UDMSEARCH_SELF environment variable using
SetEnv/PassEnv apache's httpd.conf command:
SetEnv UDMSEARCH_SELF /path/to/search.cgi
PassEnv UDMSEARCH_SELF

To Dmitry: we have to add this into documentation.



Reply: <http://www.mnogosearch.org/board/message.php?id=3359>

___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to