-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Because https://www.torproject.org/docs/running-a-mirror.html.en lists it as a requirement, the main reason being is that the pages all have .en extensions, so the main index is index.html.en. This means that by default lighttpd doesn't recognize that file as a valid index and returns a 404 whenever someone visits the root directory. Visiting the pages manually causes it to be downloaded rather than viewed. I guess lighttpd could rewrite the requests for *.html.en to *.html, or return .en as html/text, but I don't think that's what "Multiviews" means as far as I know. Tips would be appreciated.
So again, can this multiview functionality be accomplished under lighttpd, and if so, what do I need to change in the config file?
Jesse V.
On 05/12/2014 04:00 AM, tor-mirrors-request@lists.torproject.org wrote:
: While this meets most of the requirements, I still need to offer : "Multiviews" or some sort of language support URL rewrite in order to : meet the last requirement. Any tips on how to do that in lighttpd?
Why do you think you need to do this?
-- Andrew pgp 0x6B4D6475
On Mon, May 12, 2014 at 07:50:31AM -0800, jvictors@jessevictors.com wrote 2.0K bytes in 0 lines about: : Because https://www.torproject.org/docs/running-a-mirror.html.en lists : it as a requirement, the main reason being is that the pages all have : .en extensions, so the main index is index.html.en. This means that by
Ok, time to update that. Our site is English only, multiviews aren't used anymore. Lighttpd cannot do multiviews, that I know of, it's part of the goal of being a light httpd server.
Just add html.en to your lighttpd config as an index file, like this:
index-file.names = ( "index.html.en" ) mimetype.assign = ( ".html.en" => "text/html", ".css" => "text/css" )
tor-mirrors@lists.torproject.org