Results 1 to 3 of 3
  1. #1

    Alright a little linux question

    I have run a linux server before and im planning on running ensim on my linux box. I know how to configure apache and all that for server name and paths and stuff. But what i need to know is how i tell the server its ip since im gonna be running multiple sites on one ip.

    Also how do i go about running all the domains on the one ip. Do i have to setup a dns server stuff or can i just point the domains at the ip and the server will determine where to pull from based on the domain.

  2. #2
    Join Date
    Oct 2001
    Posts
    307
    You're talkin' about "Name-based virtual hosting"

    http://httpd.apache.org/docs/vhosts/name-based.html

    *BAM!*

    How it works (in a sentence) is Apache looks at the request header, sees which domain name is requested, and serves the appropriate file. From a DNS standpoint, you just use the same IP address for more than one domain.

    FYI, you might want to try a different forum for further questions, like "Technical Issues"... probably get better response.
    Adam
    GetWebSpace.com
    Personal Life Timed Out Due To Inactivity

  3. #3

    Re: Alright a little linux question

    Originally posted by Destined
    I have run a linux server before and im planning on running ensim on my linux box.
    Ensim is a horrible thing.

    I know how to configure apache and all that for server name and paths and stuff. But what i need to know is how i tell the server its ip since im gonna be running multiple sites on one ip.
    The NameVirtualHost directive.

    Also how do i go about running all the domains on the one ip. Do i have to setup a dns server stuff or can i just point the domains at the ip and the server will determine where to pull from based on the domain.
    You will need to have the DNS information for the domain, and each domain's zone file will point to the same IP. Once you get the first one configured, you can just copy it and change the filename and the domain name in the zone file contents for each new one (and do the same for the Apache virtual host blocks (only needing to change the relevant values there too), restart/reload the name server (depending on your name server, you might not need to restart/reload it) and restart Apache and you're set for those two aspects.
    Robert McGregor
    URL: http://www.2host.com
    Email: robertm@(nospam)2host.com

Posting Permissions

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