RomanOnARiver,
@RomanOnARiver@mastodon.social avatar

Hey web developers, this may seem like a dumb question, but when I was a young warthog you would link to a directory (just a simple "a href"), and if that directory had an index.html page it would assume that's what you wanted. Now I'm just getting one of those "Index of" pages (with that index.html page visible!) is it because it's running locally instead of a proper web server? Has this just overall changed and I didn't know?

fabian,
@fabian@floss.social avatar

@RomanOnARiver Yeah, that's totally up to the webserver. There is no concept in HTTP (afaik) of "serving a directory". HTTP is text-in, text-out. If you "browse" your filesystem locally with your browser, then it will likely list the directory. If you use a webserver it depends on its configuration. Yes, serving index.html when accessing a /my/directory/ "path" might be a default, but doesn't have to be.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • khanakhh
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • mdbf
  • Youngstown
  • cisconetworking
  • slotface
  • rosin
  • thenastyranch
  • ngwrru68w68
  • kavyap
  • ethstaker
  • JUstTest
  • tacticalgear
  • modclub
  • cubers
  • Leos
  • everett
  • GTA5RPClips
  • Durango
  • anitta
  • normalnudes
  • provamag3
  • tester
  • megavids
  • lostlight
  • All magazines