Results 1 to 4 of 4

Thread: novice lighttpd/domain name questions

  1. #1
    Junior Member
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default novice lighttpd/domain name questions

    hi there

    forgive me if this is very simple but i'm new to hosting a webserver and am having trouble finding some straight answers - here goes...

    say i have a public ip xxx.xxx.xxx.xxx given by my isp and a domain name, www.mydomain.com, held elsewhere

    of course, i'd like it so that my ip address is masked by my domain name in a browser

    do i create an A record to point the domain name to my ip address and then have lighttpd resolve it back to my domain name?

    what, exactly, do i have to put in my lighttpd.conf? and is that, in fact, how this whole thing is done?

    thanks again

    chris

  2. #2
    Contributors amitabh's Avatar
    Join Date
    Jul 2008
    Location
    New Delhi
    Posts
    123
    Thanks
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    9

    Default

    Yes, you are correct in your assumptions.

    The first thing that you need to do is get the DNS record updated. Get 2 A records created/updated for your domain:
    domain.com A xxx.xxx.xxx.xxx
    www.domain.com A xxx.xxx.xxx.xxx

    After you complete the initial step, let the domain DNS propogate itself. The process generally happens these days within couple of hours, but might take up to 48-72 hours in some cases.
    As for lighttpd, you need to make some changes within the configuration file to make sure it responds for your domain name. Depending upon the distro you have choosen, configuration values can change, but it basically takes the filesystem path to your webroot and and entry for domain name. Look at these entries within your conf file
    Code:
    server.document-root = "/usr/local/www/lighttpd/data"
    server.errorlog = "/usr/local/www/lighttpd/log/lighttpd.error.log"
    accesslog.filename = "/usr/local/www/lighttpd/log/lighttpd.access.log"
    My settings are from a FreeBSD server, yours might change a little bit.

  3. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,515
    Thanks
    17
    Thanked 815 Times in 511 Posts
    Rep Power
    10

    Default

    do i create an A record to point the domain name to my ip address and then have lighttpd resolve it back to my domain name?
    Yes, you need to make changes to your name server. Lighttpd is webserver and not dns server. So make IP changes to your dns server. If your lighttpd IP is 202.54.1.2, it should be as follows in BIND:
    Code:
    yourdomain.com      IN   A    202.54.1.2
    what, exactly, do i have to put in my lighttpd.conf? and is that, in fact, how this whole thing is done
    ?
    Lighttpd.conf should be as follows:
    Code:
    server.document-root = "/home/lighttpd/yourdomain.com/http" 
    server.port = 80 
    server.bind = "202.54.1.2"
    Replace /home/lighttpd/yourdomain.com/http with actual path.
    Attached Files Attached Files
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  4. #4
    Junior Member
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    working, thanks everyone

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Novice needs to FTP from Windows to Linux
    By nikonf in forum Linux software
    Replies: 1
    Last Post: 15th June 2009, 11:15 AM
  2. Replies: 2
    Last Post: 6th June 2008, 01:53 PM
  3. Another Novice!
    By ed-j in forum The Hangout
    Replies: 16
    Last Post: 28th March 2008, 09:34 AM
  4. What is AJAX novice looking for?
    By sars in forum Coding in General
    Replies: 0
    Last Post: 18th January 2008, 09:48 AM
  5. lighttpd domain and subdomain settings
    By muks in forum Web servers
    Replies: 4
    Last Post: 8th March 2007, 07:39 PM

Tags for this Thread

Posting Permissions

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