You sound like you're trying very hard to avoid setting up a virtual host. 
Why?  It's the obvious answer to your problem.  And it's not hard.

You need to include the following:

# The asterisk means match all interfaces.  If you have a fixed IP #
you'll probably want to specify it
NameVirtualHost *

# You may have as many virtual hosts as you like.  The 
# first one is the one that matches a 'bare' IP
<VirtualHost mysite.com>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /var/httpd/htdocs/mysite
    ServerName www.mysite.com
    ErrorLog logs/mysite.com_error_log
    CustomLog logs/mysite.com_access_log common
</VirtualHost>



In <[EMAIL PROTECTED]>, on
09/24/2002 at 11:35 AM,
   Ted Hilts <[EMAIL PROTECTED]> said:


>In the LAN operation the server assumes the name of the machine and 
>reponds to the LAN associated IP and as I said before, also probably the 
>ISP dynamically assigned IP.  But my objective is to duplicate my hosted 
>virtual server web site on the Internet exactly as is but located on 
>this LAN based machine.  This would mean the LAN based Apache web server 
>would need to also identify itself with a name like 
>http://www.mysite.com. This is necessary because the web content urls 
>all make use of the full path name.  It looks to me that I would 
>accomplish this simply by setting the ServerName or BindAddress to this 
>name as oppossed to the default now used??? The problem I see is the 
>"ServerName" needs to be a bonifide DNS name translateable to a fixed IP 
>address. If this is the case (?), does this mean that I need to add a 
>DNS machine to my LAN or would the current Linux resolve process (uses 
>hosts and lmhosts to resolve the IP address) make that unnecessary?  I 
>can't just use the IP address on the internated associated with 
>http://www.mysite.com because the web site URLs all use the web site 
>name as for example;  http://www.mysite.com/doc/images/thispicture.  



-- 
-----------------------------------------------------------
Steve Garcia   using MR/2 ICE #10133 with Warp 4  
[EMAIL PROTECTED]
For PGP key, send mail to [EMAIL PROTECTED] with subject "PGP key"
-----------------------------------------------------------
The Operating System/2 Version is 4.50
Revision 14.062
There are 39 Processes with 142 Threads.
GHARLANE: uptime is 8 days, 20:41 hours and 17 seconds
 
*  They that can give up essential liberty to obtain a little temporary  safety 
deserve neither liberty nor safety." -- Benjamin Franklin



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to