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


    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: 

    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")

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

    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:

    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:

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

    Or 

  • 相关阅读:
    Java集合之ArrayList
    深入理解Java中的String
    Spring系列之AOP实现的两种方式
    设计模式之代理模式
    使用 Composer 为 ThinkPHP(3.2.3)框架添加和管理组件
    滚动页面, 顶部导航栏固定效果
    nginx同一iP多域名配置方法
    nginx 服务器重启命令,关闭
    CentOS Linux服务器安全设置
    CentOS7安装iptables防火墙
  • 原文地址:https://www.cnblogs.com/researcher/p/3776901.html
Copyright © 2020-2023  润新知