Re: [Dorset] nginx Setup / Configuration
On Monday, 20 February 2017 10:40:18 GMT Ralph Corderoy wrote: > If Audio_Guide is hard to type that's because it's not the more normal > audio-guide. Terry, are you putting QR codes about for mobiles to open > the URL? You could have a Wimborne Minster tower. > https://research.swtch.com/qart Once the system is installed, no-one will need to type Audio_Guide, audio- guide or even just Guide (or guide). The function will be accessed from the top level menu. I like the idea of using a QR code to open the URL, especially if it can be based on a picture of the Minster. My original plan was to have the landing page automatically open when the user connects to the WiFi (rather like the cloud does in the pub). If I can't work out how to do that (I haven't really looked at that bit yet), then a QR code would be a good alternative. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] nginx Setup / Configuration
Hi John, > It is possible to get nginx to match catch insensitively if you need > to. You have to use a case-insensitive regex match. Yes, though in Terry's case he has Unix path names that are case sensitive, and URL paths that are too, given URLs were designed on Unix, so he shouldn't introduce ambiguity to cater for those that can't type. :-) If Audio_Guide is hard to type that's because it's not the more normal audio-guide. Terry, are you putting QR codes about for mobiles to open the URL? You could have a Wimborne Minster tower. https://research.swtch.com/qart > nginx location selection algorithm is a little hard to grok at first The key thing I found, especially compared to Apache, is the linear order of rules in the file is not the order of execution. Instead, they're sorted first by type, and then file order. It can help to order them this way in the file. Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] nginx Setup / Configuration
On 20 February 2017 at 09:39, Terry Coleswrote: > On Sunday, 19 February 2017 21:55:52 GMT Ralph Corderoy wrote: > > AKA Apache does some brain-damaged DWIM that just digs a deeper hole > > when the magic isn't apparent. :-) > > http://www.catb.org/jargon/html/D/DWIM.html > > :-) > > This comes under the heading of the road to good intentions > > It is possible to get nginx to match catch insensitively if you need to. You have to use a case-insensitive regex match. nginx location selection algorithm is a little hard to grok at first, but it's OK once you get used to it. There's a good, clear description at https://www.digitalocean.com/community/tutorials/understanding-nginx-server-and-location-block-selection-algorithms -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] nginx Setup / Configuration
On Sunday, 19 February 2017 21:55:52 GMT Ralph Corderoy wrote: > AKA Apache does some brain-damaged DWIM that just digs a deeper hole > when the magic isn't apparent. :-) > http://www.catb.org/jargon/html/D/DWIM.html :-) This comes under the heading of the road to good intentions Presumably this was done to compensate for Windows users who don't see a difference between lc and uc chars in a filename. The trouble is it hides errors that will bite the user in the b*m, ie me, when the code is ported to a different server. I really thought that it couldn't be a simple as filenames, because it worked on my domain. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR