EPrints Technical Mailing List Archive
Message: #08710
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Problem after changing port number
- To: <eprints-tech@ecs.soton.ac.uk>, Herbert Hrachovec <herbert.hrachovec@univie.ac.at>
- Subject: Re: [EP-tech] Problem after changing port number
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Tue, 24 Aug 2021 18:52:34 +0100
Hi Herbert,So assuming you want to redirect from 8080 to 80, you need something like the config below. As EPrints won't know anything about port 8080, unless $c->{port} in the archive's cfg/cfg.d/10_core.pl is still set to 8080. You will need to configure this in Apache2's config directory. I assume you are running either Ubuntu of Debian (as Jessie is a codename for a Debian release). So create the filename redirect_8080.conf in /etc/apache2/sites-available/ and add this config (change to match your HOSTNAME):
Listen 8080 <VirtualHost *:8080> RewriteEngine on RewriteRule ^/(.*) http://HOSTNAME/$1 [R=301,NE,L] </VirtualHost> Then run the following commands as the root user: a2ensite redirect_8080 apache2ctl configtest apache2ctl restartThis should introduce a redirect for any URL that starts http://HOSTNAME:8080 ; to just http://HOSTNAME, which it sounds like you have now configured. I assume that you have run or re-run
EPRINTS_PATH/bin/generate_apacheconf --system --replaceWhere EPRINTS_PATH may be /opt/eprints3 or /usr/share/eprints. If you have not be sure to do this before running the two apache2ctl commands above. If still still does not fix your problem. Please send the output of the following command, run as the root user:
source /etc/apache2/envvars && apache2 -S Regards David Newman On 24/08/2021 18:00, Herbert Hrachovec via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton. I am running an Eprint3 server on ubuntu jessie. After migrating from a previous installation it is running on port 80. Several service providers have caught the change, but, as I recently found out, a number of external sites listing the server still show the previous port number (8080). How can I make apache2 redirect the old URL to the present one? I tried unsuccessfully to use a nginx reverse proxy. It seems I need the document root of the current installation. How do I find it? Or is there another method? Thanks for any advice. h.h. *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca65cb925f8bc418b2d5c08d96727f4b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637654243563456218%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=uFOrts8i4PR%2BEwbcVqpA9VdeUmhG0mNmo67kvpEYqfY%3D&reserved=0 *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca65cb925f8bc418b2d5c08d96727f4b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637654243563456218%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dbY3L3WcROw6T8p7GzC8zxBJEjqvFKxCi2vOnsRDsAQ%3D&reserved=0
-- This email has been checked for viruses by AVG. https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.avg.com%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Ca65cb925f8bc418b2d5c08d96727f4b1%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637654243563456218%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=sFXE9gNo%2BeAsdjDlR3Drsy8AJcJ7NV6Ku2HkI4I%2BbWU%3D&reserved=0
- References:
- [EP-tech] Problem after changing port number
- From: Herbert Hrachovec <herbert.hrachovec@univie.ac.at>
- [EP-tech] Problem after changing port number
- Prev by Date: [EP-tech] Problem after changing port number
- Next by Date: [EP-tech] how to use limith_names_show.pl
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):