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


Groups > linux.debian.user > #215340

Treate .sh and .bash the same way Apache2

From john doe <johndoe65534@mail.com>
Newsgroups linux.debian.user
Subject Treate .sh and .bash the same way Apache2
Date 2019-10-22 16:10 +0200
Message-ID <yU31f-Fv-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

I'm using Apache2 on Debian (Stretch 9) and trying to have the .bash
extension treated like the .sh extension:

For now, I have modified the file
/etc/apache2/mods-availables/autoindex.conf byt adding .bash to the
following line:

        AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl .bash


The file with the .bash extension is not treated like it is for .sh
(everything is working fine for the .sh), what am I missing?


In other words, how should Apache2 be configured to make no difference
between .sh and .bash extension.

Any help is welcome.

--
John Doe

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


Thread

Treate .sh and .bash the same way Apache2 john doe <johndoe65534@mail.com> - 2019-10-22 16:10 +0200
  Re: Treate .sh and .bash the same way Apache2 Dan Ritter <dsr@randomstring.org> - 2019-10-22 16:30 +0200
    Re: Treate .sh and .bash the same way Apache2 john doe <johndoe65534@mail.com> - 2019-10-22 16:30 +0200
      Re: Treate .sh and .bash the same way Apache2 Dan Ritter <dsr@randomstring.org> - 2019-10-22 17:20 +0200
        Re: Treate .sh and .bash the same way Apache2 john doe <johndoe65534@mail.com> - 2019-10-22 18:00 +0200
          Re: Treate .sh and .bash the same way Apache2 Kushal Kumaran <kushal@locationd.net> - 2019-10-23 04:00 +0200
            Re: Treate .sh and .bash the same way Apache2 john doe <johndoe65534@mail.com> - 2019-10-23 07:30 +0200

csiph-web