nginx - Figuring out lost configurations for ubuntu EC2 server -
i trying figure out of packages below list works nginx server. past coder hasn't made docs follow , unreachable. when customer restarted ec2 server showing bad gateway on nginx. i've started nginx , working fine couldn't figure out tool serving data socket/http. following list of installed packages on ubuntu.
kmod landscape-client networking nginx openbsd-inetd pppd-dns procps pure-ftpd resolvconf sendsigs udev unattended-upgrades urandom x11-common in "etc/nginx/sites-enabled/mysite" shows following reverse proxy.
server { listen 443 ssl; listen [::]:443 ipv6only=on ssl; ssl_certificate mysite.com_2.crt; ssl_certificate_key mysite.com.key; ssl_session_timeout 1d; ssl_protocols tlsv1 tlsv1.1 tlsv1.2; ssl_ciphers 'not shown purposely :ecdh$ ssl_prefer_server_ciphers on; ssl_session_cache shared:ssl:10m; server_tokens off; location / { root /home/mysite/www/website; index index.html; try_files $uri $uri/ @python; } location ^~ /assets { root /home/mysite/project; found upstart script:
# upstart-socket-bridge - bridge socket events upstart # # helper daemon receives socket(7) events , # emits equivalent upstart events. description "bridge socket events upstart" emits socket start on net-device-up iface=lo stop on runlevel [!2345] expect daemon respawn exec upstart-socket-bridge --daemon
in command web application setups nginx configured such acts reverse proxy program or http/tcp service.
- bad gateway means reverse proxy setup running stopped, run
sudo nginx -tgetting nginx conf errors if any. - check nginx configuration included in
/etc/nginx/sites-enabled/folder conf files. - you able find instructions
proxy http://localhost:8080. - using
lsofornetstatfind program running on port. - check program's log file solving issue.
note: if system service file managed upstart can find log in /var/log/upstart/ directory & conf in /etc/init/. run lsof -i :port -s findout program running on port`

Comments
Post a Comment