PDA

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



teiran
March 12th, 2009, 13:27
سلام
من يك سرور مجازي دارم ميخوام ويلد كارد دي ان سي رو روي يكي از اكانت ها فعال كنم

لطفا اموزش فارسي قدم به قدم بديد

ممنون

Vahid
March 12th, 2009, 13:59
کنترل پنل؟

teiran
March 12th, 2009, 16:16
cpanel
لطفا اموزش كامل بديد

Vahid
March 12th, 2009, 19:25
فکر کنم مشکلت با این راه حل بشه


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?


login to whm
click on edit dns zone on the side navigation.
choose the domain to edit, and click on the edit button.
under add new entries below this line add this:
Domain: *
ttl: 14400 (this is the default value)
record type: a in (your ip address)
submit and this will now be added.
access your httpd.conf file. Login as root, via ssh.
to access the file in a cpanel server go to:
# cd /etc/httpd/conf/
use your favorite text editor, or just simply type:
# pico httpd.conf
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
exit or press ctrl x if using pico.
save the file when asked and replace the existing file.
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

teiran
March 22nd, 2009, 17:33
سلام
اقا من روي اين اموزش خيلي كار كردم اما از
Domain: *
ديگه چيزي درست حسابي متوجه نشدم من توي اين انجمن خيلي درخواست اموزش كردم همه رو نتيجه گرفتم بجز اين يكي بجز من خيلي ها هستند كه اينو بلد نيستند اگر يه لطف كني وقت بزاري اينو گام به گام راهنمايي كني فارسي ممنونت هستيم

teiran
March 22nd, 2009, 17:34
سلام
اقا من روي اين اموزش خيلي كار كردم اما از
Domain: *
ديگه چيزي درست حسابي متوجه نشدم من توي اين انجمن خيلي درخواست اموزش كردم همه رو نتيجه گرفتم بجز اين يكي بجز من خيلي ها هستند كه اينو بلد نيستند اگر يه لطف كني وقت بزاري اينو گام به گام راهنمايي كني فارسي ممنونت هستيم

teiran
March 22nd, 2009, 20:33
اقا ميشه كمي سريعتر

Vahid
March 22nd, 2009, 21:15
کاری نداره
شما یه دیکشنری باز کنید و معنی کنید
دیگه راهی بهتر این نیست

yasgig
January 28th, 2011, 11:44
منم نمیتونم ویلکارد رو واسه دامنه خودم فعال کنم.همه آموزشهایی رو که توی نت هست قدم به قدم انجام دادم ولی نشد.پنلم kloxo یا همون Lxadmin سابق هست.در ضمن به روت هم دسترسی دارم.لطفا راهنمایی کنید.
با تشکر