[CollEc] the grand migration

Thomas Krichel krichel at openlib.org
Tue Feb 2 15:21:49 UTC 2021


  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



More information about the CollEc-run mailing list