PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : طريقه فعال سازي wild card



sayeh
June 14th, 2010, 20:20
با سلام
مديران عزيز يك سوال داشتم و اونم اينه كه چطورري ميشه wild card رو در kloxo فعال كرد ؟
مرسي

---------- Post added at 07:53 PM ---------- Previous post was at 07:52 PM ----------

در ضمن من دسترسي به روت رو هم دارم

---------- Post added at 08:20 PM ---------- Previous post was at 07:53 PM ----------

دوستان عزيز يك كمكي برسونيد. ممنون ميشم

1eng.ir
June 14th, 2010, 21:11
آموزش فعال کردن Wild Card DNS در Kloxo

1- ابتدا از طریق روت به کنترل پنل دامنه مورد نظر وارد شوید و در بخش تنظیماتManage Dns یک رکورد جدید A اضافه کنید
در قسمت Hostname ستاره وارد کنید (*)
و در قسمت Value آی پی سرور تان را وارد کنید
سپس به مدیریت فایلهای روت سرور بروید و مسیر زیر را دنبال کنید
home/httpd/domain.com/conf/kloxo.domain.com
سپس فایل آخر مسیر را ویرایش کنید و مقدار ServerAlias http://www.domain.com
را بصورت ServerAlias *.domain.com تغییر دهید
توجه در فایل بالا مقدار فوق را فقط در این قسمت پورت 80 تغییر دهید سایر پورتها را تغییر ندهید<|VirtualHost 255.255.255.255:80|>
تغییرات را ذخیره و سرور را ریستارت کنید
---------------------------------------------------------------------------------------------------------------------------------
فعال شد =|> تا اینجا کار مدیر هاست به پایان رسیده است و حالا نوبت یوزر هست که به سابدمین مجازی مسیر بدهد

طریقه ایجاد مسیر :

یک فایل با نام .htaccess ایجاد کنید ( توجه اگر در ویندوز باشید امکان ایجاد اینچنین نامی وجود ندارد وقتی آنرا به سرور لینوکس انتقال دادید نامش را بصورت بالا تغییر دهید)
در این فایل کد پایین را کپی کنید
RewriteEngine On
Options +Followsymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^email. [NC]
RewriteCond %{REQUEST_FILENAME} !^.*/images/.*$
RewriteCond %{REQUEST_FILENAME} !^.*/uploads/.*$
RewriteCond %{HTTP_HOST}<||>%{REQUEST_URI} ^([^.]+).domain.com(:80)?<||>/([^/]*) [NC]
RewriteCond %1<||>%3 !^(.*)<||>1$ [NC]
RewriteRule ^(.*)$ - [E=BLOGUSER:%1]
RewriteCond %{ENV:BLOGUSER} ^(.+)$
RewriteRule ^$ /index.php?username=$1 [L]

فایل را به روت سایتتان انتقال دهید توجه داشته باشید این سیستم در پوشه کار نمی کند فقط روت سایت

حالا باید به سراغ فایل PHP ای بروید که قرار هست محتوای سابدمین مثلا وبلاگ را نمایش دهد در بالا نام این فایل index.php است که در آن Username دریافت می شود و اطلاعات این نام کاربری را نمایش می دهد

در بالاترین قسمت فایل کد پایین را کپی کنید و آنرا دخیره کنید

function selfURL() {
$s = empty($_SERVER[HTTPS]) ? : ($_SERVER[HTTPS] == on) ? s : ;
$protocol = strleft(strtolower($_SERVER[SERVER_PROTOCOL]), /).$s;
$port = ($_SERVER[SERVER_PORT] == 80) ? : (:.$_SERVER[SERVER_PORT]);
return $protocol.://.$_SERVER[SERVER_NAME].$port.$_SERVER[REQUEST_URI]; }
function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); }

function getlink($string){
$string=str_replace(http://,,$string);
$string=str_replace(www.,,$string);
$string=str_replace(.domain.com,,$string);
$string=str_replace(/,,$string);
return $string;

}

$nameofsubdomain= getlink(selfURL());

کار تمام شد فقط کافی هست یک مقدار کد PHP بنویسید و از متغیر $nameofsubdomain استفاده کنید فراموش نکنید که محتوای این متغیر همان نام کاربری ای هست که برنامه ما برای بازیابی اطلاعات از پایگاه داده به آن نیاز دارد


منبع: کاملترین آموزش فعال کردن Wild Card DNS د (http://www.asadiweb.com/forums/view.php?page=1&&board=7&&topic=19)

پ.ن: گوگل را فراموش نکنید!

sayeh
June 14th, 2010, 21:41
بابا 1eng جان، خيلي شرمنده كردي. كارت خيلي درسته به مولا

موفق باشي

sayeh
June 15th, 2010, 19:54
با سلام
اسكريپت ساب دامين رو ميسازه ولي وقتي مي خواي واردش بشي اين اخطار رو ميده




This is the Kloxo Default Page

If you are seeing this page, it means that web has not been configured for this domain on this server.

This could be due to the following causes:

# Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart.

# The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses

# If you are seeing this page when you try to access an IP like http://192.168.1.1, then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain.

# Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> domain.com should mean that domain.com pings to the same IP.

تمام مراحل رو مانند بالا رفتم ، فقط در يخشي كه (سپس به مدیریت فایلهای روت سرور بروید و مسیر زیر را دنبال کنید
home/httpd/domain.com/conf/kloxo.domain.com
سپس فایل آخر مسیر را ویرایش کنید و مقدار ServerAlias http://www.domain.com
را بصورت ServerAlias *.domain.com تغییر دهید
توجه در فایل بالا مقدار فوق را فقط در این قسمت پورت 80 تغییر دهید سایر پورتها را تغییر ندهید<|VirtualHost 255.255.255.255:80|>
تغییرات را ذخیره و سرور را ریستارت کنید
) اين فايل اونجا نبود و من از يكي ديگه از دامنه ها فايل رو برداشتم و داخلش تغييرات دادم و در محل مورد نظر آپلود كردم. به نظر شما مشكل از اونجا ناشي ميشه؟ و چه فايل اونجا وجود نداشت؟

Shc
June 16th, 2010, 22:08
سلام
یک ساب دامین با نام * برای دامین مربوطه و با آدرس ریشه جایی که سیستم رو نصب کردید ایجاد کردید.
مثلا تو سی پنل بدین صورته:
/public_html/
تو کلکسو هم چون کار نکردم نمیدونم چجوریه.

wordpress
April 28th, 2011, 03:05
واسه من هم همین پیغام میاد:


This is the Kloxo Default Page

If you are seeing this page, it means that web has not been configured for this domain on this server.

This could be due to the following causes:

# Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart.

# The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses

# If you are seeing this page when you try to access an IP like http://192.168.1.1 (http://192.168.1.1/), then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain.

# Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> domain.com should mean that domain.com pings to the same IP

البته همان طور که آقای sayeh گفتند فایل در مسیر home/httpd/domain.com/conf/kloxo.domain.comوجود نداره. خیلی سرچ کردم همه جا همین آموزش رو گذاشتن. یه سایت خارجی رو هم دیدم که همینجوری آموزش داده بود ولی چنین فایلی وجود نداره چیکار کنم؟

da77
June 5th, 2011, 20:24
سلام منم همین مشکلو دارم دامینی هم ادد می کنم همین ارور میاد

This is the Kloxo Default Page

If you are seeing this page, it means that web has not been configured for this domain on this server.

This could be due to the following causes:

# Kloxo has not restarted the web server yet after you added the domain. Please wait for the web server to restart.

# The domain is pointing to the wrong Kloxo server. Ping the domain and make sure that the IP matches one of the IPaddress seen in admin home -> ipaddresses

# If you are seeing this page when you try to access an IP like http://192.168.1.1, then that means that the IP has not yet been mapped to a domain. Go to client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain.

# Once you map an IP to a domain, then you have to make sure that the domain pings back to the same IP. Otherwise, if you try to access the domain, you will get this page. So IP -> domain.com should mean that domain.com pings to the same IP.