nginx กำลังค้นหา phpMyAdmin ในตำแหน่งที่ไม่ถูกต้อง
การกำหนดค่า nginx ของฉัน:
เซิร์ฟเวอร์ {
        ฟัง 80;
        ฟัง [::]:80;
        access_log /var/log/nginx/reverse-access.log;
        error_log /var/log/nginx/reverse-error.log;
        รูท /var/www/MY_DOMAIN/html;
        ดัชนี index.html index.html index.php;
        ชื่อเซิร์ฟเวอร์ MY_DOMAIN www.MY_DOMAIN.com;
        ที่ตั้ง / {
        try_files $uri $uri/ =404;
    }
    ตำแหน่ง ~ \.php$ {
        รวมตัวอย่าง/fastcgi-php.conf;
        fastcgi_pass ยูนิกซ์:/var/run/php/php7.4-fpm.sock;
     }
    ตำแหน่ง ~ /\.ht {
        ปฏิเสธทั้งหมด
    }
        สถานที่ /APP_LOCATION {
         proxy_pass http://localhost:3000;
         proxy_http_version 1.1;
         proxy_set_header อัพเกรด $http_upgrade;
         proxy_set_header การเชื่อมต่อ 'อัปเกรด';
         proxy_set_header โฮสต์ $host;
         proxy_cache_bypass $http_upgrade;
  }
}
ฉันได้ symlink จาก /usr/share/phpmyadmin ไปยัง /var/www/MY_DOMAIN/html/phpmyadmin
แต่ nginx ยังคงมองหาตำแหน่งเริ่มต้นสำหรับ phpMyAdmin
บันทึกข้อผิดพลาด:
2021/08/27 13:24:41 [ข้อผิดพลาด] 1114474#1114474: ไม่พบ *2 "/usr/share/nginx/html/phpmyadmin/index.html" (2: ไม่มีไฟล์หรือไดเรกทอรีดังกล่าว) ลูกค้า: xxx.xx.x.xxx, เซิร์ฟเวอร์: , คำขอ: "GET /phpmyadmin/ HTTP/1.1", โฮสต์: "MY_DOMAIN.com"