httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <phrac...@gmail.com>
Subject [users@httpd] Usage of type-map
Date Mon, 14 Nov 2011 15:38:59 GMT
Dear users,

on the our web server I have found really strange thing.
Some web pages on linux stored in /opt/appl/htdocs are written so that
instead of index.shtml.[en_US|de]
there are file.
application1.shtml.en_US
application1.shtml.de
application2.shtml.en_US
application2.shtml.de

Are there any possibilities how to do that over type-map?
application.shtml.var on my system looks like:

URI: application1.shtml; vary="type,language"

URI: application1.shtml.en_US
Content-type: text/shtml
Content-language: en-US

URI: application1.shtml.de
Content-type: text/shtml
Content-language: de

But this does not work.

I have inserted in DirectoryIndex index.shtml.var
AddHandler type-map .var
application/x-type-map to mime.types but
When I am accessing https://<IP>/appl/application1.shtml the it shown
me that page was not found.

It seems that I did not understant of content negotiation well.

-- 
Best Regards / S pozdravem
Petr Hracek

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