Hi,
I'm starting nginx service and it gives this error:
Nginx rule configuration error:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
Hi,
I'm starting nginx service and it gives this error:
Nginx rule configuration error:
nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed
I think that there isn't space on the partition
I increased the space (installing on another VM) and it gives the same error.
I'm running the docker container from aapanel/aapanel
What configuration have you done to nginx during the error reporting period?
Secondly, is the nginx waf software on aapanel useful?
it's the default configuration:
user www www;
worker_processes auto;
error_log /www/wwwlogs/nginx_error.log crit;
pid /www/server/nginx/logs/nginx.pid;
worker_rlimit_nofile 51200;
events
{
use epoll;
worker_connections 51200;
multi_accept on;
}
http
{
include mime.types;
#include luawaf.conf;
include proxy.conf;
default_type application/octet-stream;
server_names_hash_bucket_size 512;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 50m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
tcp_nodelay on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 64k;
fastcgi_buffers 4 64k;
fastcgi_busy_buffers_size 128k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.1;
gzip_comp_level 2;
gzip_types text/plain application/javascript application/x-javascript text/javascript text/css application/xml;
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";
limit_conn_zone $binary_remote_addr zone=perip:10m;
limit_conn_zone $server_name zone=perserver:10m;
server_tokens off;
access_log off;
server
{
listen 8988;
server_name phpmyadmin;
index index.html index.htm index.php;
root /www/server/phpmyadmin;
location ~ /tmp/ {
return 403;
}
#error_page 404 /404.html;
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /\.
{
deny all;
}
access_log /www/wwwlogs/access.log;
}
include /www/server/panel/vhost/nginx/*.conf;
}
related problems of my installation:
https://www.aapanel.com/forum/d/4947-docker-admin-panel-connection-refused
aaPanel_Captain all the premium plugins are cool including nginx waf. why?
I don't know what happened. it is working now
Hello everyone, please tell me, is it possible to enable the ngx_http_secure_link_module module in nginx from the panel?
filmovtv
Hello, modify the nginx.sh installation script: add parameters as shown (there must be a space in front): --with-http_secure_link_module
Then execute the following command in a terminal or SSH tool:
bash /www/server/panel/install/nginx.sh install 1.21
If prompted: please ignore it, please go directly to the "App store" to restart nginx
[emerg] "fastcgi_cache" zone "WORDPRESS" is unknown in /www/server/nginx/conf/nginx.conf:96
Use the command to check if the installation was successful:
/www/server/nginx/sbin/nginx -V
filmovtv
hello,
you can input there parameter like this. then "Module ngx_http_secure_link_module" will work!
Name: ngx_http_secure_link_module
Parameter: --with-http_secure_link_module
Thank you very much, it worked.
@aaPanel_Kern
hello, can you add module "ngx_http_secure_link_module" to default nginx install with Fast method in future? So, the user no need install it by manually!
jazz1611
Hello, the quick installation is that the already compiled installation package is not supported now, you can do as above if you need it.
aaPanel_Kern
okay, hope in future can support it as default in Fast method.
One of the sites is accessible by the IP address of the server using the https protocol, how can I fix it?
The site is now available at the https://epyc.tech/ domain and at the ip address.
Access by IP address http protocol managed to be fixed by adding the ip address of the server to the domains.
The default domain also set the server IP, did not help.
filmovtv
hello, are you trying to disable ip access? If yes, please modify the following files as:
/www/server/panel/vhost/nginx/0.default.conf
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 default_server;
listen [::]:443 default_server;
ssl_reject_handshake on;
server_name _;
return 444;
}
This is what you need, the site is no longer available by ip, thank you very much.
Please tell me how to redirect from all https pallets to the main domain while preserving the entire URL.
Adding all possible subdomain options to the panel is not an option, and other attempts result in an SSL certificate error.
filmovtv
Hi, is it ok to set up Redirect in website of subdomain?