Multilanguage problem

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

 



Dear users,

first of all I am using apache2-2.2.21.

I have problem with understanding why the pages are not loaded correctly.
1) I have 2 configuration files
    - first /etc/apache2/conf.d/mode.conf is used for 80 section where
is mentioned
       DirectoryIndex index.var index.shtml index.cgi
       AddHandler type-map .var
    - second /etc/apache2/vhosts.d/vhost-module.conf used for 2 virtual hosts
  My question is if it is neccessary to specify in both two virtual
hosts also directory index and AddHandler type-map .var

2) my application is located in /opt/appl/htdocs
(https://<ipaddress>/APPL/) which contains files
   - index.html
   - appl.cgi
   - pref.inc.general (which include name as mypage.shtml and its
loaded from appl.cgi)
   - mypage.shtml.en_US
   - mypage.shtml.de
  How it works:
When request is go to /APPL/ then index.html is loaded which has easy
reference to appl.cgi.
appl.cgi is running and loading pref.inc.general file.
In appl.cgi script pref.inc.general is simply print as web document to
the client where is mentioned mypage.shtml and not mypage.shtml.en_US.
When mypage.shtml.en_US is mentioned in pref.inc.general then page is
shown properly.

Could you please let me know why mypage.var is not loading mypage.shtml.en_US
when in file mypage.var is metioned:

URI: mypage.shtml

URI: mypage.shtml.en_US
Content-type: text/html
Content-language: en

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

URI: mypage.shtml.de
Content-type: text/html
Content-language: de

Thank you in advance
-- 
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