Auto-indexing problem in Apache user directories.

Auto-indexing problem in Apache user directories.

Post by mfda.. » Fri, 25 Aug 2000 04:00:00



This is probably a simple problem, but I just don't have the Apache
experience
to know where I'm going wrong...

I'm having a little trouble with auto-indexing in user directories.  I
can
access the user directories like this: "http://hostname/~username/"
when there
is an index.html file in the directory, but if I rename the index.html
file,
I get an error like this:

Forbidden
You don't have permission to access /~username/ on this server.

I also have a cgi-directory set up under the .../username/public_html/
directory, and I can run Perl cgi scripts from the directory, so I
believe
I have the permissions set correctly on the .../username/public_html/
directory.

Any Ideas?

Below is a segment of my httpd.conf file, and some of the information
from
server-info:

<IfModule mod_userdir.c>
    UserDir public_html
    UserDir disabled root
</IfModule>

<Directory "/home/*/public_html">
    Options Indexes FollowSymLinks MultiViews
</Directory>

Server Settings, mod_setenvif.c, mod_auth.c, mod_access.c,
mod_rewrite.c, mod_al
ias.c, mod_userdir.c, mod_actions.c, mod_imap.c, mod_asis.c,
mod_cgi.c, mod_dir.
c, mod_autoindex.c, mod_include.c, mod_info.c, mod_status.c,
mod_negotiation.c,
mod_mime.c, mod_log_config.c, mod_env.c, http_core.c
--------------------------------------------------------------------------------
Server Version: Apache/1.3.12 (Unix)
Server Built: Aug 24 2000 10:05:26
API Version: 19990320:7
Run Mode: standalone
User/Group: httpd(-3)/-3
Daemons: start: 5    min idle: 5    max idle: 10    max: 150
Max Requests: per child: 0    keep alive: on    max per connection:
100
Threads: per child: 0
Excess requests: per child: 0
Timeouts: connection: 300    keep-alive: 15
Server Root: /webserver
Config File: conf/httpd.conf
PID File: /webserver/logs/httpd.pid
Scoreboard File: /webserver/logs/httpd.scoreboard

 
 
 

Auto-indexing problem in Apache user directories.

Post by mfda.. » Sat, 26 Aug 2000 04:00:00


I figured it out, although it doesn't make much sense to me...
I changed the stanze in httpd.conf from:

<Directory "/home/*/public_html">
    Options Indexes FollowSymLinks MultiViews
</Directory>

to:

</Directory>><Directory "/u/*/public_html">
    Options Indexes FollowSymLinks MultiViews
</Directory>

and now it works - I get an automatically generated index.

The /u is actually a symbolic link to the real /home directory, so I
would think that using /home would be more correct, but that didn't
work.  

-mark-


>This is probably a simple problem, but I just don't have the Apache
>experience
>to know where I'm going wrong...

>I'm having a little trouble with auto-indexing in user directories.  I
>can
>access the user directories like this: "http://hostname/~username/"
>when there
>is an index.html file in the directory, but if I rename the index.html
>file,
>I get an error like this:

>Forbidden
>You don't have permission to access /~username/ on this server.

>I also have a cgi-directory set up under the .../username/public_html/
>directory, and I can run Perl cgi scripts from the directory, so I
>believe
>I have the permissions set correctly on the .../username/public_html/
>directory.

>Any Ideas?

>Below is a segment of my httpd.conf file, and some of the information
>from
>server-info:

><IfModule mod_userdir.c>
>    UserDir public_html
>    UserDir disabled root
></IfModule>

><Directory "/home/*/public_html">
>    Options Indexes FollowSymLinks MultiViews
></Directory>

<SNIP>

 
 
 

1. error 403 for auto indexed directories

I have apache 1.3.9 installed under Solaris 2.7. Everything I can see
tells me that I should be able to auto-index directories that have no
"index.html" file. The autoindex module is loaded. I explicitly have put
a directive in .htaccess "IndexOptions FancyIndexing" yet I get a 403
error. The log reports "Directory index forbidden by rule". Any clues??

2. any recommendations? (backup, queue)

3. Problems w/ Directory Indexing and Basic Auth in apache 2.0

4. unique identifier for binary compatibility similar to uname

5. auto index user subdirectory?

6. RTL8113

7. netscape communications server & auto-indexing

8. YA getty ?

9. auto-indexing

10. listing a directory with an index.html (even with DirectoryIndex index.html)

11. User configuration of the way server displays a directory index

12. Display Directory in Apache with index.html?

13. Apache Permissions, Directory Indexes, Script Alias