nginx server not working i opened the port 80 and checked config for nginx user, still not working
by xois from LinuxQuestions.org on (#6H2RN)
----------------------------------------------
SOLVED THE PROBLEM COMPILING NGINX FROM SOURCE
----------------------------------------------
hi, i'm not new to slackware i used it when it was 13.37, now i installed the slackware-current iso because i tried alpine linux and i didn't liked it, so i'm going back here.
this is the problem:
I installed from zero with ALL the packages and i used the nginx build for Slackware 15 from slackbuilds
my settings:
uname -a:
Code:Linux xois.cl 6.6.6 #1 SMP PREEMPT_DYNAMIC Mon Dec 11 13:44:22 CST 2023 x86_64 Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz GenuineIntel GNU/Linuxiptables -L:
Code:Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:httpnginx.conf:
Code:
user root;
worker_processes auto;
worker_rlimit_nofile 8192;
daemon off;
events {
worker_connections 8000;
multi_accept on;
use epoll;
}
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
http {
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
keepalive_timeout 20;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
include conf.d/*;
}(tried root user since is the only one in my system)
curl localhost:
Code:curl: (7) Failed to connect to localhost port 80 after 0 ms: Couldn't connect to serverchrome answer:
Code:refused to connect.i don't now what else could be important, thanks ( i love Slackware :) )
i'll try creating a user and testing again but i don't think is the problem...
----------------------------------------------
SOLVED THE PROBLEM COMPILING NGINX FROM SOURCE
----------------------------------------------
SOLVED THE PROBLEM COMPILING NGINX FROM SOURCE
----------------------------------------------
hi, i'm not new to slackware i used it when it was 13.37, now i installed the slackware-current iso because i tried alpine linux and i didn't liked it, so i'm going back here.
this is the problem:
I installed from zero with ALL the packages and i used the nginx build for Slackware 15 from slackbuilds
my settings:
uname -a:
Code:Linux xois.cl 6.6.6 #1 SMP PREEMPT_DYNAMIC Mon Dec 11 13:44:22 CST 2023 x86_64 Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz GenuineIntel GNU/Linuxiptables -L:
Code:Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:httpnginx.conf:
Code:
user root;
worker_processes auto;
worker_rlimit_nofile 8192;
daemon off;
events {
worker_connections 8000;
multi_accept on;
use epoll;
}
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
http {
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
keepalive_timeout 20;
sendfile on;
tcp_nopush on;
tcp_nodelay off;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 5;
gzip_min_length 256;
gzip_proxied any;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
include conf.d/*;
}(tried root user since is the only one in my system)
curl localhost:
Code:curl: (7) Failed to connect to localhost port 80 after 0 ms: Couldn't connect to serverchrome answer:
Code:refused to connect.i don't now what else could be important, thanks ( i love Slackware :) )
i'll try creating a user and testing again but i don't think is the problem...
----------------------------------------------
SOLVED THE PROBLEM COMPILING NGINX FROM SOURCE
----------------------------------------------