Re: Very Puzzling Question About mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Joshua Slive wrote:

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.

Thanks. After doing what you suggest I can see a directory
listing of http://www-demo.cchem.berkeley.edu/username/ which
shows the index.html file. However, if I click on index.html
I get a "404 Not Found" error, and the error log says

File does not exist: /users/chemweb/apache2/http-cchem/htdocs/username/index.html

The rewrite log says:

(2) init rewrite engine with requested uri /username/index.html
 (3) applying pattern '^(.+)$' to uri '/username/index.html'
 (2) rewrite '/username/index.html' -> '/username/index.html/public_html/'
 (2) local path result: /username/index.html/public_html/
(2) prefixed with document_root to /users/chemweb/apache2/http-cchem/htdocs/username/index.html/public_html/

I don't think the rewrite rule I'm using is correct.

Cordially,
--
Jon Forrest
Unix Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforrest@xxxxxxxxxxxx

---------------------------------------------------------------------
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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux