Usage of type-map

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

 



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