نمایش نتایج: از شماره 1 تا 9 , از مجموع 9

موضوع: اموزش فعال سازي ويلدكارد دي ان سي

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #4
    مدیر کل Vahid آواتار ها
    تاریخ عضویت
    Aug 2008
    نوشته ها
    2,724
    تشکر تشکر کرده 
    435
    تشکر تشکر شده 
    6,991
    تشکر شده در
    2,087 پست

    پیش فرض پاسخ : اموزش فعال سازي ويلدكارد دي ان سي

    فکر کنم مشکلت با این راه حل بشه
    in some cases, you will want a subdomain to be the same as the homepage of a website. For example:
    http://www.domain.com
    http://sub.domain.com
    http://whatever.domain.com
    http://something.domain.com
    http://anything.domain.com
    will all show the same page. Even if you just invented one subdomain up, it will still show the same page, the homepage. Err, hmmm what’s the use of that? Well for some this is totally non-sense, but for some, it totally makes sense why to do this, where you can be having the same file running and just using server-side scripts to change content of a website dynamically. Now if you believe wildcard dns is something you need to do in order to achieve something like this and is running a cpanel server, how can this be done?
    First is, if you just have a shared hosting account and has no access to whm and no ssh access to the httpd.conf file, you might need to ask permission from the server owner. If you run your own server, or is given the freedom to play around with these files, you can go ahead and follow the procedure.
    But i do believe there may also be some other way to do this, maybe with just playing around with the .htaccess file, but tough regex commands and .htaccess modifications are not my cup of tea. Another thing is, i am not guaranteeing anyone that what you will do will not mess up your servers. Although this procedure has served me well, if ever something happens to your server as a result of following this procedure, i, the author, this website, my business, my friends, my cats and my dogs will not be held responsible for what ever losses may occur on your end.
    Ok now, how to do it?

    1. login to whm
    2. click on edit dns zone on the side navigation.
    3. choose the domain to edit, and click on the edit button.
    4. under add new entries below this line add this:
      Domain: *
      ttl: 14400 (this is the default value)
      record type: a in (your ip address)
    5. submit and this will now be added.
    6. access your httpd.conf file. Login as root, via ssh.
    7. to access the file in a cpanel server go to:
      # cd /etc/httpd/conf/
    8. use your favorite text editor, or just simply type:
      # pico httpd.conf
    9. do a find on your domain and you may find something like this:
      Serveralias yourdomainserver.com
      serveradmin webmaster@yourdomainserver.com
      documentroot /home/yourdoma/public_html
      byteslog domlogs/yourdomainserver.com-bytes_log
      servername www.yourdomainserver.com
      user yourdoma
      group yourdoma
      customlog /usr/local/apache/domlogs/yourdomainserver.com combined
      scriptalias /cgi-bin/ /home/yourdoma/public_html/cgi-bin/

      on the line:
      serveralias yourdomainserver.com
      change to:
      serveralias: *.yourdomainserver.com yourdomainserver.com
    10. exit or press ctrl x if using pico.
    11. save the file when asked and replace the existing file.
    12. restart the apache web server by typing in:
      # service httpd restart

    done! You are all set to go. Wildcard dns enabled on a cpanel server
    برای پیش رفت در علم آسانسوری وجود ندارد پله ها را باید پیاده رفت /./ همیشه این یادتان باشد که دست بالای دست بسیار است.
    يادمان باشد براي يك بار ايستادن صد ها بار افتاده ايم /./ بک آپ مهمترین رمز موفقیت هاستینگ /./ امنیت مطلق نیست.
    ارتباط مستقیم با من :
    Admin -{(@)}- WebHostingTalk . ir

  2. تعداد تشکر ها از Vahid به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 0
    آخرين نوشته: January 20th, 2017, 11:59
  2. پاسخ ها: 35
    آخرين نوشته: June 30th, 2014, 17:58
  3. پيشنهاد غير ويژه سرور مجازي ويندوز !
    توسط PoshtibanCo در انجمن فروش سرور مجازی
    پاسخ ها: 3
    آخرين نوشته: September 9th, 2012, 12:20
  4. فروش ويژه سرور هاي مجازي **ويندوز و لينوكس**
    توسط mersad-mr در انجمن فروش سرور مجازی
    پاسخ ها: 0
    آخرين نوشته: January 17th, 2012, 21:08
  5. فروش ويژه سرور هاي مجازي ويندوز و لينوكس
    توسط javadhey در انجمن فروش سرور مجازی
    پاسخ ها: 0
    آخرين نوشته: September 15th, 2009, 16:24

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •