httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Configuring handler for exact location
Date Thu, 29 Mar 2007 13:25:59 GMT
On 3/29/07, Artem Kuchin <matrix@itlegion.ru> wrote:
> Hello!
>
> I need to configure a handler which will
> process ONLY  / url.
> for example
> http://www.domain.dom/ is handled by handler
> as well as http://www.domain.dom
>
> but  http://www.domain.dom/images or
> http://www.domain.dom/admin is not handled by
> the handler (handler is eather cgi script or
> mod_perl script)
>
>
> However, http://www.domain.dom/Proc is also handled
> by the same handler.
>
> Why i need it:
>
> This is big mod_perl (or cgi, can run both modes)
> which handles all interactive behaviour and page
> fetching.
>
> I also shown the first page, but then all links
> point to http://www.domain.dom/Proc/Something
>
> However this is also static data like images.
>
> So, currently here is what i do:
> ScriptAlias /Proc "/hosts/domain.dom/cgi-bin/pub/Public"
>
> Public - is the script, which handles all requests for pages.
>
> The i create index.html with SSI command
> <!--#include virtual="/Proc" -->
>
> So, when user get the index page it return the default page from the script.

You can just use
ScriptAliasMatch ^/$ "/hosts/domain.dom/cgi-bin/pub/Public"

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message