EPrints Technical Mailing List Archive
Message: #06247
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] eprints links are including filesystem paths
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] eprints links are including filesystem paths
- From: David Machakhelidze <david.machakhelidze@iliauni.edu.ge>
- Date: Fri, 03 Feb 2017 19:41:38 +0000
regenerated apache2 config
restarted apache2
But when i try to reach documents I get 404 error
for example
NOTE: **I haven't tried the process below (be careful!)**
You might want to test the sequences below before trying them on the live server, or at least take a copy of all the config files (<eprints_root>/archives/<archiveid>/cfg) as a backup.
When the archive was created, the script
<eprints_root>/bin/epadmin create
would have been run. This configures parts of the repository, one of which is the URL path the repository lives at.
The question asked during this process is:
"Please enter the path part of the repository's base URL. This should probably be '/'."
I think this was answered with '/usr/share/eprints3/data/' - the location on the disk, rather than the URL you wanted.
The value is saved into the archive config, in:
<eprints_root>/archives/<archiveid>/cfg/cfg.d/10_core.pl
The line:
$c->{http_root} = '/usr/share/eprints3/data/';
Could be changed to:
$c->{http_root} = undef;
After doing this you will need to update the apache conf:
<eprints_root>/bin/generate_apacheconf
You will need to re-start Apache to make the change live.
You will probably also want to:
Generate the static pages:
<eprints_root>/bin/generate_static <archiveid>
And possibly generate the abstract pages:
<eprints_root>/bin/generate_static <archiveid>
If your repository has been running for a while like this, you might want to deal with requests for the URLs with …/usr/share/eprints3/data/… in them by redirecting them (I can show you how).
Cheers,
John
From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of David Machakhelidze
Sent: 03 February 2017 14:44
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] eprints links are including filesystem paths
For examples
This is what it likes when I click on the HOME ink
http://eprints.iliauni.edu.ge/usr/share/eprints3/data/
And this is for search
and so on an so on, my links include /usr/share/eprints3/data/.........
I see other eprints sites does not have such problem, how to fix that?*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- References:
- [EP-tech] eprints links are including filesystem paths
- From: David Machakhelidze <david.machakhelidze@iliauni.edu.ge>
- Re: [EP-tech] eprints links are including filesystem paths
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] eprints links are including filesystem paths
- Prev by Date: [EP-tech] different (search) result for current_language not equal to 'en'
- Next by Date: Re: [EP-tech] eprints links are including filesystem paths
- Previous by thread: Re: [EP-tech] eprints links are including filesystem paths
- Next by thread: Re: [EP-tech] eprints links are including filesystem paths
- Index(es):