我運行Apache,我試圖使SSI使用.htaccess文件一個Amazon EC2的服務器,我創建了.htaccess文件並將其保存到我的網站文件的文件夾(不是我的服務器),並試圖用scp -i /Users/jeffArries/Desktop/jeffarries.pem /Users/jeffArries/Desktop/Website_Testing_Folder/.htaccess [email protected]:/var/www/html
把它上傳在終端,並得到這個錯誤信息:爲什麼我無法使用終端上傳.htaccess文件?
「/Users/jeffArries/Desktop/Website_Testing_Folder/.htaccess:沒有這樣的文件或目錄」
如何上傳我的.htaccess文件我使用終端的Apache服務器?
謝謝!
什麼'的ls -l /用戶/ jeffArries /桌面/ Website_Testing_Folder/.htaccess'輸出?我會說這不是[so]或[sf]的問題,而是[su]。 – muru
@muru輸出'LS:/Users/jeffArries/Desktop/Website_Testing_Folder/.htaccess:沒有這樣的文件或directory' –
所以,你犯了一個錯字,或保存'.htaccess'文件的其他地方。 – muru