簡體   English   中英

拒絕訪問路徑或如何為機架空間站點添加模擬?

[英]Access to the path is denied or How Do I Add Impersonation for a rackspace site?

在機架雲托管上寫入網站中的XML文件並面臨“拒絕訪問xxx路徑”錯誤?

答案必須是冒充,但秘訣是什么?

這是問答式。 請參閱下面的答案。

更新:在使用FTP客戶端以admin身份登錄到“其他”時,在文件夾上設置安全性的工作沒有冒充。 允許通過網絡應用進行更新。

寫入網站中的文件需要模擬。 在這種環境下,我無法從后面的代碼中模擬工作,因此唯一的選擇是web.config解決方案。

該用戶是您設置的FTP用戶。 您可以並且應該為此設置一個FTP用戶,並限制其安全權限。 真正的關鍵是要知道您是ORD用戶還是DFW用戶。 這些是當前的機架數據中心。 以下是ord數據中心的模擬示例。

<configuration>
  <system.web>
    <identity impersonate="true" userName="ord\USERNAME" password="PASSWORD" />
  </system.web>
</configuration>

為了發現您的站點不在哪個數據中心,可以先嘗試一個,然后再嘗試另一個,或者可以登錄控制面板並查看站點的測試鏈接。

登錄到manage.rackspacecloud.com>托管>雲站點> [您的站點]>常規設置>查看和編輯>測試URL

如果您的鏈接中包含“ ord”,則您的帳戶為ord,否則您的帳戶為dfw。

進行此配置更改后,請確保從控制面板重建應用程序。

機架網站說以下內容,但我沒有發現這是真的:

You **must** use the username which is configured to be the primary FTP 
         account for the cloud site you are working with. If the site was created
         under your main account, this will be your main control panel login 
         credentials. If the site was created under a client, please use the 
         client's main account credentials. When in doubt, you can always click 
         the security tab for a cloud site to confirm the primary ftp account.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM