From 21a36347cf6a78c8fc57742b1d16c61e240706f2 Mon Sep 17 00:00:00 2001 From: Diego Pasqualin <dpasqualin@c3sl.ufpr.br> Date: Tue, 12 Nov 2013 09:23:40 -0200 Subject: [PATCH] web: Add apache2 config Signed-off-by: Diego Pasqualin <dpasqualin@c3sl.ufpr.br> --- web/README | 8 ++++ web/apache2/sites-available/simmc | 64 +++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 web/apache2/sites-available/simmc diff --git a/web/README b/web/README index 0d6bc1b..b09057d 100644 --- a/web/README +++ b/web/README @@ -40,8 +40,16 @@ Production The process is very similar to the development environment, run the following: npm install + export PATH="$(pwd)/node_modules/.bin:$PATH" + bower install + cp config.example.js config.js # then edit this, like in dev + grunt prod + ./server.js + +If you are using apache, copy, configure and enable the website using the +file apache2/sites-available/simmc diff --git a/web/apache2/sites-available/simmc b/web/apache2/sites-available/simmc new file mode 100644 index 0000000..467d163 --- /dev/null +++ b/web/apache2/sites-available/simmc @@ -0,0 +1,64 @@ +<VirtualHost *:80> + + ServerName bisimmcdev.c3sl.ufpr.br + ServerAlias bisimmcdev + CustomLog /var/log/apache2/access_simmc.log combined + ProxyPreserveHost On + + <Proxy balancer://simmc> + BalancerMember http://127.0.0.1:3000 + BalancerMember http://127.0.0.1:3001 + BalancerMember http://127.0.0.1:3002 + BalancerMember http://127.0.0.1:3003 + BalancerMember http://127.0.0.1:3004 + BalancerMember http://127.0.0.1:3005 + BalancerMember http://127.0.0.1:3006 + BalancerMember http://127.0.0.1:3007 + </Proxy> + + DocumentRoot /home/datasid/datasid/web/app + <Directory /> + Options FollowSymLinks + AllowOverride None + </Directory> + <Directory /home/datasid/datasid/web/app> + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + </Directory> + + Alias /download /home/datasid/www/download + <Directory /home/datasid/www/download> + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + allow from all + </Directory> + + # exclude list + #ProxyPass /robots.txt ! + #ProxyPass /downloads ! + #ProxyPass /pacotes ! + + ProxyPass /tomcat http://localhost:8080 retry=5 + ProxyPassReverse /tomcat http://localhost:8080 + + ProxyPass /axis2 http://localhost:8080/axis2 retry=5 + ProxyPassReverse /axis2 http://localhost:8080/axis2 + + ProxyPass /api balancer://simmc/api + #ProxyPassReverse /api balancer://simmc/api + + ProxyPass /scpmc http://localhost:5656 retry=5 + ProxyPassReverse /scpmc http://localhost:5656 + ProxyPass /media http://localhost:5656/media retry=5 + ProxyPassReverse /media http://localhost:5656/media + ProxyPass /static http://localhost:5656/static retry=5 + ProxyPassReverse /static http://localhost:5656/static + + <Proxy *> + Allow from all + </Proxy> + +</VirtualHost> -- GitLab