Wednesday, October 31, 2012

source forge free vhost(自编自译)

1.create project

创建工程

when a create one project on http://pkrssweb.sourceforge.net you will see one vhost in that:

当我创建一个项目http://pkrssweb.sourceforge.net 时,发现了下面一个选项:

image

then,i click admin vhost, it look that:

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

image

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

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

2.build environment

建立环境, 这里有中文介绍如何建工程:http://hi.baidu.com/huzhirong/item/c3627aace1b2d6a828ce9d22

see here: https://sourceforge.net/apps/trac/sourceforge/wiki/Custom%20VHOSTs

请看这里: https://sourceforge.net/apps/trac/sourceforge/wiki/Custom%20VHOSTs

 

Virtual Host (VHOST) Configuration

虚拟主机配置

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

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

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

一些项目可以通过我们的VHOST服务来设置绑定您注册的一些顶级域名.

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

注意:VHOST单元不适用开发者网站空间.

Step 1: Register the domain

第1步,注册顶级域名

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.

联系ICANN认可的域名注册商去注册域名.

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.

SourceForge.net 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:

  • yourdomain.com should be a IN A to 216.34.181.97.
  • www.yourdomain.com should be a CNAME to vhost.sourceforge.net.
  • cvs.yourdomain.com should be a CNAME to PROJECTNAME.cvs.sourceforge.net.

image

Step 3: Have us answer your traffic

SourceForge.net 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 SourceForge.net 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 mydomain.org and www.mydomain.org, 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

如何使用ssh登陆

注意:在此后的操作都建立在 Key Agent 基础上,所以 PAGEANT.EXE 不能关闭。如果不关闭,在putty登陆时,不用输入密码,直接登陆;如果关闭,在登陆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.


这样,登陆时需要几分钟的等待创建shell.


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/


image

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:


下面是我的pkrssweb的wwwroot顶层目录:


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


this is look the same as bellow picture in winscp.


这和我们在winscp软件中长的一样.




image

No comments: