Tech List

[index] [prev] [next] [options] [help]
See the Mailing Lists Page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] more about base_url and http port (3.1rc2)

From: Ferruccio Zamuner <nonsolosoft AT diff.org>
Date: Thu, 26 Jun 2008 14:55:44 +0200


Threading:      • This Message
             Re: [EP-tech] more about base_url and http port (3.1rc2) from tdb01r AT ecs.soton.ac.uk

*** 
http://www.eprints.org/tech.php/id/%3CEMEW-k5PDyXa9f7680ff4d44a4bcff11a3d8c4103d0-486391D0.4090305%40diff.org%3E
*** EPrints community wiki - http://wiki.eprints.org/

/home/eprints3/archives/ARCHIVEID/cfg/cfg.d/oai.pl

# Base URL of OAI 2.0
$oai->{v2}->{base_url} = $c->{perl_url}."/oai2";

this doesn't rewrite PORT

$oai->{v2}->{base_url} = $c->{perl_url}.":8080/oai2";

I've tried to hardcode port in it and it does.


But I've tried to forward $c->{perl_url} and it's defined in 20_baseurl.pl:
20_baseurls.pl:$c->{base_url} = 
"http://->{host}".(->{port}!=80?":".->{port}:"").->{urlpath};
20_baseurls.pl:$c->{perl_url} = $c->{base_url}."/cgi";

then the problem seems $c->{port} defined in 10_core.pl:
$c->{host} = 'eprints.jiia.it';
$c->{port} = '8080';
$c->{aliases} = [];
$c->{securehost} = undef;
$c->{securepath} = undef;

Here $c->{port} is defined, why does 20_baseurls.pl fail?



Best regards,             \fer


[index] [prev] [next] [options] [help]