We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38fe8e0 commit 219c523Copy full SHA for 219c523
wre/lib/WRE/WebguiDemo.pm
@@ -30,7 +30,7 @@ sub call {
30
my $config = WRE::Config->new;
31
$self->wre_config($config);
32
my $r = Plack::Request->new($env);
33
- my ($id) = $r->uri->host =~ m/^\/(demo[0-9\_]+).*$/;
+ my ($id) = $r->uri->path =~ m/^\/(demo[0-9\_]+).*$/;
34
my $webgui_config = $config->getWebguiRoot("/etc/".$id.".conf");
35
my $response;
36
if (-e $webgui_config) {
0 commit comments