2014-09-06 88 views
4

使用laravel開發API。PUT請求403禁止使用

獲取403對PUT請求禁止。

適用於遠程服務器,但不適用於本地。使用MAMP作爲本地服務器。

這是我的虛擬主機,我沒有看到任何東西。

<VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "/Users/dg/Documents/Websites/domain.com/public_html/dev/public_html" ServerName domain.local ServerAlias www.domain.local <Directory /> Options Indexes FollowSymLinks AllowOverride All </Directory> ErrorLog "/Users/dg/Documents/Websites/domain.com/public_html/dev/error_log" CustomLog "/Users/dg/Documents/Websites/domain.com/public_html/dev/access_log" common </VirtualHost>

我在上的其他類似的問題,但沒有解決辦法看着呢。

+0

的第一個問題就是這個403的來源,並在網絡服務器或laravel應用否認請求?看看你的apache錯誤/訪問日誌和你的laravel日誌(app/storage/logs)。 – passioncoder 2014-09-06 11:59:45

回答