ฉันมี apache ที่โฮสต์เว็บไซต์
หนึ่งคือ 000-default.conf สำหรับ www.domain1.com
อีกอันหนึ่งคือ โดเมน2.conf สำหรับ www.domain2.com
และมีการกำหนดค่าเช่นนี้
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    ServerName activity.domain2.com
    ProxyPass / http://activity.domain2.com:8000
    ProxyPassReverse / http://activity.domain2.com:8000
</VirtualHost>
โดเมน2 กำลังชี้ http://activity.domain2.com:8000 ที่ให้บริการโดย Nginx
สำหรับ Nginx เซิร์ฟเวอร์ได้รับการกำหนดค่าดังนี้
เซิร์ฟเวอร์ {
    ฟัง 8000;
    server_name activity.domain2.com;
    สถานที่ = /favicon.ico { access_log off; ปิด log_not_found; }
    ตำแหน่ง / คงที่ / {
        รูท / รูท / โดเมน 2;
    }
    ที่ตั้ง / {
        รวม proxy_params;
        proxy_pass http://unix:/run/gunicorn.sock;
    }
ทุกอย่างเรียบร้อยดีด้วย www.domain1.com
ยกเว้นเมื่อฉันโหลด www.domain2.comให้บริการเฉพาะไฟล์ html แต่คำขอไฟล์คงที่มีข้อผิดพลาดกับรหัส ข้อผิดพลาดพร็อกซี 502
ฉันจะแก้ไขปัญหานี้ได้อย่างไร
อัปเดต: