2

I'm developing a simple website with pure static html pages on my Mac. Before pushing to the server, I of course want to view the local html files in a browser. However, annoyingly clicking relative links to directories, e.g. foo/ does not open the corresponding foo/index.html within the browser. Instead, Mac's Finder app launches up to the foo/ directory. This happens in Safari, Chrome, and Firefox, so I guess it is a Mac issue. Is there a setting that would control this?

Ashish Agarwal
  • 3,000
  • 16
  • 18
  • what does your browser show if you type `http://localhost` – 000 Aug 27 '12 at 13:41
  • 1
    You'd have to have a webserver up and running, in order to configure it to disallow 'indexes' in a specific directory. – Taher Aug 27 '12 at 13:48
  • Going to `http://localhost` says `cannot connect`. I do not have a web server running. – Ashish Agarwal Aug 28 '12 at 22:11
  • You might find the discussion here about [running a simple http server](http://stackoverflow.com/questions/3800143/ad-hoc-webserver-for-static-files-on-unix-macosx) useful. – Juan A. Navarro Aug 07 '13 at 14:09

0 Answers0