upstream web2py27 {
server unix:///run/uwsgi/web2py27.socket;
}
server {
listen 80;
server_name $hostname;
# static serving
include /etc/nginx/conf.d/web2py/serve_static.conf;
include /etc/nginx/conf.d/web2py/serve_web2py27.conf;
}
server {
listen 443 default_server ssl;
server_name $hostname;
ssl_certificate /etc/nginx/ssl/web2py.crt;
ssl_certificate_key /etc/nginx/ssl/web2py.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off; # Requires nginx >= 1.5.9
ssl_stapling on; # Requires nginx >= 1.3.7
ssl_stapling_verify on; # Requires nginx => 1.3.7
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
## remove only if you know what youre doing
./web2py-on-ubuntu.sh: line 116: include: command not found
./web2py-on-ubuntu.sh: line 117: include: command not found
./web2py-on-ubuntu.sh: line 139: } >/etc/nginx/sites-available/web2py27
ln -s /etc/nginx/sites-available/web2py27 /etc/nginx/sites-enabled/web2py27
rm /etc/nginx/sites-enabled/default
cd /etc/ssl/certs
openssl dhparam -out dhparam.pem 4096
mkdir /etc/nginx/ssl
cd /etc/nginx/ssl
if [ "$nocertificate" -eq 0 ]
then
openssl req -x509 -newykey rsa:2048 -nodes -keyout web2py.key -out web2py.crt -days 1780
chmod 400 web2py.key
openssl x509 -noout -fingerprint -text < web2py.crt > web2py.info fi
# Prepare folders for uwsgi
sudo mkdir /etc/uwsgi
sudo mkdir /etc/uwsgi/vassals
#uWSGI Emperor
echo [Unit]: No such file or directory
./web2py-on-ubuntu.sh: line 140: Description: command not found
./web2py-on-ubuntu.sh: line 141: After: command not found
./web2py-on-ubuntu.sh: line 142: [Service]: command not found
./web2py-on-ubuntu.sh: line 143: ExecStart: command not found
./web2py-on-ubuntu.sh: line 144: RuntimeDirectory: command not found
./web2py-on-ubuntu.sh: line 145: Restart: command not found
./web2py-on-ubuntu.sh: line 146: KillSignal: command not found
./web2py-on-ubuntu.sh: line 147: Type: command not found
./web2py-on-ubuntu.sh: line 148: StandardError: command not found
./web2py-on-ubuntu.sh: line 149: NotifyAccess: command not found
./web2py-on-ubuntu.sh: line 150: [Install]: command not found
./web2py-on-ubuntu.sh: line 151: WantedBy: command not found
./web2py-on-ubuntu.sh: line 154: > /etc/systemd/system/emperor.uwsgi.service
# Create configuration for emperor
echo [uwsgi]: No such file or directory
./web2py-on-ubuntu.sh: line 155: emperor: command not found
./web2py-on-ubuntu.sh: line 156: uid: command not found
./web2py-on-ubuntu.sh: line 157: gid: command not found
./web2py-on-ubuntu.sh: line 160: >/etc/uwsgi/emperor.ini
# Create configuration file /etc/uwsgi/web2py.ini
echo [uwsgi]: No such file or directory
./web2py-on-ubuntu.sh: line 161: home: command not found
./web2py-on-ubuntu.sh: line 162: socket: command not found
./web2py-on-ubuntu.sh: line 163: pythonpath: command not found
mount: mount point /=wsgihandler:application does not exist
./web2py-on-ubuntu.sh: line 165: processes: command not found
./web2py-on-ubuntu.sh: line 166: vacuum: command not found
./web2py-on-ubuntu.sh: line 167: master: command not found
./web2py-on-ubuntu.sh: line 168: harakiri: command not found
./web2py-on-ubuntu.sh: line 169: reload-mercy: command not found
./web2py-on-ubuntu.sh: line 170: cpu-affinity: command not found
./web2py-on-ubuntu.sh: line 171: stats: command not found
./web2py-on-ubuntu.sh: line 172: max-requests: command not found
./web2py-on-ubuntu.sh: line 173: limit-as: command not found
./web2py-on-ubuntu.sh: line 174: reload-on-as: command not found
./web2py-on-ubuntu.sh: line 175: reload-on-rss: command not found
./web2py-on-ubuntu.sh: line 176: uid: command not found
./web2py-on-ubuntu.sh: line 177: gid: command not found
./web2py-on-ubuntu.sh: line 178: touch-reload: command not found
cron: invalid option -- '1'
usage: cron
./web2py-on-ubuntu.sh: line 180: no-orphans: command not found
./web2py-on-ubuntu.sh: line 199: unexpected EOF while looking for matching `''
./web2py-on-ubuntu.sh: line 216: syntax error: unexpected end of file
root@f82uxxxx
Problems with the echo command?