I am stuck in setting up a regex to be used in the AliasMatch-directive in Apache.
I want to make it possible to access some of my virtual webspaces even if the apache was not yet configured or DNS-update takes too long :) My virtual webspaces can be found in /home/vwww/example.com/host/htdocs/ I wanted to make it possible to call that in a browser using: http://my.webserv.er/vwww/host.example.com/ to do so, I've tried to set up a directive like: AliasMatch ^/vwww/(.*)\.(.*)/(.*)$ /home/vwww/$2/$1/htdocs/$3 ^^^^ path $3 ^^^^ example.com $2 ^^^^ host $1 But since it's regexp it matches the longest possible match. I get the following matches: $1 = host.example $2 = com and not $1 = host $2 = example.com I've tried to make the first (.*) a (.*?) to get minimal matching, but Apache does not seem to support it? Any ideas? Balu PS: Same with path: www.my-serv.er/vwww/www.example.com/some/path/index.html gives me $1 = www.example $2 = com/some/path $3 = index.html :( -- Windows is something like fast-food: It's finished in no time, but you don't get a full-filled feeling, and you can start again. - Bas Lijten (Holland) in #lfs -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]