[NTLUG:Discuss] setup web site

Travis Bell tjbell at usa.net
Fri Jul 7 17:01:54 CDT 2000


m m wrote:
> 
> Hi all:
> 
> I have a domain name registered at register.com, say, mysite.org.
> and I have request an IP address from my ISP, 123.123.100.100
> use Apache as a web server.
> IF I use IP address as the URL (http://123.123.100.100), it works (display
> my pages).
> But if I use the domain name as the URL (http://mysite.org), it don't works.
> I know something need to do on DNS thing, Could anyone give me a hand?
> TIA

Hopefully this will help:

The way mine is set up is that I have two domains pointing to the same
IP.  I converted mine to your case.  The way it stands, 
http://www.mysite.org will deliver the pages in /usr/local/httpd/htdocs,
http://123.123.100.100 will also deliver the pages in
/usr/local/httpd/htdocs, but http://www.othersite.org will deliver the
pages in /usr/local/httpd/other_site_htdocs.


## --  httpd.conf file (snippets) -- ##
ServerName mysite.org

<VirtualHost 123.123.100.100>
ServerAdmin  llliiilll at hotmail.com
DocumentRoot /usr/local/httpd/htdocs  # or wherever
ServerName   mysite.org
ScriptAlias  /cgi-bin    /usr/local/httpd/cgi-bin  # or wherever
AddType      application/x-httpd-cgi .cgi          # and/or whatever
</VirtualHost>

<VirtualHost 123.123.100.100>
ServerAdmin  llliiilll at hotmail.com
DocumentRoot /usr/local/httpd/other_site_htdocs
ServerName   othersite.org
ScriptAlias  /cgi-bin    /usr/local/httpd/other_site_cgi-bin
AddType      application/x-httpd-cgi .cgi
</VirtualHost>
## --  End httpd.conf file (snippets) -- ##

-- 
Travis Bell -aka- MudPoet
echo tjbexx at usa.nyz | tr xyz let
http://tjbell.dhs.org
ICQ: 6014042 - AIM: MudPoet




More information about the Discuss mailing list