Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #180579

Re: index.html

From <tomas@tuxteam.de>
Newsgroups linux.debian.user
Subject Re: index.html
Date 2017-05-01 18:30 +0200
Message-ID <tCmn0-2Xx-23@gated-at.bofh.it> (permalink)
References <tC7nX-1Ja-1@gated-at.bofh.it> <tClTY-2yI-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


-----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-----

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

index.html Gene Heskett <gheskett@shentel.net> - 2017-05-01 02:30 +0200
  Re: index.html Tony Baldwin <tonybaldwin@gmx.com> - 2017-05-01 18:00 +0200
    Re: index.html Greg Wooledge <wooledg@eeg.ccf.org> - 2017-05-01 18:20 +0200
    Re: index.html <tomas@tuxteam.de> - 2017-05-01 18:30 +0200
    Re: index.html Gene Heskett <gheskett@shentel.net> - 2017-05-01 19:20 +0200

csiph-web