httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <>
Subject Re: A question about getting a module to handle a specific Location
Date Sun, 18 Jan 2009 20:23:24 GMT
On Sun, Jan 18, 2009 at 2:20 PM, Sam Roberts <> wrote:
> Perhaps mod_atom shouldn't be the first time I ever try to use apache,
> but I did:
> ------------
> LogLevel debug
> LoadModule atom_module libexec/apache2/
> AtomPub /blogs /Users/sam/Documents/Blog/Atom "Blog Name" "Author Name"
> <Location /blogs>
> #AtomPub /blogs /Users/sam/Documents/Blog/Atom "Blog Name" "Author Name"
> # How do I map this to mod_atom? The above is illegal "AtomPub not allowed here"
> </Location>
> ------------
> mod_atom created the structure, but somehow I need to tell apache that
> http://localhost/blogs should go to mod_atom instead of the
> DocumentRoot.

The doc implies that no Location container or other directives should
be required, since the prefis is in the AtomPub directive.

Configuration · There isn't much. In your Apache config file, you can
define as many "publications" as you want. Each requires one
directive, for example: ¶

AtomPub /blogs/joe /z0/pubs/blogs/jb "Joe's Blog" "J. Blow"

The first argument is a prefix; any URI beginning with it is
considered to be part of the publication. The second is the filesystem
directory where the data is rooted. The filenames are the same as the
URIs, only with the directory substituted for the prefix. The title
and author are self-explanatory. There are no defaults.

Eric Covener

View raw message