第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

路由規(guī)則不生效

? location / {
??? try_files $uri $uri/ /index.php?$query_string;
? }

已經(jīng)在站點(diǎn)中配置了如下

server {
? listen 80;
? server_name 106.14.205.72;
? access_log /data/wwwlogs/106.14.205.72_nginx.log combined;
? index index.html index.htm index.php;
? root /data/wwwroot/fange;
?
? location / {
??? try_files $uri $uri/ /index.php?$query_string;
? }
? #include /usr/local/nginx/conf/rewrite/laravel.conf;
? #error_page 404 /404.html;
? #error_page 502 /502.html;
?
? location ~ [^/]\.php(/|$) {
??? #fastcgi_pass remote_php_ip:9000;
??? fastcgi_pass unix:/dev/shm/php-cgi.sock;
??? fastcgi_index index.php;
??? include fastcgi.conf;
? }
? location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
??? expires 30d;
??? access_log off;
? }
? location ~ .*\.(js|css)?$ {
??? expires 7d;
??? access_log off;
? }
? location ~ /\.ht {
??? deny all;
? }
}但訪問過程除了/外的路由必須帶index.php
http://106.14.205.72/blog2/public/basic1? 結(jié)果File not found.
http://106.14.205.72/blog2/public/? 這個(gè)能訪問出現(xiàn)laravel的welcom視圖
Route::get('/', function () {
????return view('welcome');
});
Route::get('basic1',function(){
? ? return 'hello world2';
});

正在回答

1 回答

路由代碼沒問題,應(yīng)該是其他問題,不太清楚

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
輕松學(xué)會(huì)Laravel-基礎(chǔ)篇
  • 參與學(xué)習(xí)       64280    人
  • 解答問題       298    個(gè)

Laravel框架基礎(chǔ)視頻教程,輕松入門,了解Laravel的優(yōu)勢

進(jìn)入課程

路由規(guī)則不生效

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)