[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: index.html



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, May 01, 2017 at 11:55:49AM -0400, Tony Baldwin wrote:
> 
> On 04/30/2017 08:26 PM, Gene Heskett wrote:
> >Greetings;
> >
> >Imagine my surprise when I looked at /var/www/html/index.html,
> >and found that somehow, it was native to a PCLos install I was running
> >half a decade or more ago!
> >
> >Now, do we have a script that will rebuild a new index.html for the
> >defined root of the server, and which WILL access the /var/www/html/gene
> >directory? This should restore the whole site to http compatibility.
> >
> >Right now, with out without that file, the subdir "gene" isn't
> >accessible.  Cannot be found is the message.
> >
> >Cheers, Gene Heskett
> >
> 
> nope. You've got to write or create your own index, unless you
> install something that generates one, such as dokuwiki, or
> wordpress, or any of a myriad of other CMS, (micro)blogging, social
> networking, or wiki platforms, forums or gallerys...the
> possibilities are nearly endless.
> 
> If you just want to list the directories contents, try putting in an
> index.php with something like this in it [...]

Or there is the

  Options +Indexes

for the Apache config [1]. You can fine-tune how the index itself
is rendered via the IndexOptions directive [2].

This would be a more lightweight, yet less flexible approach.

Note that you'll have to make sure that your clients don't see
things you don't want them to see (but this applies even more
strongly to a scripting solution, like the PHP example offered)

regards
[1] https://httpd.apache.org/docs/2.2/mod/core.html#options
[2] https://httpd.apache.org/docs/2.2/mod/mod_autoindex.html#indexoptions

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlkHYRsACgkQBcgs9XrR2kb4nQCdHtUVN0AbRUmh7CkbLyHKeVxf
QbEAnAroaZ3MhCFoEv82gzsDUhFSGL4v
=37ag
-----END PGP SIGNATURE-----


Reply to: