Commit e702cde2 authored by Yusei Tahara's avatar Yusei Tahara

Add local apache frontend.

parent 4d1442c6
<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTP_HOST} (.*)
RewriteRule ^/(.*) http://127.0.0.1:2200/VirtualHostBase/http/%1:80/VirtualHostRoot/$1 [L,P]
</VirtualHost>
...@@ -3,10 +3,16 @@ ...@@ -3,10 +3,16 @@
# You must use a machine which has at least two cpu cores. # You must use a machine which has at least two cpu cores.
set -x set -x
apt-get update apt-get update
apt-get install -y wget git xz-utils apt-get install -y wget git xz-utils apache2
echo "deb http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/ ./" | tee /etc/apt/sources.list.d/slapos.list echo "deb http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/ ./" | tee /etc/apt/sources.list.d/slapos.list
wget -O- "http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/Release.key" | apt-key add - wget -O- "http://download.opensuse.org/repositories/home:/VIFIBnexedi/Debian_8.0/Release.key" | apt-key add -
apt-get update apt-get update
ln -s /etc/apache2/mods-available/proxy.conf /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled/
ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled/
wget -O /etc/apache2/sites-enabled/erp5apachefront.conf http://lab.nexedi.cn/yusei/a/raw/master/erp5apachefront.conf
rm /etc/apache2/sites-enabled/000-default.conf
systemctl reload apache2.service
apt-get install -y slapos-node apt-get install -y slapos-node
slapos configure local slapos configure local
wget -O /etc/opt/slapos/slapos.cfg http://lab.nexedi.cn/yusei/a/raw/master/slapos.cfg wget -O /etc/opt/slapos/slapos.cfg http://lab.nexedi.cn/yusei/a/raw/master/slapos.cfg
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment