nginx -t "nginx: [warn] only the last index in "index" directive should be absolute in 6 "的问题解决
2014-04-14 15:42
2111 查看
修改完nginx的配置文件之后,执行nginx -t命令提示"nginx: [warn] only the last index in "index" directive should be absolute in 6 "
相关代码段为:
发现问题没? 原来是第5行少了一个;号...
填上,解决...
相关代码段为:
server { listen 80; server_name www.web1.com; index index.jsp index.html index.htm access_log /export/servers/nginx/logs/www.web1.com/access.log main; error_log /export/servers/nginx/logs/www.web1.com/error.log warn; #chunkin on; error_page 411 = @my_error; location @my_error { #chunkin_resume; } root /export/data/tomcatRoot/www.web1.com/; location / { proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://tomcat_web1; expires 1d; } location /logs/ { autoindex off; deny all; } }
发现问题没? 原来是第5行少了一个;号...
填上,解决...
相关文章推荐
- "index" directive should be absolute in x 问题解决
- nginx: [warn] the "log_format" directive may be used only on "http" level 解决方法
- nginx: [warn] the "log_format" directive may be used only on "http" level 解决方法
- nginx: [warn] the "log_format" directive may be used only on "http" level 解决方法
- nginx: [warn] the "log_format" directive may be used only on "http" level 解决方法
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- Application "org.eclipse.ui.ide.workbench" could not be found in the registry.问题的解决
- Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法
- Application "org.eclipse.ui.ide.workbench" could not be found in the registry.问题的解决
- 解决"the database principal owns a schema in the database and cannot be dropped"问题
- nginx新版本配置文件警告 the "log_format" directive may be used only on "http"
- 解决 "The absolute uri: xxx cannot be resolved in either web.xml or the jar files"
- cygwin This indicates that the /etc/passwd (and possibly /etc/group) files should be rebuilt 问题解决办法
- 在Eclipse中编写servlet时出现"The import javax.servlet cannot be resolved" 问题解决办法
- VC助手使用问题————all instance of the license"*" are in use .VA will be disabled
- ECshop Strict Standards: Only variables should be passed by reference in解决办法
- struts2的“The file cannot be validated as the host "struts.apache.org" is currently unreachable"问题解决
- Unity关于 "Move" can only be called on an active agent that has been placed on a NavMesh.问题的解决办法
- 解决"Bower : ENOGIT git is not installed or not in the PATH"问题
- Control cannot be created because Visual Studio cannot find the control's type in the control assembly 问题的解决