server – 18.04: nginx is running but can not be accessed

I installed nginx 1.12.2 on the aws server of ubuntu 18.04 for my Rails application. I checked the installation and nginx is running fine:

ubuntu @ ip-172-30-0-193: / opt / nginx / sbin $ ./nginx -v
Nginx version: nginx / 1.12.2
ubuntu @ ip-172-30-0-193: / opt / nginx / sbin $ sudo ./nginx -t
nginx: the syntax of the configuration file /opt/nginx/conf/nginx.conf is fine
nginx: the configuration file /opt/nginx/conf/nginx.conf is successful

ubuntu @ ip-172-30-0-193: / opt / nginx / sbin $ ps aux | grep nginx
root 850 0.0 0.0 43364 120? Ss Dec07 0:00 nginx: master process / opt / nginx / sbin / nginx
Nobody 855 0.0 0.6 46088 3004? S Dec07 0:00 nginx: work process
ubuntu 6304 0.0 0.2 14856 1100 pts / 0 R + 07:07 0:00 grep --color = auto nginx

Here is the portion of nginx.conf:

worker_processes 1;

#error_log logs / error.log;
#error_log logs / error.log notice;
#error_log logs / error.log info;

#pid logs / nginx.pid;


events {
worker_connections 1024;
}


http {
container_root /home/ubuntu/.rvm/gems/ruby-2.3.3/gems/passenger-5.1.12;
passenger_ruby /home/ubuntu/.rvm/gems/ruby-2.3.3/wrappers/ruby;

#rails custom configuration
passenger_spawn_method smart;
passenger_pool_idle_time 0; # keep application alive all the time

includes mime.types;
default_type application / octet-stream;

#log_format main & # 39; $ remote_addr - $ remote_user [$time_local] "$ request" & # 39;
# & # 39; $ status $ body_bytes_sent "$ http_referer" & # 39;
# & # 39; "$ http_user_agent" "$ http_x_forwarded_for" & # 39 ;;

#access_log logs / access.log main;

send file in

keepalive_timeout 65;

server {
listen 80;
server_name iis_server;
returns 301 https: // $ server_name $ request_uri;

root / ebs / www /;
passenger enabled in
........

sudo /etc/init.d/nginx restart It was executed without any error. However, the nginx server can not connect in the browser saying Problem loading page .... What could be the problem?