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


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

Re: Any Apache Experts?

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.os.linux.advocacy, comp.os.linux.misc
Subject Re: Any Apache Experts?
Date 2026-03-05 15:00 +0000
Organization A little, after lunch
Message-ID <10oc5rc$3s8ht$4@dont-email.me> (permalink)
References <1899f68f4c9aa8b1$621$1845414$802601b3@news.usenetexpress.com> <10oc5j4$3sksp$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


On 05/03/2026 14:56, Robert Heller wrote:
> "ERROR 403: Forbidden." more correctly means that the files are not "readable"
> by the httpd process. Depending on the distro, this could be because the files
> (or the directory they are in) are not owned by www-data (or whatever user the
> httpd runs as) or you have selinux installed and enabled and the files are not
> in an directory enabled for web access (eg with the proper selinux ACL). Or
> the files lack read access -- the file don't actually need to be owned by the
> user the httpd process runs under, so long as they and their parent
> directories have read access (the directories just need execute access to
> allow traversal). If the files/directories have a different group or owner,
> they need the proper group or world read/execute access. The MIME type only
> matters if that is needed for proper interpretation by the browser is an
> issue, but lacking a proper MIME type won't cause a 403 error. There *could*
> be issues if the files are symlinks and the FollowSymLinks Option is missing
> from <Directory> elements.
> 
Yes. It's a permissions, not a 'I can't understand the type' error.
Check to see who owns the files and what the perms are.

I think I fixed something like this by making the directory have the 
sticky bit set and the group www

> At Thu, 05 Mar 2026 13:57:03 +0000 Farley Flud <ff@gnulinux.rocks> wrote:
> 
>>
>> My personal website, hosted on a Linux server using Apache,
>> contains some files with a "cs" extension:
>>
>> file.cs
>>
>> When visitors attempt to access those files they receive
>> a 403 error:
>>
>> ERROR 403: Forbidden.
>>
>>
>> The solution should be to add a "cs" MIME type to the
>> Apache .htaccess file in the root directory:
>>
>> AddType application/octet-stream cs
>>
>> But when I do this the 403 error still occurs.
>>
>> As temporary workaround I have added the "txt" extension
>> to each "cs" file:
>>
>> file.cs.txt
>>
>> This allows regular access but I would rather not do this
>> as these files are not actually human-readable.
>>
>> Is there a way to instruct Apache to permit access to these
>> files?
>>
>>
>>
>>
> 

-- 
There’s a mighty big difference between good, sound reasons and reasons 
that sound good.

Burton Hillis (William Vaughn, American columnist)

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