| 1 | Hosted on the OSGeo [[http://wiki.osgeo.org/wiki/ProjectsVM ProjectsVM]] at OSU OSL. It most lives in /osgeo/sr.org/ |
| 2 | |
| 3 | Currently runs under gunicorn wsgi server proxied through apache. |
| 4 | * Proxy /etc/apache/site-available/sr.org.conf |
| 5 | * Service can be controlled via /etc/init.d/gunicorn |
| 6 | * Configuration file /etc/gunicorn.d/sr.gunicorn ( |
| 7 | ** Port 8092 |
| 8 | ** workers=4 (Can be modified, gunicorn recommends 2-4x # of cores (which is 4), but I lowered it to see if it plays better with the existing services.) |
| 9 | * Gunicorn is installed via backports |
| 10 | |
| 11 | ''The notes below are for the previous method which is still installed but currently disabled:'' |
| 12 | SR.org lives on its own apache server to prevent it going down and taking out the rest of the projects VM. To fix it: |
| 13 | |
| 14 | * cat /var/run/srorgapache.pid for a PID File, and check that that pid is an apache2 file running with the srorg config (using grep). |
| 15 | * Kill this process. |
| 16 | * Run /etc/init.d/srorgapache start |
| 17 | |
| 18 | This weird process is a side effect of how the srorgapache init.d script is written; because it is the same process name (apache2), the apache init script will kill the main projects VM if you just run restart. |
| 19 | |
| 20 | The server runs on port 8090; it takes about one minute to become available after the server is started. You can access it directly at http://spatialreference.org:8090, and http://spatialreference.org is proxied through the main apache. |