Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36
Like Tree1Likes

Thread: Home Web Hosting

  1. #21
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts
    for me i have my own ns server (with watch dog), whatever domain just point to my ns server than point to my ip (so one ip only) ...

    http://support.godaddy.com/help/arti...meservershosts

  2. #22
    Gavo is offline Newbie Net Builder
    Join Date
    Dec 2012
    Posts
    19
    Thanks
    0
    Thanked 4 Times in 3 Posts
    You can use eg. namecheap.com, host DNS with them and add a A record to your server IP.

    The site should work then, if your using multiple sites edit your httpd.cnf adding the sites.

  3. #23
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,050
    Thanks
    345
    Thanked 909 Times in 694 Posts
    Quote Originally Posted by Andy101 View Post
    Edit: So I need a name server responder program running on my server?

    I don't understand why specifying an IP address for a name server domain is not enough. So if you ping it, the ping is then relayed to the server and then what happens?

    It's really difficult to understand the mechanism involved and how to set it up. One difficulty is knowing what question to ask.

    In my situation, I set up one of my domains at say Namecheap.com as a name server domain such as ns1.mydomain.com and set it's IP address as that of my web server. Then I assign this name server domain to one of my domain names that this web server will deliver web content for.

    So if I enter my domain name abc.com into a web browser and it's name server is ns1.mydomain.com that is associated with the IP address of my web server that will recognize abc.com in the request, how come it doesn't work?
    It may have to do with the virtual host setup on your home server. The IPs for the namesevers are typically not the same as the IP for a web site, and thousands of web sites can reside on a single IP.

    Again, I am not a expert in this area, but the process may flow more like this:

    domain name lookup > domain name nameserver points to host nameservers > host nameservers resolve to individual sites on virtual host.

    The nameservers you set up at a registrar may be just pointers to the nameservers on the host. The nameservers on the host may be what is missing.

    On my in-house Linux development server we use the hosts file in Windows to point internal domain names to individual test sites that each have a network IP (not web visible) assigned to them in the httpd.conf file. Do you have the httpd.conf file configured for the virtual host? Gavo mentioned this, and I suspect that is where your problems lie.


    I am surprised that none of the experienced server technicians on NB have jumped in with an answer to your questions. I am also curious about the best way to do this.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  4. #24
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    On my in-house Linux development server we use the hosts file in Windows to point internal domain names to individual test sites that each have a network IP (not web visible) assigned to them in the httpd.conf file. Do you have the httpd.conf file configured for the virtual host? Gavo mentioned this, and I suspect that is where your problems lie.
    I have this working ok for virtual hosts. Even so, a domain that is unrecognized by the server results in a default web page being delivered.

    At GoDaddy I previously added "hosts" to a domain to create private nameservers that are used by my WHM account. On this server there is a DNS Zone File for the nameservers (so I guess that this and some DNS server setup is what I am missing on my home server). If I ping these nameservers, I get a response of the server's IP address.

    But if I set up some "hosts" (private nameservers) in the same way that point to my home server and ping them. I get no response. The same for a nameserver subdomain set up at Namecheap.

    These "hosts" entries are different to subdomains since they are "registered" nameserver domains.

    Edit: I posted a support question to GoDaddy, so hopefully they can advise what to do.

    Not sure if it matters, but on the Linux box I have a firewall with only port 80 and 22 open.
    Last edited by Andy101; 1 April, 2013 at 06:33 AM.

  5. #25
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    3,050
    Thanks
    345
    Thanked 909 Times in 694 Posts
    Quote Originally Posted by Andy101 View Post
    Edit: I posted a support question to GoDaddy, so hopefully they can advise what to do.
    Lots of luck getting any type of intelligent answer from GoDaddy. Their tech support has deteriorated considerably over the past year. After receiving about a half-dozen complete nonsense answers to issues I raised about the hosting and e-mail problems, I have given up on them.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  6. #26
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    Too bad. Their tutorial sections on their site seem good to me. And the domain admin interfaces are nice. Let's see what transpires. I can also post a support ticket to NameCheap later.

    btw. I am getting tired of the battle to get a Linux web server working on my low-spec. mini-ITX hardware (only puppy Linux version 4.1.3 OS seems to work on it). I can do it all with Windows without 90% of the hassle for sure. Thinking to build a new server box and run Windows XP SP3 on it with a WAMP server. Meanwhile, I just paid for another month of web hosting since my home server is still in development mode

  7. #27
    robjones's Avatar
    robjones is offline Trail Boss
    Join Date
    Dec 2008
    Location
    Lone Star State
    Posts
    1,112
    Thanks
    513
    Thanked 441 Times in 292 Posts
    Might try dropping an email or PM to Will. Believe he's running his own server. Maybe he has input.
    -- Do not meddle in the affairs of dragons, for you are crunchy and good with ketchup. --

  8. #28
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    I got a response from GoDaddy Tech Support, they said that I need to set up "A" records for the hosts which I did i.e. as well as registering the ns1 and ns2 subdomains as hosts for nameserving, I also added them as subdomain "A" records in the zone file that is hosted on the domain registrar site. But still, they don't appear to work when assigned as nameservers to a domain name.

    As regards the server, I decided to use a laptop instead with 2GB RAM and a 160GB hard drive. I partitioned the hard drive as 10GB for Windows XP (NTFS file system), 10GB for Linux (ext4 file system), 40GB for websites (FAT32 file system), and the rest for miscellaneous data (NTFS file system). FAT32 is compatible with both Linux and Windows for read/write operations.

    To do the partitioning I booted up Puppy Linux on a Live CD and ran the GParted utility (this is a really easy and quick way to partition your HDD).

    Now I set up the server based on Windows XP SP3 with Apache 2, PHP5, and MySQL. And the Linux partition is there as an emergency if for some reason XP breaks. I am keeping my website data isolated from the operating system partition.

    I had a few small problems getting PHP and Apache to work together in Fast CGI mode involving choosing the versions that were compiled with compatible versions of the MS C++ compiler, and installing the C++ (2008 + 2010) run time distribution code.

    For the domains. I will go with dynamic DNS for now. Later, figure out how to implement Name Servers since it's the least important factor.

  9. #29
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    Setting up a home web server is great fun. Now I am starting to move my websites from paid hosting to this home server. And now I am figuring out how to integrate AWStats which is my favorite web stats package, best of all it is free software which surprised me.

  10. #30
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,252
    Thanks
    173
    Thanked 303 Times in 230 Posts
    To run multiple instances of scripts such as WordPress, I am making all of my sites use one install of the code with a mod to the config.php file to switch the database tables based on the domain name. This makes it easy to update the script, and conserve memory at the expense of overall speed.

    In the Apache web server httpd.conf file I have various aliases set up to map the location of the blog of a website to the location of the WordPress script containing the modded config file. Basically, the table prefix is changed according to the domain name (host) of the site. Hopefully, the same method can be applied to other common scripts such as forums like MyBB where only the database table prefix may need to change between sites.

    If you install the script separately to every site, you have to update every script on each script version update, and the server will likely eat up RAM if the sites get simultaneous hits on their blogs.

    Probably, this is not a good approach to take on a server that is servicing your clients, but for your own sites it makes sense to me where server resources are limited and traffic is not so high.

Page 3 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •