我從另一個開發人員那里繼承了一個使用Laravel和Cartalyst構建的網站,該開發人員在生產服務器上正常工作,但是在我的本地安裝中,我在主頁上得到了一個NotFoundHTTPException,沒有其他頁面工作。本地設置是運行Ubuntu并使用Apache的筆記本電腦。嘗試搜索論壇無濟于事。該站點在生產服務器上完全正常工作,因此感覺它一定是我的配置問題,而不是實際的編碼問題。當一個人運行php工匠路線:列出所有路線時。還嘗試清除路由緩存。任何幫助或建議將不勝感激。下面是相關文件位。.env 文件(相關部分) APP_KEY=xxxxxxxxxxxx APP_ENV=local APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=https://local.voicemag.uk.htaccess <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Handle Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>Apache configuration <VirtualHost *:443> ServerName local.voicemag.uk ServerAlias local.voicemag.uk ServerAdmin webmaster@localhost DocumentRoot /home/chris/Documents/Webdev/fresh/voicemagv3/public_html SSLEngine on SSLCertificateFile "/home/chris/Documents/Webdev/ssl/server.crt" SSLCertificateKeyFile "/home/chris/Documents/Webdev/ssl/server.key" <Directory /home/chris/Documents/Webdev/fresh/voicemagv3/public_html> Require all granted Allowoverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>如果您需要進一步的信息,請告訴我。
2 回答

呼啦一陣風
TA貢獻1802條經驗 獲得超6個贊
NotFOundHttpException只是因為您的網絡找不到與該名稱相關的任何路由,請嘗試通過制作虛擬主機或通過
php artisan serve
哪個在 http://localhost:8000 托管您的網站
- 2 回答
- 0 關注
- 95 瀏覽
添加回答
舉報
0/150
提交
取消