windows下nginx配置報錯GetFileAttributesEx

來源:互聯網
上載者:User

標籤:code   img   create   dex   res   serve   host   技術   重寫   

因為電腦螢幕出現亮點,拿去換屏了,所以使用了windows環境,安裝了下wlmp環境

在配置Nginx的時候,發現配置沒有問題,但是老是訪問不了。

2015/08/24 15:03:59 [crit] 4560#3796: *222 GetFileAttributesEx() "d:\wwwroot\hj_appes/css/web/coach_join.css/index.html" failed (123: The filename, directory name, or volume label syntax is incorrect)

妹的,看情況是root目錄不正確,一開始總以為是重寫的問題,關鍵是我配置的主網域名稱

A 虛擬機器主機 root配置的是:訪問二級目錄root d:\wwwroot\a訪問都沒有問題,但是配置的資源網域名

B 虛擬機器主機 root配置的是:訪問三級目錄root d:\wwwroot\a\bb訪問就報錯了。

查看日誌提示的是:

CreateFile() "D:\wwwroot\abb/css/web/coach_join.css" failed (123: The filename CreateFile() "D:\wwwroot\hj_app es/css/web/coach_join.css" failed (123: The filename, directory name, or volume label syntax is incorrect), client: 127.0.0.1, server: ares.haojian.dev, request: "GET /css/web/coach_join.css HTTP/1.1", host: "ares.test.dev"

 

搜了下百度沒有找到,後來外文網站裡找到答案:

就是反斜線的問題

把root d:\wwwroot\a\bb改成了d:/wwwroot/a/bb之後就好了

 

https://www.cnblogs.com/honeybaobao/p/4754911.html

windows下nginx配置報錯GetFileAttributesEx

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.