Re: [tor-mirrors] tor-mirrors Digest, Vol 36, Issue 9

-----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
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQF8BAEBCgBmBQJTcO3HXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxMjgyMjhENjEyODQ1OTU1NzBCMjgwRkFB RDk3MzY0RkMyMEJFQzgwAAoJEK2XNk/CC+yAGvwIAKZ6OaiJWznHfoX+Ij7Aa7jC xVQ6cl0dOCm5IAQmyIiX17glX8HMSxWZirBUUXaziLRJhrYD8pcjkv+vde7WB2ux kYnvErUmjhs7NkqWJuecYv6yieJoLCShTA4Eiy78w5AKcrypWnXv/DKEGOmXGCXz aZFKZwtHWs6eXMLlIQcEvyYyqV7ImeNsKdDd3+1+BhiRBXRNY1i70LK3YKfKEKJa 19XYJcQeTrYG8g8kRcyQSu3chR6A/gvrPFR0KO6xize8QCUMxFfCwmce/ezgYX+1 WPof1wIV1vN4nEPAEFEVmEsVfhicox7pDZiPLyBRSChIshjTJ/NUY+Tl+9jxfvU= =HFJF -----END PGP SIGNATURE-----

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" ) -- Andrew pgp 0x6B4D6475
participants (2)
-
Andrew Lewman
-
Jesse Victors