Hi All,

I am totally out of my depth here. I am trying to setup a virtual domain
on Jill's Linux box here.

Reason
------
I have a web based database running on a server at caves.org.au and want
to simulate it at home to develop stuff on it. Some bits of the web
interface expect "caves.org.au" whereas with my Netscape at home I have
http://www.tazieff.speleonics.com.au/database.

Done so far
-----------
In apache http.conf:

NameVirtualHost 192.168.1.5
<VirtualHost 192.168.1.5>
    ServerName localhost 
    # ServerName www.caves.org.au
    DocumentRoot /home/caves/web
</VirtualHost>
<VirtualHost www.caves.org.au>
    ServerAdmin mikel@localhost
    DocumentRoot /home/caves/web
    ServerName localhost
    ErrorLog /home/caves/web/logs/error_log
    TransferLog "|rotatelogs /home/caves/web/logs/access_log 86400"
    TransferLog "|rotatelogs /home/caves/web/logs/error_log 86400"
</VirtualHost>

and /etc/hosts:
127.0.0.1       localhost
192.168.1.1     loubens.speleonics.com.au       loubens
192.168.1.2     martel.speleonics.com.au        martel
192.168.1.3     chevalier.speleonics.com.au     chevalier
192.168.1.4     tazieff.speleonics.com.au       tazieff
192.168.1.5     caves.org.au                    caves

Results
-------
running "./apachectl configtest" hangs and does not produce the normal
"OK" output so something is wrong with my httdd.conf file. 
Netscape hangs at startup probably trying to resolve a non-existant
domain.

Important Point.: I normally connect to my ISP and my machine has an
official domain name speleonics.com.au but I am not the host for
caves.org.au so I don't want it to leak out when connected. I can prob
do this ok as I have two versions of apache loaded.
1. /usr/sbin/httpd which uses /etc/httpd/httpd.conf (and has PHP)
2. /usr/local/apache/bin/httpd which uses
/usr/local/apache/conf/httpd.conf (this one runs mod_perl)

1. is started when I connect to my ISP and if I want to run other I
shutdown 1 and start 2. 
OK don't laugh :-)

I am quite lost on Virtual Domains, the apache docs do assume you know
what virtual domains are and are quite familiar with them.

Mike
-- 
--------------------------------------------------------------------
Michael Lake
Active caver, Linux enthusiast and interested in anything technical.
Safety Convenor, Australian Speleological Federation
Owner, Speleonics (Australia)
--------------------------------------------------------------------


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to