Thanks. Could we get rid of the 8080 in the URL? And could you point app.collec.repec.org, the URL that users are familiar with, to the app on Helos? I already deactivated the updating routine on Darni. What robots are you sending to the legacy site? Search engine robots? Christian Düben Research Associate Chair of Macroeconomics Hamburg University Von-Melle-Park 5, Room 3102 20146 Hamburg Germany +49 40 42838 1898 christian.dueben@uni-hamburg.de http://www.christian-dueben.com -----Original Message----- From: Thomas Krichel <krichel@openlib.org> Sent: Dienstag, 2. Februar 2021 16:22 To: Düben, Christian <Christian.Dueben@uni-hamburg.de> Cc: CollEc Run <collec-run@lists.openlib.org> Subject: Re: the grand migration Thomas Krichel writes
<VirtualHost *:80> ServerName collec.repec.org ServerAlias app.collec.openlib.org ErrorLog /var/log/apache2/collec.proxy-error.log CustomLog /var/log/apache2/collec-access.log combined UseCanonicalName Off ProxyPass / http://localhost:8080/ RewriteEngine on RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?(.*) ws://localhost:8080/$1 [P,L] </VirtualHost>
Changed that to <VirtualHost *:80> ServerName collec.repec.org ServerAlias app.collec.openlib.org ErrorLog /var/log/apache2/collec.proxy-error.log CustomLog /var/log/apache2/collec-access.log combined UseCanonicalName Off ProxyPass / http://collec.repec.org:8080/ RewriteEngine on RewriteRule ^/bin/search.fcgi(.*) /var/www/icanis/cgi-bin/search.fcgi$1 [L] RewriteRule ^/nodes/(.*) http://legacy.collec.repec.org/nodes/$1 [R] RewriteRule ^/rank/(.*) http://legacy.collec.repec.org/rank/$1 [R] RewriteRule ^/symplectic_icon.png$ http://legacy.collec.repec.org/symplectic_icon.png [R] RewriteRule ^/doc.html$ http://legacy.collec.repec.org/doc.html [R] RewriteRule ^/css/icanis.css$ http://legacy.collec.repec.org/css/icanis.css [R] RewriteCond %{HTTP:Upgrade} websocket [NC] RewriteCond %{HTTP:Connection} upgrade [NC] RewriteRule ^/?(.*) ws://localhost:8080/$1 [P,L] </VirtualHost> The critical change is in the ProxyPass line. Now it lauches but with an ugly URL that has the port. The additional lines send all the robots to the legacy site. The legacy site needs a bit of wordsmithing but I suggest to keep it this way, change the RAS data on the first of January and then have the site update over time the path to that fixed network. -- Cheers, Thomas Krichel http://openlib.org/home/krichel skype:thomaskrichel