unzip < zephyr zip > rsync --progress --partial --recursive zephyr deploy@sapele:/tmp ssh deploy@sapele
cd /tmp sudo mv zephyr /var/www cd /var/www/zephyr sudo chmod +x bin/*.sh
sudo /usr/share/tomcat6/bin/shutdown.sh
sudo touch /etc/init.d/zephyr sudo nano /etc/init.d/zephyr
cd /var/www/zephyr/bin && sudo startup.sh
sudo chmod +x /etc/init.d/zephyr sudo /usr/sbin/update-rc.d -f zephyr defaults
sudo reboot
lynx localhost:8088/zephyr/home.do --dump
user www; worker_processes 3;
error_log /var/log/nginx/error.log; pid /var/run/nginx.pid;
events { worker_connections 1024; }
http { include /etc/nginx/mime.types; default_type application/octect-stream;
log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log;
server_names_hash_bucket_size 64; sendfile on; tcp_nopush on; tcp_nodelay on; # could be off? keepalive_timeout 65;
gzip on; gzip_http_version 1.0; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/html text/css application/x-javascript text/xml application.xml application/xml+rss text/javascript;
upstream bart { server 127.0.0.1:8000; server 127.0.0.1:8001; server 127.0.0.1:8002; }
upstream zephyr { server 127.0.0.1:8088; }
server { listen 80; # 8080 if behind pound access_log /var/log/nginx/bart.access.log main;
root /var/www/bart/current/public;
index index.html;
client_max_body_size 10M;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_max_temp_file_size 0;
if (-f $request_filename) {
break;
}
if (-f $request_filename/index.html) {
rewrite (.*) $1/index.html break;
}
if (-f $request_filename.html) {
rewrite (.*) $1.html break;
}
if (!-f $request_filename) {
proxy_pass http://bart;
break;
}
}
location /zephyr {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://zephyr;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/bart/current/public;
}
} }
sudo /etc/init.d/nginx restart
sudo su firefox cd ~/default.profile
user_pref("browser.startup.homepage", "http://localhost/zephyr");
User: zepadmin Password: zepadmin11