After configured your domain and restart your NGINX, its does not start and shows error like,
# /etc/init.d/nginx start
nginx: [emerg] pcre_compile() failed: nothing to repeat in /(*.)-index.html" at "*.)-index.html" in
/etc/nginx/conf/nginx.conf
Update few chanages on your specific domain configuration like below,
If you have used (*.?) or /(*.) multiple files, just update to
(.*?)
For example,
location /(.*?)-index.html {
...
...
}
Finally, start or restart your NGINX server.
Comments (0)