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
Re: [EP-tech] more about base_url and http port (3.1rc2)
From: Tim Brody <tdb01r AT ecs.soton.ac.uk>
Date: Tue, 01 Jul 2008 12:47:55 +0100
| Threading: | ↑ [EP-tech] more about base_url and http port (3.1rc2) from nonsolosoft AT diff.org • This Message |
*** http://www.eprints.org/tech.php/id/%3C486A196B.1010906%40ecs.soton.ac.uk%3E *** EPrints community wiki - http://wiki.eprints.org/ Ferruccio Zamuner wrote: > *** > ↵ 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? Hi Ferruccio, I'm not sure I follow what the problem is. Could you post your 10_base.pl and 20_baseurl.pl and what host/port you want EPrints to work on? As far as I can tell setting the port in 10_base.pl changes what OAI reports in Identify? Cheers, Tim.
[index] [options] [help]




