Difference between revisions of "Cedeus Technical Architecture"

From stgo
Jump to: navigation, search
m (Accessing all VM via one entry server/domain)
Line 18: Line 18:
  
 
== Accessing all VM via one entry server/domain ==
 
== Accessing all VM via one entry server/domain ==
I installed a reverse proxy to access Geonode, TileStream, Wiki ==
+
I installed a reverse proxy to access Geonode, TileStream, Wiki
 
* to read up a bit:
 
* to read up a bit:
 
** see http://stackoverflow.com/questions/224664/difference-between-proxy-server-and-reverse-proxy-server
 
** see http://stackoverflow.com/questions/224664/difference-between-proxy-server-and-reverse-proxy-server

Revision as of 12:36, 10 September 2014

>> return to Cedeus_IDE


Main Info

  1. IDE architecture design
  2. Cedeus Hardware - get computer + server - mid Nov. + end Dec
    • ToDo: evaluacion propio servidor(es) vs. nube (pro + contra)
  3. Cedeus software
    • Cedeus Evaluacion de GeoNode
    • test instalación de GeoNode en mi servidor personal (cedeusgis1) : 6. Ene - 28. Feb:
      • incluyendo: (i) instalación GeoNode, (ii) instalación y test con BD externa, (iii) test backup GeoNode + (iv) test backup BD, (v) test anadir tiles/datos in GeoExplorer de TileStream, (vi) ToDo: create mi proprio servidor TileStream (similar como OpenQuake.org), (vi) ToDo: instalación en servidores reales
  4. running CEDEUS Servers

Accessing all VM via one entry server/domain

I installed a reverse proxy to access Geonode, TileStream, Wiki

setting up re-routing to VMs

  • on cedeusgeonode machine
  • go to file /etc/apache2/sites-available/
  • sudo nano 000-default.conf
  • add the follwing content, and do afterwards the apprpriate setting in geosteiniger.cl domain using the DNS zone editor:

<VirtualHost *:80>
	# The ServerName directive sets the request scheme, hostname and port that
	# the server uses to identify itself. This is used when creating
	# redirection URLs. In the context of virtual hosts, the ServerName
	# specifies what hostname must appear in the request's Host: header to
	# match this virtual host. For the default virtual host (this file) this
	# value is not decisive as it is used as a last resort host regardless.
	# However, you must set it for any further virtual host explicitly.
       # ServerName www.example.com

	ServerAdmin webmaster@observatorio.cedeus.cl
       ServerName observatorio.cedeus.cl
       ServerAlias cedeusgeonode.ing.puc.cl
       ServerAlias observatorio.geosteiniger.cl
	DocumentRoot /var/www/html

	# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
	# error, crit, alert, emerg.
	# It is also possible to configure the loglevel for particular
	# modules, e.g.
	#LogLevel info ssl:warn

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

	# For most configuration files from conf-available/, which are
	# enabled or disabled at a global level, it is possible to
	# include a line for only one particular virtual host. For example the
	# following line enables the CGI configuration for this host only
	# after it has been globally disabled with "a2disconf".
	#Include conf-available/serve-cgi-bin.conf

   # Servers to proxy the connection, or;
   # List of application servers:
   # Usage:
   # ProxyPass / http://[IP Addr.]:[port]/
   # ProxyPassReverse / http://[IP Addr.]:[port]/

   ProxyPass /wiki http://146.155.17.19:22080/wiki/
   ProxyPassReverse /wiki http://146.155.17.19:22080/wiki/
 
</VirtualHost>

#Datos
<VirtualHost *:80>
   ServerName observatorio.cedeus.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass /data/ http://146.155.17.19:13080/
   ProxyPassReverse /data/ http://146.155.17.19:13080/
</VirtualHost>

#Guias
<VirtualHost *:80>
   ServerName guias.observatorio.cedeus.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass / http://146.155.17.19:22080/
   ProxyPassReverse / http://146.155.17.19:22080/
</VirtualHost>

#Wiki geosteiniger
<VirtualHost *:80>
   ServerName wiki.geosteiniger.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass / http://146.155.17.19:21080/
   ProxyPassReverse / http://146.155.17.19:21080/
</VirtualHost>

#CedeusData geosteiniger
<VirtualHost *:80>
   ServerName cedeusdata.geosteiniger.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass / http://146.155.17.19:13080/
   ProxyPassReverse / http://146.155.17.19:13080/
</VirtualHost>

#CedeusWiki geosteiniger
<VirtualHost *:80>
   ServerName cedeuswiki.geosteiniger.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass / http://146.155.17.19:22080/
   ProxyPassReverse / http://146.155.17.19:22080/
</VirtualHost>

#Tilestream geosteiniger
<VirtualHost *:80>
   ServerName tilestream.geosteiniger.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass / http://146.155.17.18:16088/
   ProxyPassReverse / http://146.155.17.18:16088/
</VirtualHost>

#OpenTripPlanner geosteiniger
<VirtualHost *:80>
   ServerName otp.geosteiniger.cl
   ProxyRequests Off
   ProxyPreserveHost On
   ProxyPass / http://146.155.17.54:8080/
   ProxyPassReverse / http://146.155.17.54:8080/
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

enabling other webpages aside GeoNode on a machine

  • on the machine that has geonode installed...
  • on Ubuntu 12.04 opensudo nano /etc/apache2/sites-evailable/geonode
    (usually this would be file default, or so, but in this case geonode is already installed)
  • below the entry Alias /robots.txt /var/www/geonode/robots.txtadd the entry: Alias /other/ /var/www/html/
    Note, the /var/www/html/ folder does not exist on Ubuntu 12.04 in contrast to Ubunutu 14.04 where it exist already
  • restart apache sudo service apache2 restart
  • for testing one may copy the default index.html file into the new /var/www/html/ folder
  • test with opening http://localhost/other/

ToDo

  • install UPS
  • develop backup procedure
  • test GeoNode 2.x on !4.04
  • documentation
  • contracts
  • add data
  • add maps