Nginx service start failure in CentOS 5.5 -
i installed nginx in centos 5.5 using yum nginx repo.
after installation, in service stopped status. want start nginx service , configure started @ boot time. before starting service, created new ssl configuration in /etc/nginx/conf.d/ssl.conf
on third line of configuration file, set server name follow:
server_name {{ www_name }};
i executed following commands in terminal:
$ chkconfig nginx on $ service nginx start
chkconfig command got executed successfully, service start command gives me following error:
starting nginx: nginx: [emerg] directive "server_name" not terminated ";" in /etc/nginx/conf.d/ssl.conf:3
this how ssl.conf looks like:
server {
listen 443 default_server;
server_name {{ www_name }};
underscores_in_headers on;
ssl on;
ssl_certificate cert.pem;
ssl_certificate_key cert.key;
...
}
this link explains solution, can't understand. surprisingly, else used ssl.conf file before on centos, somewhere else , did not change anything!
{{ www_name }}
not valid entry. need use domain name string or regex. link provided shows valid examples.
Comments
Post a Comment