如何使用Lunarpages的Cpanel控制面板添加二级域名呢,下面我们就来介绍一下:
1、输入你的Cpanel地址,www.xxx.com/cpanel 进入cpanel面板,选择Subdomian选项
2、按照下图所示,输入二级域名的名称,单击添加

3、显示二级域名添加成功,在current sub-domains下面显示添加成功的二级域名 如下图所示:

5、二级域名添加成功后,会在根目录下自动生成一个以二级域名命名的文件夹
新建网站 (addon domain)/绑定域名到子目录
Cpanel新建网站就是把你的一个域名绑定到public_html下的一个子目录,使用addon添加域名即可,操作如下:
1.登录控制面板
2.点击addon domains进入添加域名页面,填写下面内容
New Domain Name:填写要绑定的域名
Username/directory/subdomain Name 填写绑定的目录,一般使用默认即可
Password: 密码
3.填写完毕以后点击add domain添加域名
出现如下提示就是添加成功了
lunarpagescn.com has been setup. It can be accessed via the subdomain lunarpages.lunarpagescn.com. FTP access has been granted with the user name lunarpagescn@lunarpagescn.com and the password 1234567.
添加成功以后自动生成一个FTP帐号和密码,分别是上面黑体标示的,用这个就可以登录新建立的网站的根目录了( 实际就是public_html下的一个子目录)
一般在添加域名以前需要修改NS为主机商的,例如lunarpages的是:
ns1.lunarservers.com
ns2.lunarservers.com
每个主机商的NS一般在开通邮件中可以找到。
否则添加域名可能会出错.
Fantastico自动安装程序列表及介绍
Blogs
Nucleus
WordPress
Content Management CMS系统
Geeklog
Joomla
phpWCMS
phpWebSite
Post-Nuke
Siteframe
Customer Relationship 客户关系
Crafty Syntax Live Help
Help Center Live
osTicket
PHP Support Tickets
Support Logic Helpdesk
Support Services Manager
Discussion Boards 论坛
SMF
E-Commerce 电子商务(网店)
CubeCart
OS Commerce
Zen Cart
F.A.Q.
FAQMasterFlex
Image Galleries 相册
4Images Gallery
Mailing Lists 邮件列表
PHPlist
Polls and Surveys 投票调查
Advanced Poll
phpESP
PHPSurveyor
Project Management 项目管理
dotProject
PHProjekt
Site Builders 自助建站
Templates Express
Wiki
PhpWiki
Other Scripts 其他
Dew-NewPHPLinks
Moodle
Noahs Classifieds
Open-Realty
PHPauction
phpFormGenerator
程序问题可以到这里讨论: http://www.idcspy.com/bbs/forum-60-1.html
编辑public_html目录下的.htaccess文件,加入如下语句.如果public_html下没有.htaccess文件,新建一个即可.
注意:将 yourmaindomain.com修改为你的域名,将subfolder修改为你要指向的public_html下的子目录.最后一行中的index.php修改为你的网站的主页名称.(修改粗体表示的内容,其他内容不要改动)
# www.host114.org
# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
# Change ’subfolder’ to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/subfolder/
# Don’t change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change ’subfolder’ to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /subfolder/$1
# Change yourdomain.com to be your main domain again.
# Change ’subfolder’ to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?yourmaindomain.com$
RewriteRule ^(/)?$ subfolder/index.php [L]
在cPanel中可以用addon domain添加新网站,但是很多人有这样的需求,如何将多个域名绑定到同一个网站。例如本站就绑定了两个域名,用www.enamebiz.com和www.idcspy.com访问到的是同一个网站。
下面以本站域名为例来说明一下操作过程。
如果要把其他的域名绑定到主域名对应的网站,很容易,直接在Parked Domain添加域名既可。
下面来说明一般的情况,要绑定的网站是用addon domain添加的如何操作。
以本站为例,假设已经用addon domain的功能添加了一个网站www.enamebiz.com对应的文件夹(Username/directory/subdomain Name: )是enamebiz,现在要绑定一个新的域名idcspy.com到已经有的这个网站。
还是使用addon domain添加域名idcspy.com,但是注意,对应的文件夹(Username/directory/subdomain Name: )不能使用默认的,而是修改为要绑定的那个网站对应的文件夹,我们这里用的是www.enamebiz.com对应的enamebiz,然后点击addon domain添加新域名。这样www.idcspy.com就绑定到原来的网站了,从而实现了多个域名绑定到一个网站。