RE: [users@httpd] Mixing ReWrite and AliasMatch

2014-03-02 Thread Darren Ward (darrward)
I thought the * was required to continue regex matching a longer UserAgent field - if not then maybe that's the problem i.e. ^Captive != CaptiveNetworkSupport-277 wispr The entries are definitely in the right vhost but I'll be running some more testing later this afternoon and will advise h

Re: [users@httpd] Mixing ReWrite and AliasMatch

2014-03-02 Thread Eric Covener
On Sun, Mar 2, 2014 at 3:27 PM, Darren Ward (darrward) wrote: > Thanks > > Still can't get this string to be matched though > > RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport* > RewriteRule ^(.*)$ /library/test/success.html [PT] > > Isn't matching: > > wifi-tc:192.168.104.39 - - [28

RE: [users@httpd] Mixing ReWrite and AliasMatch

2014-03-02 Thread Darren Ward (darrward)
Thanks Still can't get this string to be matched though RewriteCond %{HTTP_USER_AGENT} ^CaptiveNetworkSupport* RewriteRule ^(.*)$ /library/test/success.html [PT] Isn't matching: wifi-tc:192.168.104.39 - - [28/Feb/2014:11:02:42 +1100] "GET /ah66Mlma/GwaqQ1ka.html HTTP/1.0" 200 334 "-" "

Re: [users@httpd] Mixing ReWrite and AliasMatch

2014-03-02 Thread Eric Covener
On Sun, Mar 2, 2014 at 7:09 AM, Darren Ward (darrward) wrote: > Thanks Igor > > So in my example if I see a UserAgent starting with CaptiveNetworkSupport > then I should rewrite the URL to http://originalhost/library/test/success.html > > THEN the AliasMatch ending in /success.html should then ma

RE: [users@httpd] Mixing ReWrite and AliasMatch

2014-03-02 Thread Darren Ward (darrward)
Thanks Igor So in my example if I see a UserAgent starting with CaptiveNetworkSupport then I should rewrite the URL to http://originalhost/library/test/success.html THEN the AliasMatch ending in /success.html should then map the request to the local file Is that correct? If so doesn't seem to