Skip to content
Snippets Groups Projects
Commit 21a36347 authored by Diego Pasqualin's avatar Diego Pasqualin
Browse files

web: Add apache2 config

parent 7fc60256
No related branches found
No related tags found
No related merge requests found
......@@ -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
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment