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


Groups > comp.os.linux.misc > #82432

Re: Any Apache Experts?

From Robert Heller <heller@deepsoft.com>
Newsgroups comp.os.linux.advocacy, comp.os.linux.misc
Subject Re: Any Apache Experts?
Date 2026-03-05 21:04 +0000
Organization Deepwoods Software
Message-ID <10ocr5l$4pkr$1@dont-email.me> (permalink)
References (1 earlier) <10oc5j4$3sksp$1@dont-email.me> <10oc5rc$3s8ht$4@dont-email.me> <1899fc71dfba9b30$774$1557799$802601b3@news.usenetexpress.com> <10ocirk$1o68$1@dont-email.me> <189a0af6f952e3b6$1157$2090784$802601b3@news.usenetexpress.com>

Cross-posted to 2 groups.

Show all headers | View raw


At Thu, 05 Mar 2026 20:10:59 +0000 Farley Flud <ff@gnulinux.rocks> wrote:

> 
> On Thu, 5 Mar 2026 18:43:00 -0000 (UTC), Robert Heller wrote:
> 
> >> 
> >> It can't be a permissions problem because I can just rename the files
> >> to add the "txt" extension without altering any permissions and then
> >> the files are accessible.
> > 
> > That makes no sense.  403 is specificly a permissions issue, never a MIME 
> > type.  Maybe something else is going on.  Are you defining a *handler* for .cs 
> > files?  If so it might be a problem with the *handler* and not the files 
> > themselves.
> > 
> 
> I first reported this problem to the Help staff at my web hosting service.
> They responded by telling me to use cPanel to add the MIME type for the "cs"
> extension.  cPanel just appends the line "AddType application/octet-stream cs"
> to the .htaccess file.  However, that solution did not work.

The Help staff of your web hosting service are idiots.  The 403 error has 
nothing to do with MIME types.  It is specificly about permissions.

> 
> The permissions on the relevant directories are 755 as they should be.
> The permissions on the files are 644 as they should be.

What about owner and group?

> 
> > 
> > Hmm... It might not really be a 403 error at all and something else is going 
> > on.  What *exactly* are these .cs files?
> > 
> 
> The complete error message that is shown in a browser is this:
> 
> Forbidden
> 
> You don't have permission to access this resource.
> 
> Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

This suggests that the owner, group, and persmissions of the Error Document 
are wrong...

> 
> 
> The .cs files are Tcl scripts that are modified to be used with
> a certain program.  They are basically text files that contain Tcl commands.
> 

Then you should be adding a line like:

AddType text/tcl cs

to .htaccess

But that should matter reguarding the 403 error.

What is the owner, group, and permissions of .htaccess?

> As I mentioned, I can rename the files to add the "txt" extension
> and the problem disappears.
> 
> But I am getting nowhere with this issue.  I'll just leave the workaround
> of renaming to txt in place.
> 
>                                                                                                                               
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-05 13:57 +0000
  Re: Any Apache Experts? Robert Heller <heller@deepsoft.com> - 2026-03-05 14:56 +0000
    Re: Any Apache Experts? The Natural Philosopher <tnp@invalid.invalid> - 2026-03-05 15:00 +0000
      Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-05 15:44 +0000
        Re: Any Apache Experts? Robert Heller <heller@deepsoft.com> - 2026-03-05 18:43 +0000
          Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-05 20:10 +0000
            Re: Any Apache Experts? Robert Heller <heller@deepsoft.com> - 2026-03-05 21:04 +0000
              Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-05 21:57 +0000
                Re: Any Apache Experts? Robert Heller <heller@deepsoft.com> - 2026-03-06 01:47 +0000
                Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-06 16:21 +0000
                Re: Any Apache Experts? The Natural Philosopher <tnp@invalid.invalid> - 2026-03-06 11:16 +0000
                Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-06 16:33 +0000
            Re: Any Apache Experts? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-05 22:10 +0000
            Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-05 22:19 +0000
              Re: Any Apache Experts? Robert Heller <heller@deepsoft.com> - 2026-03-06 02:07 +0000
                Re: Any Apache Experts? vallor <vallor@vallor.earth> - 2026-03-07 01:51 +0000
    Re: Any Apache Experts? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-03-05 20:59 +0000
      Re: Any Apache Experts? Richard Kettlewell <invalid@invalid.invalid> - 2026-03-05 22:47 +0000
  Re: Any Apache Experts? Farley Flud <ff@gnulinux.rocks> - 2026-03-06 16:30 +0000
    Re: Any Apache Experts? Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-03-06 21:23 +0000
    Re: Any Apache Experts? vallor <vallor@vallor.earth> - 2026-03-06 22:34 +0000

csiph-web