On Nov 1, 2007 8:13 PM, Jon Forrest <jlforrest@xxxxxxxxxxxx> wrote: > (This is on Solaris 10-x86 with Apache 2.2.4) > > When I give the URL > > 1) http://www-demo.cchem.berkeley.edu/username/public_html > > everything works fine. However, for historical reasons, > I can't require that people give the "/public_html" at > the end of the URL. In other words, I want users to > be able to enter > > 2) http://www-demo.cchem.berkeley.edu/username/ > > to see the same results as produced by URL #1 . > So, I decided to try mod_rewrite. I use the following > in the proper VirtualHost section of my httpd.conf file: > > RewriteLogLevel 5 > RewriteLog "/users/chemweb/apache2/logs/rewrite.log" > RewriteEngine on > RewriteRule ^(.+)$ $1/public_html/ [L] > > This doesn't work. The client sees a "403 Forbidden" message. > The apache log says: > > "Directory index forbidden by Options directive: > /users/chemweb/apache2/http-cchem/htdocs/username/public_html/" > > I don't understand why I'm getting this message when > URL #1 above works. Likely because your Options directive is applied by-url rather than by-directory. You need <Directory /full/path/to/userdirectories/*/public_html> Options +Indexes </Dirctory> Or you need to find the Options directive that currently applies to those directories and add Indexes. 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx