This commit is contained in:
parent
f912503dec
commit
fd0a08489e
|
@ -3,7 +3,7 @@
|
|||
|
||||
RewriteEngine On
|
||||
RewriteMap rwmap prg:/usr/local/apache2/htdocs/rwmap.pl
|
||||
RewriteRule ^/image/catalog/(.+)$ ${rwmap:$1} [P]
|
||||
RewriteRule ^/image/catalog/(.+)$ ${rwmap:$1} [PT,QSA]
|
||||
|
||||
<Proxy *>
|
||||
Require all granted
|
||||
|
|
|
@ -13,7 +13,7 @@ $baseUrl .= ":$serverPort" if ($serverPort != 80 && $serverPort != 443);
|
|||
while (<STDIN>) {
|
||||
chomp;
|
||||
my $input = $_;
|
||||
print STDERR "DEBUG: Input recibido: $input\n"; # Mensaje de depuración
|
||||
print STDERR "DEBUG: Input recibido: $input\n"; # Mensaje de depuración
|
||||
my ($path, $filename) = split('/', $input);
|
||||
|
||||
if (defined $filename && $filename =~ /^(.+)\.(\w+)$/) {
|
||||
|
@ -32,7 +32,5 @@ while (<STDIN>) {
|
|||
}
|
||||
} else {
|
||||
print "Status: 400 Bad Request\n";
|
||||
print "Content-type: text/plain\n\n";
|
||||
print "Error: Invalid filename\n";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue