جشنواره بهارانه راکت! ۳۵% تخفیف ویژه بر روی دوره‌های آموزشی

مشاهده دوره‌ها
ثانیه
دقیقه
ساعت
روز
hamid
2 هفته پیش توسط hamid مطرح شد
0 پاسخ

استفادە از ادان دامین برای سایت لاراولی

با سلام
من یک ساب دامین دارم کە سایت لارولیم رو روی اون هاست کردم و مشکلی ندارە.
اسم ساب دامنە cls.primarydomain.com هستش ،
کە در روت فلدر clsfile رو ساختم و در publichtml/cls فایلهای index رو قراردادم کە بە این صورت هستش:

<?php

use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.
|
*/

if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
    require $maintenance;
}

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/

require __DIR__.'/../../clsfile/vendor/autoload.php';

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/

$app = require_once __DIR__.'/../../clsfile/bootstrap/app.php';

$kernel = $app->make(Kernel::class);

$response = $kernel->handle(
    $request = Request::capture()
)->send();

$kernel->terminate($request, $response);

نیاز هست کە از اد ان دامین استفادە کنم و برای ساب دامینی کە عرض شد یک ساب دامین با نام cls.addondomain.com ایجاد کردم .

سوال من اینە کە چطور میتونم ساب دامین دوم(اد ان دامین) رو بە ساب دامین اول وصل کنم.؟

 تصویر

فکری کە بە نظرم رسید این بود کە در زمان ایجاد ساب دامنە دوم (اد ان دامین) ، Share document root رو فعال کنم کە این ارور رو داد:
 تصویر


ثبت پرسش جدید

به همدیگه کمک کنیم

به hamid کمک کنید تا مشکل خودش را حل کند؛ این‌طور می‌توانیم با هم پیشرفت کنیم.

برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام