Re: server full name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/1/2012 3:15 PM, Cheerful Gao wrote:
> *
> Hello,
> I want to build a website http://www.lankaoshenli.com/ and host this
> website using Apache http server on my PC with Windows 7 home premium. I
> need provide a full server name during the server installaton according
> to the document. Should this full server name be the same as the website
> name: www.lankaoshenli.com <http://www.lankaoshenli.com>;

Yes.

or should I
> register the full server name seperately? what is the relation between
> the website name and the full server name?

The "website name" is a "domain name", technically. And in most cases,
if not all, Apache's "ServerName" directive should match the
fully-qualified domain name (e.g.,  www.lankaoshenli.com).

Before you attempt to host this website on your home PC, I recommend
familiarizing yourself with the potential pitfalls of such a setup.

Firstly, If you have residential Internet service, chances are that you
are assigned a dynamic IP address that changes periodically. If this is
the case and your home IP address ever changes, your site will be
unreachable until you update your domain's DNS records to point to the
new IP address. An untenable setup, for certain.

The solution is to pay for a static IP address (some ISPs charge as
little as $1/mo. for this service, and some much more). If you have
"business class" Internet service, you may already have a static IP
address. If you're not sure, call your ISP and ask.

Secondly, if your Windows 7 computer sits behind a firewall (such as
that included with most cable and DSL routers), you must forward ports
80 and 443 to the correct IP address on your internal network (LAN). How
to do this depends entirely on your networking hardware. And, for the
port-forwarding rules to remain effective indefinitely, you must also
configure your router to assign a static IP address to your Windows 7
computer (by MAC address). You must also permit incoming connections on
these ports in your Windows Firewall configuration. (Windows 7 Home
Premium *does* have a Firewall, right?) I believe that the Apache
installer will modify the Windows Firewall automatically, but I could be
wrong.

Finally, don't forget to modify the DNS entries associated with your
domain so that the appropriate "A-records" (that for the www subdomain,
at a minimum) point to your home IP address. (For most configurations, a
quick trip to http://whatismyip.com from the computer on which Apache is
running will reveal the correct IP address to use in the DNS A-records.)

> Thanks.
>  
> Susan
> *

You're welcome. And please bear in mind that most of the above is
completely outside the scope of what is typically provided in the way of
Apache support. You're delving into some non-trivial networking topics
that are not Apache-specific.

Good luck!

-Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux