Monday 10 April 2017

Apache Location regex is not matching paths

I'm just trying to point my apache server at a node.js app by changing the virtual host settings to use proxy settings and when I try to make the Block match all locations via It matches only urls with 1 level deep url paths. /example works but /example/damn does not work. So I tried changing the regex to Which is even overkill but I thought I'd try it, I've been trying a lot of other regex combinations but none capture the URLs. I might add that this regex above actually doesn't capture anything AT ALL, it just shows the index list for my site when I got the url. The only regex that works at all is "/*" but it doesn't go deeper than 1 url /path/anotherpath

I checked that my regex should be matching everything at https://regex101.com/ But still apache isn't capturing it.

here's me config

<VirtualHost *:80>

        ServerName my.dev
        ServerAdmin ireply@myleisure.com.au
        DocumentRoot /home/ggg/Dropbox/host-root/var/www/myleisure.com.au

        ProxyRequests Off
        ProxyPreserveHost On
        ProxyVia Full

        <Proxy "*">
                Require all granted
        </Proxy>

        <Location "(.*)*">
                ProxyPass http://localhost:3000
                ProxyPassReverse http://localhost:3000
        </Location>



</VirtualHost>



via lopu

No comments:

Post a Comment