Difference between revisions of "Nginx -t"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
− | * | + | ===Restart=== |
− | + | *<code>[[systemctl restart]] nginx</code> | |
+ | ===Outputs=== | ||
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: [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 | nginx: configuration file /etc/nginx/nginx.conf test failed |
Revision as of 10:46, 27 August 2021
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
systemctl restart nginx
Outputs
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
See also
- 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: