Hello! I have a configuration (apache 2.2, soon 2.4) which basically is
<VirtualHost 10.1.2.3:80> DocumentRoot /var/www <Location /server-status> SetHandler server-status </Location> <Directory /var/www/> RewriteEngine On RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} </Directory> </VirtualHost> (of course there is another VirtualHost on port 443) I want to redirect all requests for _filesystem_ objects to a secure connection, but the non-filesystem object served via a handler should be available unencrypted. (FYI: I use the server-status for health check by a loadbalancer, but the documents are protected by shibboleth) However, also requests for /server-status get redirected :( Documentation says "Enclose a group of directives that apply only to the named file-system directory, sub-directories, and their contents." Cleary /server-status is not within /var/www ... My naive imagination would be that apache performs a url-to-filesystem- path conversion, and only if the outcome really is a directory or a file, then applies the corresponding directives. Either this is not the case, or I'm missing something completly :( There is a hidden hint in the docs for RewriteCond: "REQUEST_FILENAME The full local filesystem path to the file or script matching the request, if this has already been determined by the server at the time REQUEST_FILENAME is referenced. Otherwise, such as when used in virtual host context, the same value as REQUEST_URI. Depending on the value of AcceptPathInfo, the server may have only used some leading components of the REQUEST_URI to map the request to a file." After reading this, I tried RewriteCond "%{LA-U:REQUEST_FILENAME}" "/var/www/.*" with no effect :( Is there anybody familiar enough with how apache's working to explain what's happening here? Or better yet, does somebody have any idea how to accomplish what I'm seeking to do, i.e. redirecting all filesystem objects while leaving alone all "virtual" URLs? TIA, Andy -- Andreas Ley, SCC, Karlsruhe Institute of Technology (KIT), D-76128 Karlsruhe E-Mail: andreas....@kit.edu, Telephone: +49 721 608 46341, Fax: +49 721 32550 From the home of the imaginary deadlines: "It will take 2i weeks to do that project." -- Michael Sinz --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org