Hi Shane, I had to turn on mod_negotiation in the httpd.conf to help resolve the .cgi on web requests. This has to do with MultiView.
I think that any .rb file not have the same base as a .cgi, but I wonder what Sam thinks. Regards, Dave > On Apr 29, 2019, at 3:13 PM, Shane Curcuru <a...@shanecurcuru.org> wrote: > > Can (should?) we update the web configuration to prefer *.cgi over *.rb > files, so that web users will automatically get mentors.cgi instead of > mentors.rb, for example? > > Alternately, what's the best way to include some common code within a > www/*/ directory that will be used by multiple files *in that > directory*? It seems using a shareddata.rb, and then require_relative > from other .cgi files (which does work). > > An example URL (requires login) that does not do the expected thing: > > https://whimsy.apache.org/members/mentors > > I have other functions that are more generic that I'll put into > lib/whimsy/asf, but the above example is only used in that dir. > > -- > > - Shane > Whimsy PMC > The Apache Software Foundation