عكس البروكسي لموقع ويب
في ServBay، يمكنك استخدام ميزة البروكسي العكسي لعكس موقع ويب على خادم آخر في شبكتك الداخلية إلى جهاز الكمبيوتر المحلي الخاص بك، مما يجعل مهام التطوير وتصحيح الأخطاء أسهل. سيوضح هذا المقال كيفية إعداد بروكسي عكسي في ServBay وتقديم مثال حول كيفية عكس موقع ويب من خادم داخلي إلى جهازك المحلي.
نظرة عامة
البروكسي العكسي هو خادم يتلقى طلبات العملاء من خادم واحد أو أكثر ويعيد توجيهها إلى الخادم المناسب. البروكسيات العكسية مفيدة جدًا في التطوير وتصحيح الأخطاء لأنها يمكنها عكس موقع ويب من خادم داخلي إلى جهازك المحلي، مما يسهل الوصول والاختبار.
خطوات إضافة موقع ويب عبر بروكسي عكسي
الخطوة 1: تحضير الخادم الداخلي
تأكد من أن موقع الويب على الخادم الداخلي يعمل بشكل صحيح ويمكن الوصول إليه عبر عنوان IP والبوابة الداخلية. على سبيل المثال، افترض أن عنوان IP للخادم الداخلي هو 192.168.1.100
، وأن الموقع يعمل على البوابة 8080
.
الخطوة 2: فتح واجهة إدارة ServBay
ابحث عن ServBay
في التطبيق وانقر نقرًا مزدوجًا لفتحه.
الخطوة 3: الانتقال إلى إدارة المضيف
بعد فتح البرنامج، ستشاهد الواجهة الرئيسية لـ ServBay. في قائمة التنقل اليسرى، انقر على Host
. سيأخذك هذا إلى صفحة إدارة الموقع.
الخطوة 4: إضافة موقع ويب جديد
في صفحة إدارة الموقع، انقر على زر +
في أسفل الصفحة. سيفتح هذا نموذجًا جديدًا على الجانب الأيمن لإدخال المعلومات الأساسية للموقع الجديد.
الخطوة 5: تكوين إعدادات البروكسي العكسي
في صفحة إضافة موقع ويب، تحتاج إلى ملء المعلومات التالية:
- الاسم: اسم الموقع للتعريف.
- اسم النطاق: أدخل اسم النطاق للموقع الذي تريد إضافته، مثل
proxy.to.local
. - البروتوكول: البروتوكول المدعوم من الموقع، الافتراضي هو HTTP/HTTPS.
- طريقة طلب شهادة SSL: يُوصى باختيار
مُوقع ذاتيًا
، والذي سيتم إنشاؤه وإدارته تلقائيًا بواسطة ServBay. - نوع الموقع: اختار
بروكسي عكسي
لتحديد أن الموقع يتم الوصول إليه عبر البروكسي العكسي للخادم الداخلي. - الهدف البروكسي: أدخل عنوان IP الداخلي للخادم والبوابة، مثل
192.168.1.100
وبوابة8080
.
الخطوة 6: الإكمال والحفظ
بعد ملء جميع المعلومات اللازمة، انقر على زر إضافة
. سيقوم ServBay بإنشاء تكوين الموقع الجديد تلقائيًا وإجراء الإعدادات الضرورية على المضيف.
بعد الحفظ بنجاح، يمكنك النقر على أيقونة المتصفح في الزاوية العلوية اليمنى للوصول إلى الموقع.
الخطوة 7: العمليات السريعة
يوفر ServBay مجموعة من الأزرار العمليات السريعة للموقع، بما في ذلك:
- فتح الموقع مع IDE للتعديل السريع
- فتح الموقع في المتصفح
- عرض سجلات الموقع
- إيقاف وتشغيل الموقع
- حذف الموقع
المشاكل الشائعة والحلول
الموقع غير متاح
- تحقق من تحليل النطاق: تأكد من أن اسم النطاق يشير بشكل صحيح إلى عنوان IP لخادم ServBay.
- تحقق من إعدادات الجدار الناري: تأكد من أن الجدار الناري يسمح بالوصول الخارجي إلى بوابات خادم ServBay (عادة بوابات 80 و 443).
- عرض سجلات الأخطاء: تحقق من ملف سجل الأخطاء للبروكسي العكسي للعثور على معلومات الخطأ المحددة وإصلاحها وفقًا لذلك.
الخادم الداخلي غير متاح
- تأكد من أن الخادم الداخلي يعمل بشكل طبيعي: قبل إضافة البروكسي العكسي، تأكد من أن موقع الويب على الخادم الداخلي يعمل بشكل طبيعي ويمكن الوصول إليه عبر عنوان IP الداخلي والبوابة.
- تحقق من اتصال الشبكة: تأكد من أن اتصال الشبكة بين خادم ServBay والخادم الداخلي طبيعي، ولا توجد قواعد عزل للشبكة أو جدار ناري تمنع الوصول.
الملخص
إعداد بروكسي عكسي في ServBay هو عملية بسيطة وسهلة الفهم. من خلال البروكسي العكسي، يمكنك عكس موقع ويب من خادم داخلي إلى جهازك المحلي، مما يسهل مهام التطوير وتصحيح الأخطاء. باتباع الخطوات المذكورة أعلاه، يمكنك بسهولة إضافة وتكوين بروكسي عكسي لموقع ويب. من خلال التكوين والإدارة المعقولين، يمكنك ضمان تشغيل الموقع بثبات في بيئة ServBay. إذا واجهتك مشاكل، يمكنك الرجوع إلى المشاكل الشائعة والحلول لاستكشاف الأخطاء وإصلاحها.