Re: Configuring handler for exact location

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/29/07, Artem Kuchin <matrix@xxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux