multiviews doesn't work on index pages (and DirectoryIndex properly configured)

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

 



Hello. Debian 5.0, apache 2 2.2.9-10. I've optioned multiviews, and it
works perfectly fine for every document except index page.

All site using URIs without file extension names, every URI map to 2
files. e.g. about_us have 2 corresponding files:

about_us.en.html
about_us.de.html

And accessing /about_us gets the right language according to browser
setting, works perfectly.

Problem being the index page shows up as a blank page. More tests shows:

                       Firefox       w3m          wget
http://mysite          blank page    blank page   English page
http://mysite/index    English page  English page English page


How can I get http://mysite show non-blank page?


Here is my related section of configuration

	<Directory /var/www/www.realss.com.cn/htdocs/>
		Options FollowSymLinks MultiViews +Includes
		DirectoryIndex index
		AllowOverride All
		Order allow,deny
		allow from all
		AddHandler server-parsed .shtml
		SSITimeFormat "%S"
		XBitHack on
		Header append Vary cookie 
	</Directory>

To workaround this, I have to replace DirectoryIndex:

    DirectoryIndex index.en.html


This breaks multviews on the index page of course, but I have no other way.

Thanks for hints and advices in advance!

Best regards
Zhang Weiwu

-- 
æçååï
http://zhangweiwu.ixiezi.com/
ççèåè ïïåçéèççæåææäçççä


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