search

Home  >  Q&A  >  body text

The word feature cannot appear in the nginx configuration server module?

nginx version is 1.11. After adding the following server block to the nginx.conf file, nginx cannot be started. If you change the word feature to another word, it can be started. I don’t know why?


    #laravel-5-4-feature.com
    server {
        listen       80;
        server_name  laravel-5-4-feature.com;
        charset utf-8;

        location / {
            root   D:/wnmp/www/laravel-5-4-feature/public;
            index  index.php index.html index.htm;
            try_files $uri $uri/ /index.php?$query_string;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        location ~ \.php$ {
            root           D:/wnmp/www/laravel-5-4-feature/public;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }
        
    }
天蓬老师天蓬老师2731 days ago1004

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-07-03 11:45:13

    It shouldn’t be a problem with feature

    I tested under nginx version: nginx/1.10.3 and there was no such problem. I will upgrade to nginx and have a look


    Upgraded to nginx version: nginx/1.12.0

    Test configuration:

    server {
        server_name test-feature.dev;
    }

    Run result:

    ~ ❯❯❯ curl -I http://test-feature.dev/
    HTTP/1.1 200 OK
    Server: nginx/1.12.0
    Date: Fri, 30 Jun 2017 12:51:21 GMT
    Content-Type: text/html
    Content-Length: 612
    Last-Modified: Tue, 18 Oct 2016 15:03:19 GMT
    Connection: keep-alive
    Vary: Accept-Encoding
    ETag: "580639b7-264"
    Accept-Ranges: bytes

    Please also provide the specific nginx -terror message

    reply
    0
  • Cancelreply