You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben Gardiner <be...@gmail.com> on 2005/10/24 19:31:04 UTC

[users@httpd] Flag to enable reading plain ASCII

Among the many flags in httpd.conf I cannot figure out what would
enable the server to read both HTML and plain ASCII.  This is pretty
basic but I have not done it before -- somebody else did it, at a
previous site, and is no longer available to tell me how.

Can anyone tell me which flag to open and what to say or change?

Ben
--
From:  Ben Gardiner
Return address:  bengard@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Flag to enable reading plain ASCII

Posted by Joshua Slive <js...@gmail.com>.
On 10/27/05, Ben Gardiner <be...@gmail.com> wrote:
> Thanks, Nick, for the suggestion.  I did that.  And callers still
> get the terrible "Forbidden - you don't have permissions to access
> /(file)"

The important thing is the error log.  If you are still getting
"directory index forbidden by rule", then you haven't properly
configured your Options directives in httpd.conf.  See:
http://httpd.apache.org/docs/1.3/misc/FAQ.html#options

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Flag to enable reading plain ASCII

Posted by Ben Gardiner <be...@gmail.com>.
Thanks, Nick, for the suggestion.  I did that.  And callers still
get the terrible "Forbidden - you don't have permissions to access
/(file)"

I have doublechecked the permissions, all the way from the root
to the domain, as well as all the directories.  As overkill, I set
directories drwxrwxrwx and files -rwxr-xr-x all the way to the end
files mentioned on the error reports.  Still no luck.

What should I do?  Any help would be much appreciated.  There
must be others who have this combination of .html files and plain
ascii files.  All my plain ascii files are now grouped under a single
directory  (called "bbs") on the same level with the primary .html
files.

If anyone else has a similar mixture please email me privately
at bengard@gmail.com for a detailed discussion of permissions.
You can tell by the fact that this was once a BBS that I have been
doing it a while.  But Apache is all new to me.

Please help.

Ben

On 10/25/05, Nick Kew <ni...@webthing.com> wrote:
> Ben Gardiner wrote:
> > The Apache error_log tells me, on many lines,
> > "Directory index forbidden by rule."
>
> That's just Options +indexes you need.  Nothing to do with
> "plain ASCII" (directory indexes are HTML and normally in
> the default charset of the server).
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


--
From:  Ben Gardiner
Return address:  bengard@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Flag to enable reading plain ASCII

Posted by Nick Kew <ni...@webthing.com>.
Ben Gardiner wrote:
> The Apache error_log tells me, on many lines,
> "Directory index forbidden by rule."

That's just Options +indexes you need.  Nothing to do with
"plain ASCII" (directory indexes are HTML and normally in
the default charset of the server).

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Flag to enable reading plain ASCII

Posted by Ben Gardiner <be...@gmail.com>.
The Apache error_log tells me, on many lines,
"Directory index forbidden by rule."  The directories mentioned
are all deep in the database, indicating that they come from a
search engine's stored data because no one today can go that
deep into the database, though it used to be visible and
visitable when the engines stored the records.

How can I make the rule change to permit access to the
directory index?  It was done before, but not by me, and I
am unable to contact the person who did it.

Without this access, the page which was getting several
thousand hits a day is now almost useless.

Thanks for any help.

Ben

On 10/24/05, Joshua Slive <js...@gmail.com> wrote:
> On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
> >
> > On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
> > > Thanks, Joshua, for responding.  I haven't *done* anything yet.  What
> > > I want is for callers to be able to read both .html files and plain
> > > ascii.  I have about 16,000 plain ascii files (from ages ago when it
> > > was a BBS) which were readable at the previous site.
> > >
> > > I moved everything to godaddy, where I have a virtual dedicated
> > > server.  And now the caller gets an error message "You don't have the
> > > pemissions to read (name of file or directory/file)"  I have checked
> > > the permissions, they are all readable by outsiders.
> > >
>
> First thing to do is check the apache error log.  It will tell you
> what the problem is.
>
> As I mentioned earlier, apache does not inherently treat text files
> any different from html (other than sending a different Content-Type
> header).
>
> Joshua.
>


--
From:  Ben Gardiner
Return address:  bengard@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Flag to enable reading plain ASCII

Posted by Joshua Slive <js...@gmail.com>.
On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
>
> On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
> > Thanks, Joshua, for responding.  I haven't *done* anything yet.  What
> > I want is for callers to be able to read both .html files and plain
> > ascii.  I have about 16,000 plain ascii files (from ages ago when it
> > was a BBS) which were readable at the previous site.
> >
> > I moved everything to godaddy, where I have a virtual dedicated
> > server.  And now the caller gets an error message "You don't have the
> > pemissions to read (name of file or directory/file)"  I have checked
> > the permissions, they are all readable by outsiders.
> >

First thing to do is check the apache error log.  It will tell you
what the problem is.

As I mentioned earlier, apache does not inherently treat text files
any different from html (other than sending a different Content-Type
header).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Fwd: [users@httpd] Flag to enable reading plain ASCII

Posted by Ben Gardiner <be...@gmail.com>.
---------- Forwarded message ----------
From: Joshua Slive <js...@gmail.com>
Date: Oct 24, 2005 12:41 PM
Subject: Re: [users@httpd] Flag to enable reading plain ASCII
To: bengard@gmail.com


Please send your message to the list.

Thanks.

Joshua.

On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
> Thanks, Joshua, for responding.  I haven't *done* anything yet.  What
> I want is for callers to be able to read both .html files and plain
> ascii.  I have about 16,000 plain ascii files (from ages ago when it
> was a BBS) which were readable at the previous site.
>
> I moved everything to godaddy, where I have a virtual dedicated
> server.  And now the caller gets an error message "You don't have the
> pemissions to read (name of file or directory/file)"  I have checked
> the permissions, they are all readable by outsiders.
>
> Next thing, I thought, is to re-configure the Apache server to clear
> up the problem.  I have not done anything (yet) to the Apache
> configuration.
>
> My question is what do I need to do in order to enable callers to read
> the plain ascii files?  Is this something that Apache can do, or is my
> problem in another area?
>
> It used to work, and work fine.  What the caller saw was a page of
> directories, and clicking on any of them would produce a subpage of
> either files or directories.  (I mean only the names.  The caller had
> to click on a name to get the actual file.)
>
> I was assuming that the error message about permissions meant that
> httpd was unable to deliver the file or move  the caller to the
> directory.
>
> The permissions are _rwxr_xr_x on the files, and
> drwxrwxrwx on the directories.  Am I wrong about those permission settings?
>
> Any help would be much appreciated.  The page was getting 5,000-10,000
> hits a day in the past.
>
> Ben
>
> On 10/24/05, Joshua Slive <js...@gmail.com> wrote:
> > On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
> > > Among the many flags in httpd.conf I cannot figure out what would
> > > enable the server to read both HTML and plain ASCII.  This is pretty
> > > basic but I have not done it before -- somebody else did it, at a
> > > previous site, and is no longer available to tell me how.
> > >
> > > Can anyone tell me which flag to open and what to say or change?
> >
> > Nothing needs to be changed.  Apache doesn't care about the contents of files.
> >
> > Perhaps if you explained exactly what you tried and exactly what the
> > result was, we could better help. It always helps to include relevant
> > log extracts.
> >
> > Joshua.
> >
>
>
> --
> From:  Ben Gardiner
> Return address:  bengard@gmail.com
>


--
From:  Ben Gardiner
Return address:  bengard@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Flag to enable reading plain ASCII

Posted by Joshua Slive <js...@gmail.com>.
On 10/24/05, Ben Gardiner <be...@gmail.com> wrote:
> Among the many flags in httpd.conf I cannot figure out what would
> enable the server to read both HTML and plain ASCII.  This is pretty
> basic but I have not done it before -- somebody else did it, at a
> previous site, and is no longer available to tell me how.
>
> Can anyone tell me which flag to open and what to say or change?

Nothing needs to be changed.  Apache doesn't care about the contents of files.

Perhaps if you explained exactly what you tried and exactly what the
result was, we could better help. It always helps to include relevant
log extracts.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org