码迷,mamicode.com
首页 > Web开发 > 详细

How to enable your website to public(set up your web server at home)

时间:2014-06-09 13:00:33      阅读:420      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   a   http   

As a so exciting dream, I would like set up my owned web site which can be accessed anywhere nomatter from laptop/mobile phone or tablet. Current now I have get my web site done locally on my Win7/Ubuntu12.04LTS. You know on Microsoft‘s Windows, the Web Server software is IIS, but for Linux it is Apache. Following I will introduce the several very important steps to make my local web site public.

1. Make sure your web site can be accessed locally like this: 

bubuko.com,布布扣

bubuko.com,布布扣

2. Setup the mapping relationship for the router‘s public network IP with your LAN IP like this:

1) Access your router by the default IP address like 192.168.1.1(default username and passworkd are both "admin")

bubuko.com,布布扣

2) Go to Transmit Rules(转发规则)->Virtual Server(虚拟服务器), and then set the mapping relationship like below:
bubuko.com,布布扣

3. Access your web site by your local router‘s IP adderss(add:port number when necessary)

1) From the default page when hitting 192.168.1.1, we can find the public IP address like:

IP地址: 10.66.199.100 PPPoE按需连接

2) Access it like below:

bubuko.com,布布扣

4. Set up the mapping relationship with domain name and public IP addresss of your web site

1) Apply your own domain name like 52p1p.com

2) Go to the domain name application proxy organization like:http://www.net.cn/

3) Login with your credential by clicking the link Member Login(会员登录)

4) Click the "Enter Into Member Center(进入会员中心)->Domain Name Management(域名管理)->Domain Name Management->Check the checkbox of your owned domain name->Click the Domain Name Resolution(域名解析) button

5) Add an A record or updating the existing one if have like below:
bubuko.com,布布扣

5. After the domain name‘s resolution take effect, we can accee our website like below, congratulations!!!

bubuko.com,布布扣

Or 

bubuko.com,布布扣

How to enable your website to public(set up your web server at home),布布扣,bubuko.com

How to enable your website to public(set up your web server at home)

标签:c   style   class   blog   a   http   

原文地址:http://www.cnblogs.com/researcher/p/3776901.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!