Hamdan M

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Deploy Ubuntu 22.04 Jammy Jellyfish Discussion

i got "this site can't be reached"

when i check using sudo systemctl status nginx:
active (running) since Tue 2024-04-16 11:08:56 UTC; 27min ago

deploy@srv508193:~$ sudo ufw status
Status: active
To Action From


Nginx HTTP ALLOW Anywhere
Nginx HTTPS ALLOW Anywhere
Nginx Full ALLOW Anywhere
Nginx HTTP (v6) ALLOW Anywhere (v6)
Nginx HTTPS (v6) ALLOW Anywhere (v6)
Nginx Full (v6) ALLOW Anywhere (v6)

/etc/nginx/sites-available/twittor_academy code:
server {
listen 80;
listen [::]:80;

server_name _;
root /home/deploy/twittor_academy/current/public;

passenger_enabled on;
passenger_app_env production;
passenger_preload_bundler on;
passenger_ruby /root/.rbenv/shims/ruby;

location /cable {
passenger_app_group_name twittor_academy_websocket;
passenger_force_max_concurrent_requests_per_process 0;
}

# Allow uploads up to 10MB in size
client_max_body_size 10m;

location ~ /(assets|packs) {
expires max;
gzip_static on;
}
}

/etc/nginx/sites-enabled/twittor_academy code:
server {
listen 80;
listen [::]:80;

server_name _;
root /home/deploy/twittor_academy/current/public;

passenger_enabled on;
passenger_app_env production;
passenger_preload_bundler on;
passenger_ruby /root/.rbenv/shims/ruby;

location /cable {
passenger_app_group_name twittor_academy_websocket;
passenger_force_max_concurrent_requests_per_process 0;
}

# Allow uploads up to 10MB in size
client_max_body_size 10m;

location ~ /(assets|packs) {
expires max;
gzip_static on;
}
}