Hey Y'all,
The following is an Alias within a VirtualServer directive. Both the VirtualServer & Alias are working, my problem is a particular ruleset in the Alias that is giving me a headache. The following VirtualServer definition is included from the main httpd.conf file...
... virtual server stuff
Alias /sentry /mnt/lan/service
<Directory "/mnt/lan/service">
Options FollowSymLinks
# mod_rewrite engaged...
RewriteEngine ON
RewriteBase /sentry
# handle requests for the alias default...
RewriteCond %{REQUEST_URI} ^/sentry [OR]
RewriteCond %{REQUEST_URI} ^/sentry/
RewriteRule ^/*$ /mnt/lan/service/master.html [NC,L]
# handle all requests for client stats...
RewriteCond %{REQUEST_URI} ^/sentry/([a-z]+)
RewriteRule ^$ /mnt/lan/service/$1/$1.html [NC,L]
AllowOverride None
Order allow,deny
Allow from all
</Directory>
... to the end of the virtual server def
The first rule for alias default works as advertised. That catches the default alias definition and displays the correct redirect.
http://www.site.net/sentry or http://www.site.net/sentry/
However, when I enter
http://www.site.net/sentry/client or http://www.site.net/sentry/client/
the second rule for the client addys just never seem to execute. I've attempted all manner of manipulation, but my lack of exposure to REGEX mod_rewrite is certainly glaring. As this isn't Rocket Science, there's gotta be an Error #13 [between the keyboard & chair] here somewhere, as I'm pretty certain someones had to have accomplished this before. I'm apparently blind enuff that I just cannot find anything to un-muddy the waters. If someone could just quickly eyeball this and point me in the right direction or give me some sort of clue, I'd really appreciate it...
Thanx so much in advance to any/all input - and I apologize for the wasted bandwidth if this is an all-to-repeated topic I've somehow missed in this or another forum...
Peace...