On Thu, 5 Mar 2026 21:04:53 -0000 (UTC), Robert Heller wrote:
The Help staff of your web hosting service are idiots.
I could get better help if I were to pay for the premium service
but this problem is not critical.
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?
The owner and group of every file on the website, and not just the .cs files, are "root."OK, there is something "weird" going on. Do you have the site config files? (The file with <VirtualHost *:443>
FWIW, you can use the following wget commands to access the .cs files and
the .cs.txt files. Both files are in the same directory with the same permissions:
wget http://lapiet.info/mathphys/diffgeo/diffgeo1/geomview/monkey_Saddle-parabola-curve.cs
wget http://lapiet.info/mathphys/diffgeo/diffgeo1/geomview/monkey_Saddle-parabola-curve.cs.txt
The first command will report 403 and the second will download the file
with no problem.
The files are identical except for the file name extensions.
Then you should be adding a line like:
AddType text/tcl cs
to .htaccess
I've tried:AddType text/x-tcl cs
AddType application/x-tcl cs
AddType text/x-script.tcl cs
Neither work.
I suspect that the Apache server at the web host is not configured
properly,
wgethttp://lapiet.info/mathphys/diffgeo/diffgeo1/geomview/monkey_Saddle-parabola-curve.cs
wgethttp://lapiet.info/mathphys/diffgeo/diffgeo1/geomview/monkey_Saddle-parabola-curve.cs.txt
The first command will report 403 and the second will download the file
with no problem.
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?
OK, there is something "weird" going on.
Do you have the site config files?
(The file with <VirtualHost *:443>
ServerName lapiet.info
..
</VirtualHost>
Partitularly, the <Directory ...> ... </Directory> lines. There is some fishy
with the various options and settings there,
AddType text/x-tcl cs
*OR*
AddType text/plain cs
Typically .cs files are csharp files O i assume you're doing some kind
of programming or wanting to show programming files, but not sure.
What is it you're actually trying to accomplish? Simply display source
code in your website?
Given its you, I simply do not believe you
This particular "cs" extension is the only one that gives
me problems. I have, for example, files with a "wxmx"
extension that has no official MIME type, yet visitors
can download the wxmx files without problem.
I'm no expert, just muddling through and grateful when things work. But
I *do* know that apache has comprehensive url remapping. Might a .cs url
be remapped to something else that isn't an existing file?
My personal website, hosted on a Linux server using Apache,...
contains some files with a "cs" extension:
file.cs
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.
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?
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.
But I have given up trying to solve this.
Thanks to all for the advice.
Let me first state that my background in network programming is very
limited.
That is why I have posted this issue here.
However, this is not a critical issue and since no easy fix seems possible
I am willing to consider it closed.
On Fri, 6 Mar 2026 14:11:07 -0000 (UTC), fregas wrote:
Typically .cs files are csharp files O i assume you're doing some kind
of programming or wanting to show programming files, but not sure.
What is it you're actually trying to accomplish? Simply display source code in your website?
These cs files are for the visitor to download to his machine and then
load into his local software so as to duplicate the results that are
shown on the website.
But I have given up trying to solve this.
Thanks to all for the advice.
Anyway, it's part of the default Apache 2 configuration to treate
.cs files as a different language.
Anyway, tell your provider to remove that line from mods-available, and
it will work right.
On Fri, 06 Mar 2026 22:34:53 +0000, vallor wrote:
Anyway, it's part of the default Apache 2 configuration to treate
.cs files as a different language.
So why should that generate a "permission denied" error. Any file
should just be delivered when requested.
Anyway, tell your provider to remove that line from mods-available,
and it will work right.
YOU tell them.
Their response to me was as follows:
"That is normal. You would need to add a Mime Type in cPanel for cs to
the appropriate file type."
It's their server and I am not going to be a pest.
Typically .cs files are csharp files O i assume you're doing some kind
of programming or wanting to show programming files, but not sure.
P.S.: Only a clueless newbie or a troll would ask such a question on .advocacy. Since know that the OP is not the former, this leaves
just one alternative.
P.S.: Only a clueless newbie or a troll would ask such a question
on .advocacy. Since know that the OP is not the former, this leaves just
one alternative.
On Fri, 6 Mar 2026 11:16:21 +0000, The Natural Philosopher wrote:
Given its you, I simply do not believe you
Do not place blame on others for your obviously sheltered
and limited upbringing.
So why should that generate a "permission denied" error. Any file
should just be delivered when requested.
No, because it's trying to retrieve from a different part of the
server, that part set aside for .cs files. But that's not configured,
so instead of telling them "file not found" (and disclosing the
non-existence of the directory", it gives you a generic "forbidden".
It's their server and I am not going to be a pest.
Is it "a pest" to get your web site working they way you want it?
Also: you cut off my suggestion that you get your own web server,
and stop using a hosting service. Or are you not a he-man Linux user?
Finally, a question: Why would you refer to Apache server configuration
as "network programming"?
ROFLMAO!
Well he is a well known clueless newbie and a well known troll ...
P.S.: Only a clueless newbie or a troll would ask such a question
on .advocacy. Since know that the OP is not the former, this leaves just
one alternative.
On Sat, 07 Mar 2026 02:54:02 +0000, vallor wrote:
So why should that generate a "permission denied" error. Any file
should just be delivered when requested.
No, because it's trying to retrieve from a different part of the
server, that part set aside for .cs files. But that's not
configured, so instead of telling them "file not found" (and
disclosing the non-existence of the directory", it gives you a
generic "forbidden".
If that is indeed what is happening then it should be possible
override the behavior locally through the .htaccess file. That's the
purpose of the .htaccess file.
I sure as hell don't have access to the main Apache config file and
the administrators who do sure as hell aren't going to modify it on
my command.
It's their server and I am not going to be a pest.
Is it "a pest" to get your web site working they way you want it?
The arrangement is basically self-service.
One does not enter a
self-service establishment and expect the clerks, who have other responsibilities, to wait on him. "Self service" means that if you
want it then you find it, you bag it, you pay for it, and you leave
-- and if you should fall down in the process then you pick yourself
up.
Also: you cut off my suggestion that you get your own web server,
and stop using a hosting service. Or are you not a he-man Linux
user?
Ha, ha, ha, ha, ha, ha, ha!
Just to start, I'd need to obtain my own IP address, both IPv4 and
IPv6, as well as a direct line to the "backbones."
Then, a single server is not enough, there has to be a second backup
server located elsewhere to ensure uninterrupted access.
Already I am WAY over budget.
Furthermore, the administration thereof would severely cut into my
time for content creation and it is the content that is the goal.
Boy are you dumb! Ha, ha, ha, ha!
Finally, a question: Why would you refer to Apache server
configuration as "network programming"?
Ha, ha, ha, ha! Does Apache grow on a tree?
The "network" is not just the wires between client and server but it
also includes the client and server.
Boy are you dumb! Ha, ha, ha, ha!
On Sat, 7 Mar 2026 06:24:02 -0000 (UTC), Marc Haber wrote:
P.S.: Only a clueless newbie or a troll would ask such a question
on .advocacy. Since know that the OP is not the former, this leaves just one alternative.
Only an incompetent ASSHOLE would ever bother to respond to whatMy boy you need to calm down. Once you are fully relaxed,
he stupidly believes is a "troll."
Your brain more than obviously lacks the intrinsic chaos of true intelligence.
Your stupid brain cannot even comprehend the excruciating insult
embodied within the previous statement.
You will forever seek safety among your own stupid kind.
My boy, you
need to get laid because the semen has backed up all the
way from your balls to your brain
On Sat, 07 Mar 2026 02:54:02 +0000, vallor wrote:
I sure as hell don't have access to the main Apache config file and
the administrators who do sure as hell aren't going to modify it on
my command.
Also: you cut off my suggestion that you get your own web server,
and stop using a hosting service. Or are you not a he-man Linux user?
Just to start, I'd need to obtain my own IP address, both IPv4 and IPv6,
as well as a direct line to the "backbones."
Then, a single server is not enough, there has to be a second backup
server located elsewhere to ensure uninterrupted access.
Already I am WAY over budget.
Furthermore, the administration thereof would severely cut into my time
for content creation and it is the content that is the goal.
Boy are you dumb!
Finally, a question: Why would you refer to Apache server configuration
as "network programming"?
Does Apache grow on a tree?
The "network" is not just the wires between client and server but it also includes the client and server.
Boy are you dumb!
If that is indeed what is happening then it should be possible
override the behavior locally through the .htaccess file. That's the
purpose of the .htaccess file.
And someone told you yesterday what to put in your .htaccess
file.
They are wise.
This group is for GNU/Linux advocacy.
| Sysop: | DaiTengu |
|---|---|
| Location: | Appleton, WI |
| Users: | 1,099 |
| Nodes: | 10 (0 / 10) |
| Uptime: | 492377:30:12 |
| Calls: | 14,106 |
| Calls today: | 2 |
| Files: | 187,124 |
| D/L today: |
2,219 files (1,005M bytes) |
| Messages: | 2,496,204 |