Can anyone help me.
the ngixx part ist terrible. I got not website only error 500 Internal Server Error
Path to www/dist is correct.
and if i start ember server --port 8082 --environment development
then i got the api error page
can anyone help me with a newer guide?
I use ubuntu 16.04 server but i think its another nginx version. I have not the same paths
my default file in /etc/nginx/sites-available
upstream api {
server 127.0.0.1:8080;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
root /home/pool/open-ethereum-pool/www/dist;
server_name _;
location /api {
proxy_pass
http://api; }
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
# include snippets/fastcgi-php.conf;
#
# # With php7.0-cgi alone:
# fastcgi_pass 127.0.0.1:9000;
# # With php7.0-fpm:
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;
#}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
the second file /etc/nginx/nginx.conf
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
#ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
upstream api {
server 127.0.0.1:8080;
}
server {
listen 0.0.0.0:80;
root home/pool/open-ethereum-pool/www/dist;
index index.html index.htm;
server_name localhost;
location /api {
proxy_pass
http://api; }
location / {
try_files $uri $uri/ /index.html;
}
}
}