httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Bianchi <dav...@onlyforfun.net>
Subject Re: [users@httpd] How apache deals with file extensions
Date Mon, 04 Aug 2008 07:34:00 GMT
Robinson Craig wrote:
> /wrp/mary.html
> 
> If someone types the following url into a browser:
> 
> http://www.nrw.qld.gov.au/wrp/mary (**i.e. no .html extension)
> 
> Then Apache can locate the page and successfully logs the entry like
> (note the 302 status):

This is done by Multiviews if it's enabled (I think the default is enabled).

> As there is no extension, how can apache know what mimetype the file is
> and successfully respond?

Most of the time, getting the complete file name by Multiviews and then 
deciding wich file type is by using the mime extensions.

See the documentation for mod_negotiation and mod_mime

Davide

-- 
Windows NT source code now available... download WIN2000.BAS now!
    -- From a Slashdot.org post

---------------------------------------------------------------------
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