Wednesday, October 31, 2012

source forge free vhost(自编自译)

1.create project


when a create one project on you will see one vhost in that:

当我创建一个项目 时,发现了下面一个选项:


then,i click admin vhost, it look that:

然后,我点击了 “admin vhost”:


i input, because i want to bind this domain only.

我只输入了,因为我现在只想绑定这个域名 environment

建立环境, 这里有中文介绍如何建工程:

see here:



Virtual Host (VHOST) Configuration


Virtual Hosts (VHOSTs) are a way of supporting many websites using a single pool of web servers. Each project on is allocated the VHOST for their Project Web site.

虚拟主机向服务器提供许多网站支持的功能.每一个新建的项目都带有一个类似  的虚拟主机

Some projects elect to register a vanity domain (such as Through our Custom VHOST service, project administrators may configure our servers to answer traffic for those domains.


Note: The VHOST facility is not available for the Developer web space.


Step 1: Register the domain


Domain name registration is not typically free; there is an initial cost which registers the domain name for some period of time, then ongoing renewal fees to keep the domain registered. You are responsible for these fees.


To register a domain, you should contact an ICANN-accredited domain registrar.


If you eventually decide to let your domain lapse, remember to update any links (to avoid the risk of someone else, like a porn website, registering that domain and surprising your users when they try to access information about your project.


Step 2: Configure DNS for your domain

第二步 配置您的域名的DNS

In order to have your domain point at some server which answers the traffic, you need to configure DNS (Domain Name Service) for the domain.

为了让服务器正常响应,你需要配置你的域名DNS. does not provide DNS services. Many domain registrars provide DNS services on a for-pay basis. There are also several free-to-the-public DNS services, such asGranite Canyon. Your DNS provider will supply documentation on how to use their service. You are responsible for any fees if you choose a for-pay DNS service.

Using the tools provided by your DNS provider, configure the following:

  • should be a IN A to
  • should be a CNAME to
  • should be a CNAME to


Step 3: Have us answer your traffic servers will not properly route the traffic for your domain until you configure your project's custom VHOSTs. Custom VHOSTs are managed through a self-service tool, which may be accessed as follows:

  1. Login to as a project administrator and go to the Project Summary page for your project.
  2. Go to the Project Admin pulldown menu.
  3. Click Feature Settings.
  4. Find the Virtual Hosts (VHOSTs) row.
  5. Click the 'Manage' link in the options column.
  6. Enter the domains that you would like us to answer for.
  7. Upload your content to your webspace (you may see 404 errors otherwise)

Records need to be added for each of the hostnames you want our servers to answer. If you want our servers to answer for and, you need to add these two records.

VHOST additions become active within six hours of being submitted.

We currently limit the number of custom VHOSTs to ten. Vote for action

how to login with ssh


注意:在此后的操作都建立在 Key Agent 基础上,所以 PAGEANT.EXE 不能关闭。如果不关闭,在putty登陆时,不用输入密码,直接登陆;如果关闭,在登陆putty时,需要手动输入自己的密码。
1. Session
host name: shell.sourceforge.netport: 22 ssh
2. Connection->Data
Login detail Auto-login username: user, project-name
3. Connection->SSH
Remote command: create

After that,you login is need some minutes.


File path description


[liandl@shell-23008 www]$ cd /home/
frs/ piwik/ scm_hg/ users/
logs-project-web/ project-web/ svn/ wordpress/
logs-user-web/ scm_bzr/ trac/
mediawiki/ scm_git/ user-web/


like the picture,i created blog(mount point:wordpress) + trac + piwik + mediawiki…

像这样,我有挂载blog(绑定在wordpress名字) +trac + piwik + mediawiki

bellow is my created projects in these years:


[liandl@shell-23008 www]$ cd /home/project-web/
error_logs/ pkautoupdate/ pkrssweb/
liandl.u/ pkrss/ pkstock/

bellow is my pkrssweb project wwwroot folder:


[liandl@shell-23008 www]$ cd /home/project-web/pkrssweb/
cgi-bin/ htdocs/

this is look the same as bellow picture in winscp.



No comments: