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/27 21:23:16 UTC

[users@httpd] Combination of plain and html

Hi Users --

I am new at Apache but a veteran from the BBS days.  So I have a
combination of html files and plain ascii.

Does anyone else have that combination?

I am trying, so far without success, to set up httpd.conf to permit
callers to access the plain ascii files.  I don't really know diddly
squat about httpd.conf and am hoping that someone who has this
combination of files can tell me how to set the <Directory notes and
where to put them in that httpd.conf file.

And yes, I have read the documentation -- and got even more confused.

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] Combination of plain and html

Posted by Tom Cat <st...@gmail.com>.
This sounds more like it could be an SELinux problem too.

Check out this page for how to deal with both possible causes:
http://www.slingcode.com/apache.php

On 10/28/05, Ben Gardiner <be...@gmail.com> wrote:
> I did as suggested, and still get one kind of error I can't understand.
> Here is the complete line as it appears in the error_log, except that
> the client identity is X'd out:
>
> [Fri Oct 28 06:42:19 2005] [error] [client XX.XXX.XX.XX]  Directory
> index forbidden by rule:
> /home/httpd/vhosts/aidsinfobbs.org/httpdocs/articles/
>
> There are others of the same format and message, that refer to other
> directories.  All such data directories are drwxrwxrwx since 2 days
> ago.
>
> Callers can access a certain datafile within that directory if the
> name of it is known and appended to the directory name, but they
> cannot access the directory itself for browsing, nor can they see the
> file names in it.
>
> Ben
>
> On 10/27/05, Joshua Slive <js...@gmail.com> wrote:
> > On 10/27/05, Ben Gardiner <be...@gmail.com> wrote:
> >
> > > Acting as a caller, I can indeed reach a specific ascii file, but I cannot
> > > reach the intervening directory.  My hope was to contact someone who
> > > has the combination same as mine (some html and some ascii) in order
> > > to privately ask what should be my settings.
> >
> > As has been said about a half-dozen times, html and ascii has nothing
> > to do with it.
> >
> > Here's what you do next:  Open up httpd.conf in an editor (and any
> > other config files that apache may be using depending on your OS).
> > Search through this file for every instance of the Options directive
> > and make sure that every single one of them includes "Indexes" in the
> > list of options.  Then restart apache.
> >
> > If it still doesn't work, tell us exactly what URL you are trying, and
> > exactly what happens when you try it, including the EXACT contents of
> > the error log.
> >
> > 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
> >
> >
>
>
> --
> 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
>
>

---------------------------------------------------------------------
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] Combination of plain and html

Posted by Joshua Slive <js...@gmail.com>.
On 10/28/05, Ben Gardiner <be...@gmail.com> wrote:
> I did as suggested, and still get one kind of error I can't understand.
> Here is the complete line as it appears in the error_log, except that
> the client identity is X'd out:
>
> [Fri Oct 28 06:42:19 2005] [error] [client XX.XXX.XX.XX]  Directory
> index forbidden by rule:
> /home/httpd/vhosts/aidsinfobbs.org/httpdocs/articles/
>
> There are others of the same format and message, that refer to other
> directories.  All such data directories are drwxrwxrwx since 2 days
> ago.

File permissions on the directories have nothing to do with it.  The
problem is still the lack of "Indexes" on one of your Options
directives.

Do the following:

1. Add this to the bottom of httpd.conf and restart apache:
<Location />
Options +Indexes
</Location>

2. To find out where the original problem is run
grep Options httpd.conf
and also
grep Include httpd.conf
and then run grep Options on each file that is Included by httpd.conf.

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] Combination of plain and html

Posted by Ben Gardiner <be...@gmail.com>.
I did as suggested, and still get one kind of error I can't understand.
Here is the complete line as it appears in the error_log, except that
the client identity is X'd out:

[Fri Oct 28 06:42:19 2005] [error] [client XX.XXX.XX.XX]  Directory
index forbidden by rule:
/home/httpd/vhosts/aidsinfobbs.org/httpdocs/articles/

There are others of the same format and message, that refer to other
directories.  All such data directories are drwxrwxrwx since 2 days
ago.

Callers can access a certain datafile within that directory if the
name of it is known and appended to the directory name, but they
cannot access the directory itself for browsing, nor can they see the
file names in it.

Ben

On 10/27/05, Joshua Slive <js...@gmail.com> wrote:
> On 10/27/05, Ben Gardiner <be...@gmail.com> wrote:
>
> > Acting as a caller, I can indeed reach a specific ascii file, but I cannot
> > reach the intervening directory.  My hope was to contact someone who
> > has the combination same as mine (some html and some ascii) in order
> > to privately ask what should be my settings.
>
> As has been said about a half-dozen times, html and ascii has nothing
> to do with it.
>
> Here's what you do next:  Open up httpd.conf in an editor (and any
> other config files that apache may be using depending on your OS).
> Search through this file for every instance of the Options directive
> and make sure that every single one of them includes "Indexes" in the
> list of options.  Then restart apache.
>
> If it still doesn't work, tell us exactly what URL you are trying, and
> exactly what happens when you try it, including the EXACT contents of
> the error log.
>
> 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
>
>


--
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] Combination of plain and html

Posted by Joshua Slive <js...@gmail.com>.
On 10/27/05, Ben Gardiner <be...@gmail.com> wrote:

> Acting as a caller, I can indeed reach a specific ascii file, but I cannot
> reach the intervening directory.  My hope was to contact someone who
> has the combination same as mine (some html and some ascii) in order
> to privately ask what should be my settings.

As has been said about a half-dozen times, html and ascii has nothing
to do with it.

Here's what you do next:  Open up httpd.conf in an editor (and any
other config files that apache may be using depending on your OS). 
Search through this file for every instance of the Options directive
and make sure that every single one of them includes "Indexes" in the
list of options.  Then restart apache.

If it still doesn't work, tell us exactly what URL you are trying, and
exactly what happens when you try it, including the EXACT contents of
the error log.

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] Combination of plain and html

Posted by Ben Gardiner <be...@gmail.com>.
Sorry, I did not mean to reject the advice already given to me by starting
a new thread.  It is just that I have done what was suggested and it still
does not work.

Acting as a caller, I can indeed reach a specific ascii file, but I cannot
reach the intervening directory.  My hope was to contact someone who
has the combination same as mine (some html and some ascii) in order
to privately ask what should be my settings.

I did set the <Directory> note as someone suggested, but it doesn't work.

What is the "root" directory?  is it an absolute path, and if not, where does
it begin?  The absolute path to all the files is
/home/httpd/vhosts/aidsinfobbs.org/httpdocs

Should I set it like this:

<Directory /home/httpd/vhosts/aidsinfobbs.org/httpdocs>

Or should the ascii files all be gathered in a special directory under
the level ~httpdocs?  (This was not necessary bvfore, and would screw
up all references stored in search engines the past 10 years.)  If that
special diredtory were "bbs" I might then put

<Directory /bbs>   ?  But is it necessary?

Ben
(if I seem dumb or obstinate it is becasue I do not understand)

On 10/27/05, Joshua Slive <js...@gmail.com> wrote:
> On 10/27/05, Ben Gardiner <be...@gmail.com> wrote:
>
> > I am trying, so far without success, to set up httpd.conf to permit
> > callers to access the plain ascii files.  I don't really know diddly
> > squat about httpd.conf and am hoping that someone who has this
> > combination of files can tell me how to set the <Directory notes and
> > where to put them in that httpd.conf file.
> >
> > And yes, I have read the documentation -- and got even more confused.
>
> Ben, starting a new thread is not going to change the answer any.  We
> have told you several times that
>
> 1. The contents of the file has nothing to do with the problem.
>
> 2. The error log needs to be read every time you make a change.
>
> 3. Your problems seems to be the Options directive in httpd.conf.
>
> If there is something about that you don't understand, please ask a
> specific question.  Don't just go back to the beginning and repeat the
> stuff we've already discussed.
>
> 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
>
>


--
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] Combination of plain and html

Posted by Joshua Slive <js...@gmail.com>.
On 10/27/05, Ben Gardiner <be...@gmail.com> wrote:

> I am trying, so far without success, to set up httpd.conf to permit
> callers to access the plain ascii files.  I don't really know diddly
> squat about httpd.conf and am hoping that someone who has this
> combination of files can tell me how to set the <Directory notes and
> where to put them in that httpd.conf file.
>
> And yes, I have read the documentation -- and got even more confused.

Ben, starting a new thread is not going to change the answer any.  We
have told you several times that

1. The contents of the file has nothing to do with the problem.

2. The error log needs to be read every time you make a change.

3. Your problems seems to be the Options directive in httpd.conf.

If there is something about that you don't understand, please ask a
specific question.  Don't just go back to the beginning and repeat the
stuff we've already discussed.

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