Difference between revisions of "Nginx -t"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
*<code>[[nginx]] -t</code> | *<code>[[nginx]] -t</code> | ||
*<code>nginx: the configuration file [[/etc/nginx/nginx.conf]] syntax is ok</code> | *<code>nginx: the configuration file [[/etc/nginx/nginx.conf]] syntax is ok</code> | ||
Line 13: | Line 14: | ||
== Related terms == | == Related terms == | ||
* <code>[[sshd -T]]</code> or <code>[[sshd -t]]</code> | * <code>[[sshd -T]]</code> or <code>[[sshd -t]]</code> | ||
− | |||
− | |||
* [[Named-checkconf]] | * [[Named-checkconf]] | ||
* <code>[[monit -t]]</code> | * <code>[[monit -t]]</code> | ||
* <code>[[php-fpm7.4 -t]]</code> | * <code>[[php-fpm7.4 -t]]</code> | ||
+ | * [[apache2 -t]] | ||
== See also == | == See also == |
Latest revision as of 23:25, 18 November 2023
nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Contents
Restart[edit]
nginx -t && systemctl restart nginx && systemctl status nginx
Outputs[edit]
nginx: [emerg] pcre_compile() failed: unrecognized character after (? or (?- in "^(?XXX.+)\.domain\.com$" at "XXX.+)\.domain\.com$" in /etc/nginx/sites- enabled/default:75 nginx: configuration file /etc/nginx/nginx.conf test failed
Related terms[edit]
See also[edit]
- Test mode:
nginx -t
,sshd -T
,crontab -e
,visudo
, Named-checkconf,dnsmasq --test, validate:
- Nginx:
nginx -t
,nginx.conf
,/etc/nginx/fastcgi.conf
, Nginx Sample Configurations,server
,ssl_certificate
,redirect
,return
,rewrite
,sendfile
,request_uri
,server_name
,listen
,/etc/nginx/snippets/
,/etc/nginx/sites-enabled/default
- Web server: Nginx:
/etc/nginx/nginx.conf
,nginx -t
, Nginx logs, Nginx change log, PHP,php-fpm
, Let's encrypt, Nginx directives, Reverse Proxy, Configure HTTP redirection Nginx, Return,proxy_pass (Reverse proxy)
,ngx_http_rewrite_module
,/etc/nginx/sites-enabled/
,error.log
,access.log
,/nginx status
, AIO
Advertising: