James帮我搞搞雷池WAF!!!

@“[未知用户]”#p10890 默认的是

`#user nobody;
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 {
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local] “$request” ’
# '$status $body_bytes_sent “$http_referer” ’
# ‘“$http_user_agent” “$http_x_forwarded_for”’;

#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
listen 80;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root html;
index index.html index.htm;
}

#error_page 404 /404.html;

# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ .php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ .php$ {
# root html;
# fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
# include fastcgi_params;
#}

# deny access to .htaccess files, if Apache’s document root
# concurs with nginx’s one
#
#location ~ /.ht {
# deny all;
#}
}

# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;

# location / {
# root html;
# index index.html index.htm;
# }
#}

# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;

# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;

# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;

# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;

# location / {
# root html;
# index index.html index.htm;
# }
#}

}`

@“[未知用户]”#p11019 ```
server {

listen 80;

</i>这里改</p></r>

@“[未知用户]”#p11026 我想放弃了

@“[未知用户]”#p11029 还是不行吗?

@“[未知用户]”#p11030 对啊,不搞了,先上课去了

@“[未知用户]”#p11031 可能改完要重载一下配置,你先去上课吧~

@“[未知用户]”#p11032 重载不了,线上看吧

@“[未知用户]”#p11031 在哪上课 我也好想

@“[未知用户]”#p11041 网上

@“[未知用户]”#p11042 额。网安课程吗。天天有人给我推

@“[未知用户]”#p11120 不是网络安全

@“[未知用户]”#p11120 没时间搞课外的,暑假再学

@“[未知用户]”#p11032 在宝塔,站点绑定ip还是域名

@“[未知用户]”#p11389 宝塔域名绑定端口,nginx的端口

@“[未知用户]”#p11392 感觉长亭如果是单个服务器的话配置起来比较麻烦

@“[未知用户]”#p11392 我改端口了啊

2024/03/03 10:48:58 [emerg] 267363#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

2024/03/03 10:48:58 [emerg] 267363#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

2024/03/03 10:48:58 [emerg] 267363#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

2024/03/03 10:48:58 [emerg] 267363#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

2024/03/03 10:48:58 [emerg] 267363#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

2024/03/03 10:48:58 [emerg] 267363#0: still could not bind()

@“[未知用户]”#p11428 配置重载没,最好给nginx重启一下

@“[未知用户]”#p11431 重载不了

@“[未知用户]”#p11432 报错吗?看看日志

有这个报错说明nignx端口还在占用,端口没改过来