Skip to content

Commit

Permalink
refaktor take 4
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Apr 26, 2016
1 parent 0392df2 commit 3d42791
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions services/web/config/sites-enabled/000-default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ServerAlias api.test.smartemission.nl
ServerAlias api.local.smartemission.nl

DocumentRoot /opt/geonovum/smartem/git/services/sosrest
DocumentRoot /opt/geonovum/smartem/git/services/web/api/sosrest
ServerAdmin just@justobjects.nl

DirectoryIndex index.html index.jsp index.cgi index.fcgi
Expand All @@ -13,13 +13,13 @@
# WSGIDaemonProcess smartem_sosemu user=sadmin group=sadmin processes=4 threads=4
# WSGIProcessGroup smartem_sosemu
# WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias /sosemu /opt/geonovum/smartem/git/services/sosrest/index.py
WSGIScriptAlias /sosemu /opt/geonovum/smartem/git/services/web/api/sosrest/index.py

# WSGIScriptAlias /istsos /opt/istsos/latest/application.py
# Alias /istsos/admin /opt/istsos/latest/interface/admin
# Alias /istsos/modules /opt/istsos/latest/interface/modules

<Directory /opt/geonovum/smartem/git/services/sosrest/>
<Directory /opt/geonovum/smartem/git/services/web/api/sosrest/>
Require all granted
</Directory>

Expand All @@ -42,19 +42,19 @@
ServerAlias test.smartemission.nl
ServerAlias local.smartemission.nl

DocumentRoot /opt/geonovum/smartem/git/www/site
DocumentRoot /opt/geonovum/smartem/git/web/site
ServerAdmin just@justobjects.nl

ScriptAlias /cgi-bin/ /opt/geonovum/smartem/git/www/cgi-bin/
<Directory "/opt/geonovum/smartem/git/www/cgi-bin">
ScriptAlias /cgi-bin/ /opt/geonovum/smartem/git/web/cgi-bin/
<Directory "/opt/geonovum/smartem/git/web/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>

DirectoryIndex index.html

<Directory /opt/geonovum/smartem/git/www/site/>
<Directory /opt/geonovum/smartem/git/web/site/>
Require all granted
</Directory>

Expand Down
7 changes: 3 additions & 4 deletions services/web/run-apache2.sh → services/web/run-web.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#!/bin/bash
#
# Run the Apache2 server with mapping to local config
# Run the Apache2 webserver with mapping to local config
#

GIT="/opt/geonovum/smartem/git"
WWW="${GIT}/www"
CONFIG="${GIT}/services/apache2"
CONFIG="${GIT}/services/web"
LOG="/var/smartem/log"
NAME="apache2"
NAME="web"
IMAGE="geonovum/apache2"

VOL_MAP="-v ${CONFIG}/sites-enabled:/etc/apache2/sites-enabled -v ${GIT}:${GIT} -v ${LOG}/apache2:/var/log/apache2"
Expand Down

0 comments on commit 3d42791

Please sign in to comment.