Score:0

เว็บเซิร์ฟเวอร์ NGINX แสดง index.php แต่ไม่มีเนื้อหาย่อยอื่นๆ เช่น แผงผู้ดูแลระบบ

ธง in

เว็บไซต์ของฉันโหลดได้ดี เว็บไซต์ index.php

https://carpool.domain.com/

ฉันป้อนชื่อผู้ใช้และรหัสผ่าน และได้รับการเปลี่ยนเส้นทางไปที่ url: http://carpool.domain.com/admin_login

Nginx จะล้มเหลวในการแสดงสิ่งนี้: 404 ไม่พบ nginx/1.18.0 (อูบุนตู)

นี่คือการกำหนดค่าบล็อกเซิร์ฟเวอร์ nginx ของฉันสำหรับเว็บไซต์นี้:

เซิร์ฟเวอร์ {
    ฟัง 877;
    ฟัง [::]:877;
    ราก /wbs/carpool/www;
    ดัชนี index.php index.html index.htm index.nginx-debian.html;
    server_name carpool.serviiosymas.com ;
    #ที่ตั้ง / {
    # try_files $uri $uri/ =404;
    #}
    ตำแหน่ง ~ \.php$ {
       รวมตัวอย่าง/fastcgi-php.conf;
       fastcgi_pass ยูนิกซ์:/var/run/php/php7.4-fpm.sock;
    }
ที่ตั้ง / {
try_files $uri $uri/ =404;
  ถ้า (!-e $request_filename){
    เขียนใหม่ ^/รหัสผ่านรีเซ็ต/([^\/]+)(\/|)$ /index.php?link1=welcome&link2=password_reset&user_id=$1;
  }
  เขียนใหม่ ^/$ /index.php?link1=home;
  เขียนใหม่ "^/forum/members/([a-zA-Z]{0,1})(/?|)$" /index.php?link1=forum-members-byname&char=$1;
  ถ้า (!-e $request_filename){
    เขียนใหม่ ^/setting/([A-Za-z0-9_-]+)$ /index.php?link1=setting&page=$1;
  }
  ถ้า (!-e $request_filename){
    เขียนใหม่ ^/@([^\/]+)(\/|)$ /index.php?link1=timeline&u=$1;
  }
  ถ้า (!-e $request_filename){
    เขียนใหม่ ^/([A-Za-z0-9_]+)/([^\/]+)(\/|)$ /index.php?link1=timeline&u=$1&type=$2;
  }
  ถ้า (!-e $request_filename){
    เขียนใหม่ ^/([^\/]+)(\/|)$ /index.php?link1=timeline&u=$1;
  }
}

ตำแหน่ง /admin_login {
  เขียนใหม่ ^/admin-cp$ /admincp.php;
  เขียนใหม่ ^/admin-cp/(.*)$ /admincp.php?page=$1;
  เขียนใหม่ ^/admin/ads/edit/(\d+)(/?|)$ /index.php?link1=manage-ads&id=$1;
}

สถานที่ = /admincp {
  เขียนใหม่ ^(.*)$ /admincp.php;
}

ตำแหน่ง /admincp {
  เขียนใหม่ ^/admincp/(.*)$ /admincp.php?page=$1;
}

ตำแหน่ง /adminPages/ {
  นามแฝง /admin-panel/;
}

ที่ตั้ง / เริ่มต้น {
  เขียนใหม่ ^/start-up(/?|)$ /index.php?link1=start-up;
}

สถานที่ / บันทึก {
  เขียนใหม่ ^/saved-posts/(.*)$ /index.php?link1=saved-posts;
  เขียนใหม่ ^/saved-posts(/?|)$ /index.php?link1=saved-posts;
}

ตำแหน่ง / ผิดปกติ {
  เขียนใหม่ ^/unusual-login(/?|)$ /index.php?link1=unusual-login;
}

ตำแหน่ง / เปิดใช้งาน {
  เขียนใหม่ ^/activated/(.*)$ /index.php?link1=activate&link2=$1;
}

สถานที่ / ค้นหา {
  เขียนใหม่ ^/search(/?|)$ /index.php?link1=search;
  เขียนใหม่ ^/search/([^\/]+)(\/|)$ /index.php?link1=search&query=$1;
}

สถานที่ / โฆษณา {
  เขียนใหม่ ^/ads-create$ /index.php?link1=ads-create;
  เขียนใหม่ ^/ads(/?|)$ /index.php?link1=ads;
  เขียนใหม่ ^/ads/create(/?|)$ /index.php?link1=create-ads;
  เขียนใหม่ ^/ads/edit/(\d+)(/?|)$ /index.php?link1=edit-ads&id=$1;
  เขียนใหม่ ^/ads/chart/(\d+)(/?|)$ /index.php?link1=chart-ads&id=$1;
}

ตำแหน่ง / แอป {
  เขียนใหม่ ^/app/([^\/]+)(\/|)$ /index.php?link1=app&app_id=$1;
}

ตำแหน่ง / ข้อความ {
  เขียนใหม่ ^/messages/([^\/]+)(\/|)$ /index.php?link1=messages&user=$1;
  เขียนใหม่ ^/messages(/?|)$ /index.php?link1=messages;
}

สถานที่ /ข้อกำหนด {
  เขียนใหม่ ^/terms/([^\/]+)(\/|)$ /index.php?link1=terms&type=$1;
}

สถานที่ / วิดีโอ {
  เขียนใหม่ ^/video-call/([^\/]+)(\/|)$ /index.php?link1=video-call&call_id=$1;
  เขียนใหม่ ^/video-call-api/([^\/]+)(\/|)$ /index.php?link1=video-call-api&call_id=$1;
}

สถานที่ / โพสต์ {
  เขียนใหม่ ^/post/([^\/]+)(\/|)$ /index.php?link1=post&id=$1;
}

สถานที่ / เกม {
  เขียนใหม่ ^/game/([^\/]+)(\/|)$ /index.php?link1=game&id=$1;
}

ตำแหน่ง / อัปเกรด {
  เขียนใหม่ ^/upgraded(/?|)$ /index.php?link1=upgraded;
}

ตำแหน่ง /get_news_feed {
  เขียนใหม่ ^/get_news_feed(/?|)$ /index.php?link1=get_news_feed;
}

สถานที่ / เกม {
  เขียนใหม่ ^/games(/?|)$ /index.php?link1=games;
}

สถานที่ / ใหม่ {
  เขียนใหม่ ^/new-game(/?|)$ /index.php?link1=new-game;
  เขียนใหม่ ^/new-product(/?|)$ /index.php?link1=new-product;
}

สถานที่ / ไป {
  เขียนใหม่ ^/go-pro(/?|)$ /index.php?link1=go-pro;
}

สถานที่ = /oops {
  เขียนใหม่ ^(.*)$ /index.php?link1=oops;
}

ตำแหน่ง / ผู้ใช้ {
  เขียนใหม่ ^/user-activation$ /index.php?link1=user-activation;
}

ตำแหน่ง / แฮชแท็ก {
  เขียนใหม่ ^/hashtag/([^\/]+)(\/|)$ /index.php?link1=hashtag&hash=$1;
}

สถานที่ / ติดตาม {
  เขียนใหม่ ^/follow-requests/(.*)$ /index.php?link1=follow-requests;
}

ที่ตั้ง / p {
  เขียนใหม่ ^/p/([^\/]+)(\/|)$ /index.php?link1=page&p=$1;
}

ที่ตั้ง /g {
  เขียนใหม่ ^/g/([^\/]+)(\/|)$ /index.php?link1=group&g=$1;
}

ที่ตั้ง / บ้าน {
  เขียนใหม่ ^/home(/?|)$ /index.php?link1=home;
}

ที่ตั้ง /404 {
  เขียนใหม่ ^/404(/?|)$ /index.php?link1=404;
}

สถานที่ /ยินดีต้อนรับ {
  เขียนใหม่ ^/welcome(.*)$ /index.php?link1=welcome สุดท้าย;
}

ที่ตั้ง / ลงทะเบียน {
  เขียนใหม่ ^/register(/?|)$ /index.php?link1=register last;
}

สถานที่ / ยืนยัน {
  เขียนใหม่ ^/confirm-sms(/?|)$ /index.php?link1=confirm-sms ล่าสุด;
  เขียนใหม่ ^/confirm-sms-password(/?|)$ /index.php?link1=confirm-sms-password last;
}

ตำแหน่ง / ลืม {
  เขียนใหม่ ^/forgot-password(/?|)$ /index.php?link1=forgot-password last;
}

ตำแหน่ง / เปิดใช้งาน {
  เขียนใหม่ ^/activate(/?|)$ /index.php?link1=activate;
}

สถานที่ / หน้า {
  เขียนใหม่ ^/pages(/?|)$ /index.php?link1=pages;
}

สถานที่ / ชอบ {
  เขียนใหม่ ^/liked-pages(/?|)$ /index.php?link1=liked-pages;
}

ตำแหน่ง /joined_groups {
  เขียนใหม่ ^/joined_groups(/?|)$ /index.php?link1=joined_groups;
}   

สถานที่ / แนะนำ {
  เขียนใหม่ ^/suggested-pages(/?|)$ /index.php?link1=suggested-pages;
  rewrite ^/suggested-groups(/?|)$ /index.php?link1=suggested-groups;
}

ที่ตั้ง / กลุ่ม {
  เขียนใหม่ ^/groups(/?|)$ /index.php?link1=groups;
}

ที่ตั้ง / สร้าง {
  เขียนใหม่ ^/create-group(/?|)$ /index.php?link1=create-group;
  เขียนใหม่ ^/create-page(/?|)$ /index.php?link1=create-page;
  เขียนใหม่ ^/create-album$ /index.php?link1=create-album;
  เขียนใหม่ ^/create-album/([A-Za-z0-9_-]+)$ /index.php?link1=create-album&album=$1;
  เขียนใหม่ ^/create-blog(/?|)$ /index.php?link1=create-blog;
  เขียนใหม่ ^/create-app$ /index.php?link1=create-app;
}

ตำแหน่ง / ออกจากระบบ {
  เขียนใหม่ ^/logout(/?|)$ /index.php?link1=logout;
}

สถานที่/ติดต่อ {
  เขียนใหม่ ^/contact-us(/?|)$ /index.php?link1=contact-us;
}

ที่ตั้ง / การตั้งค่า {
  เขียนใหม่ ^/setting(/?|)$ /index.php?link1=setting;
  เขียนใหม่ ^/setting/([A-Za-z0-9_]+)/([A-Za-z0-9_-]+)$ /index.php?link1=setting&user=$1&page=$2;
}

สถานที่ / อัลบั้ม {
  เขียนใหม่ ^/albums(/?|)$ /index.php?link1=albums;
  เขียนใหม่ ^/albums/([A-Za-z0-9_-]+)$ /index.php?link1=albums&user=$1;
}

สถานที่ / อัลบั้ม {
  เขียนใหม่ ^/album/([A-Za-z0-9_-]+)$ /index.php?link1=album&id=$1;
}

สถานที่ / หน้า {
  เขียนใหม่ ^/page-setting/([^\/]+)(\/|)$ /index.php?link1=page-setting&page=$1;
  เขียนใหม่ ^/page-setting/([A-Za-z0-9_]+)/([A-Za-z0-9_-]+)$ /index.php?link1=page-setting&page=$1&link3=$2;
}

ที่ตั้ง / กลุ่ม {
  เขียนใหม่ ^/group-setting/([^\/]+)(\/|)$ /index.php?link1=group-setting&group=$1;
  เขียนใหม่ ^/group-setting/([A-Za-z0-9_]+)/([A-Za-z0-9_-]+)$ /index.php?link1=group-setting&group=$1&link3=$2;
}

ตำแหน่ง / แก้ไข {
  เขียนใหม่ ^/edit-product/([A-Za-z0-9_]+)$ /index.php?link1=edit-product&id=$1;
  เขียนใหม่ ^/edit-blog/(\d+)(/?|)$ /index.php?link1=edit-blog&id=$1;
}

ที่ตั้ง / ผลิตภัณฑ์ {
  เขียนใหม่ ^/products(/?|)$ /index.php?link1=products;
  เขียนใหม่ ^/products/([A-Za-z0-9_-]+)$ /index.php?link1=products&c_id=$1;
  เขียนใหม่ ^/products/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ /index.php?link1=products&c_id=$1&sub_id=$2;
}

ตำแหน่ง / ของฉัน {
  เขียนใหม่ ^/my-products(/?|)$ /index.php?link1=my-products;
  เขียนใหม่ ^/my-blogs(/?|)$ /index.php?link1=my-blogs;
}

ที่ตั้ง / ไซต์ {
  เขียนใหม่ ^/site-pages/(.*)$ /index.php?link1=site-pages&page_name=$1;
}

ที่ตั้ง / บล็อก {
  เขียนใหม่ ^/blogs(/?|)$ /index.php?link1=blogs;
}

ตำแหน่ง /แชร์ {
  เขียนใหม่ ^/sharer(/?|)$ /index.php?link1=sharer;
}

สถานที่ / บล็อก {
  เขียนใหม่ ^/blog-category/(\d+)(/?|)$ /index.php?link1=blog-category&id=$1;
}

สถานที่ / อ่าน {
  เขียนใหม่ ^/read-blog/(.*)$ /index.php?link1=read-blog&id=$1;
}

ตำแหน่ง /app_api {
  เขียนใหม่ ^/app_api(/?|)$ /index.php?link1=app_api;
}

ตำแหน่ง /api_request {
  เขียนใหม่ ^/api_request(/?|)$ /index.php?link1=app_api;
}

สถานที่ / อนุญาต {
  เขียนใหม่ ^/authorize(/?|)$ /index.php?link1=authorize;
}

ตำแหน่ง /poke {
  เขียนใหม่ ^/poke(/?|)$ /index.php?link1=poke;
}

สถานที่ /most_liked {
  เขียนใหม่ ^/most_liked(/?|)$ /index.php?link1=most_liked;
}

สถานที่/งาน {
  เขียนใหม่ ^/jobs(/?|)$ /index.php?link1=jobs;
}

สถานที่ /common_things {
  เขียนใหม่ ^/common_things(/?|)$ /index.php?link1=common_things;
}

ที่ตั้ง/เงินทุน {
  เขียนใหม่ ^/funding(/?|)$ /index.php?link1=funding;
}

ที่ตั้ง /my_funding {
  เขียนใหม่ ^/my_funding(/?|)$ /index.php?link1=my_funding;
}   
    
สถานที่ /create_funding {
  เขียนใหม่ ^/create_funding(/?|)$ /index.php?link1=create_funding;
}

ที่ตั้ง /edit_fund {
  เขียนใหม่ ^/edit_fund/(.*)$ /index.php?link1=edit_fund&id=$1;
}

ที่ตั้ง /show_fund {
  เขียนใหม่ ^/show_fund/(.*)$ /index.php?link1=show_fund&id=$1;
}

สถานที่ /สด {
  เขียนใหม่ ^/live(/?|)$ /index.php?link1=live;
}

ตำแหน่ง / ความทรงจำ {
  เขียนใหม่ ^/memories(/?|)$ /index.php?link1=memories;
}

สถานที่ / ข้อเสนอพิเศษ {
  เขียนใหม่ ^/offers(/?|)$ /index.php?link1=offers;
}

สถานที่ /nearby_shops {
  เขียนใหม่ ^/nearby_shops(/?|)$ /index.php?link1=nearby_shops;
}

สถานที่ /nearby_business {
  เขียนใหม่ ^/nearby_business(/?|)$ /index.php?link1=nearby_business;
}

สถานที่ / คืนเงิน {
  เขียนใหม่ ^/refund(/?|)$ /index.php?link1=refund;
}

สถานที่ / โฆษณา {
  เขียนใหม่ ^/advertise(/?|)$ /index.php?link1=advertise;
}

สถานที่ / ชำระเงิน {
  เขียนใหม่ ^/checkout(/?|)$ /index.php?link1=checkout;
}

สถานที่ / ซื้อ {
  เขียนใหม่ ^/purchased(/?|)$ /index.php?link1=purchased;
}

สถานที่ / คำสั่งซื้อ {
  เขียนใหม่ ^/orders(/?|)$ /index.php?link1=orders;
}

สถานที่ /customer_order {
  เขียนใหม่ ^/customer_order/(.*)$ /index.php?link1=customer_order&id=$1;
}

สถานที่/สั่งซื้อ {
  เขียนใหม่ ^/order/(.*)$ /index.php?link1=order&id=$1;
}

สถานที่ /รีวิว {
  เขียนใหม่ ^/reviews/(.*)$ /index.php?link1=reviews&id=$1;
}

ตำแหน่ง /open_to_work_posts {
  เขียนใหม่ ^/open_to_work_posts(/?|)$ /index.php?link1=open_to_work_posts;
}

สถานที่ / ห้าม {
  เขียนใหม่ ^/banned(/?|)$ /index.php?link1=banned;
}

สถานที่ / ถอน {
  เขียนใหม่ ^/withdrawal(/?|)$ /index.php?link1=withdrawal;
}

สถานที่ /ฟอรั่ม {
  เขียนใหม่ ^/forum(/?|)$ /index.php?link1=forum;
  เขียนใหม่ ^/forum/members(/?|)$ /index.php?link1=forum-members;
  เขียนใหม่ ^/forum/search(/?|)$ /index.php?link1=forum-search;
  เขียนใหม่ ^/forum/search-result/(/?|)$ /index.php?link1=forum-search-result;
  เขียนใหม่ ^/forum/events(/?|)$ /index.php?link1=forum-events;
  เขียนใหม่ ^/forum/help(/?|)$ /index.php?link1=forum-help;
}

สถานที่ /ฟอรั่ม {
  เขียนใหม่ ^/forums/(\d+)(/?|)$ /index.php?link1=forums&fid=$1;
  เขียนใหม่ ^/forums/add/(\d+)(/?|)$ /index.php?link1=forumaddthred&fid=$1;
  เขียนใหม่ ^/forums/thread/(\d+)(/?|)$ /index.php?link1=showthread&tid=$1;
  เขียนใหม่ ^/forums/thread/reply/(\d+)(/?|)$ /index.php?link1=threadreply&tid=$1;
  เขียนใหม่ ^/forums/thread/quote/(\d+)(/?|)$ /index.php?link1=threadquote&tid=$1;
  เขียนใหม่ ^/forums/thread/edit/(\d+)(/?|)$ /index.php?link1=editreply&tid=$1;
  เขียนใหม่ ^/forums/user/threads(/?|)$ /index.php?link1=mythreads;
  เขียนใหม่ ^/forums/user/threads/edit/(\d+)(/?|)$ /index.php?link1=edithread&tid=$1;
  เขียนใหม่ ^/forums/user/messages(/?|)$ /index.php?link1=mymessages;
}

สถานที่ / เหตุการณ์ {
  rewrite ^/events(/?|)$ /index.php?link1=events;
  เขียนใหม่ ^/events/create-event(/?|)$ /index.php?link1=create-event;
  เขียนใหม่ ^/events/edit/(\d+)/(/?|)$ /index.php?link1=edit-event&eid=$1;
  เขียนใหม่ ^/events/my(/?|)$ /index.php?link1=my-events;
  เขียนใหม่ ^/events/going(/?|)$ /index.php?link1=events-going;
  เขียนใหม่ ^/events/invited(/?|)$ /index.php?link1=events-invited;
  เขียนใหม่ ^/events/interested(/?|)$ /index.php?link1=events-interested;
  เขียนใหม่ ^/events/past(/?|)$ /index.php?link1=events-past;
  เขียนใหม่ ^/evens/(\d+)(/?|)$ /index.php?link1=show-event&eid=$1;
}

สถานที่ /ภาพยนตร์ {
  เขียนใหม่ ^/movies(/?|)$ /index.php?link1=movies;
  เขียนใหม่ ^/movies/genre/([A-Za-z-]+)(/?|)$ /index.php?link1=movies-genre&genre=$1;
  เขียนใหม่ ^/movies/country/([A-Za-z-]+)(/?|)$ /index.php?link1=movies-country&country=$1;
  เขียนใหม่ ^/movies/watch/(\d+)(/?|)$ /index.php?link1=watch-film&film-id=$1;
}

ตำแหน่ง /กระเป๋าเงิน {
  เขียนใหม่ ^/wallet(/?|)$ /index.php?link1=wallet;
}

สถานที่ /send_money {
  เขียนใหม่ ^/send_money(/?|)$ /index.php?link1=send_money;
}

ตำแหน่ง / สถานะ {
  เขียนใหม่ ^/status/create(/?|)$ /index.php?link1=create-status;
}

สถานที่ /เพิ่มเติม {
  เขียนใหม่ ^/more-status(/?|)$ /index.php?link1=more-status;
}

สถานที่/เพื่อน {
  เขียนใหม่ ^/friends-nearby(/?|)$ /index.php?link1=friends-nearby;
}

ที่ตั้ง /api {
  เขียนใหม่ ^/api(/?|)$ /api-v2.php;
  เขียนใหม่ ^/api/([^\/]+)(\/|)$ /api-v2.php?type=$1;
}

ที่ตั้ง /_ {
  เขียนใหม่ ^/_$ /requests.php;
}

ตำแหน่ง / กราฟ {
  เขียนใหม่ ^/graph-success$ /index.php?link1=graph-success;
}

สถานที่ = / นักพัฒนา {
  เขียนใหม่ ^(.*)$ /index.php?link1=developers;
}

สถานที่ = /apps {
  เขียนใหม่ ^(.*)$ /index.php?link1=apps;
}

สถานที่ = / กราฟ {
  เขียนใหม่ ^(.*)$ /index.php?link1=graph;
}

สถานที่ = /oauth {
  เขียนใหม่ ^(.*)$ /index.php?link1=oauth;
}

ตำแหน่ง / เพิ่ม {
  เขียนใหม่ ^/boosted-pages(/?|)$ /index.php?link1=boosted-pages;
  เขียนใหม่ ^/boosted-posts(/?|)$ /index.php?link1=boosted-posts;
}


สถานที่ / แหล่งที่มา {
  ปฏิเสธทั้งหมด
  กลับ 404;
}
ตำแหน่ง / สินทรัพย์ {
  ปฏิเสธทั้งหมด
  กลับ 404;
}
ตำแหน่ง /nodejs {
  ปฏิเสธทั้งหมด
  กลับ 404;
}
                    

}

นี่คือไฟล์ส่วนหนึ่งของสคริปต์เว็บไซต์นี้: ป้อนคำอธิบายรูปภาพที่นี่

ฉันมีวิธีทำให้ nginx ทำงานและประมวลผลเว็บไซต์ php ทั้งหมด, สคริปต์ด้วยตัวเองโดยไม่ต้องปรับแต่งอย่างละเอียด, แต่ละสคริปต์เว็บไซต์อิงตาม php.ini อันนี้สร้างด้วย laravel

สำหรับเว็บไซต์นี้ฉันควรแก้ไขอย่างไร

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา