Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: ias config problem

Re: ias config problem

From: Murali <oraclems_at_hotmail.com>
Date: 18 Jan 2002 12:35:08 -0800
Message-ID: <22e6597b.0201181235.44418437@posting.google.com>


Why do you have 4 virtualhost containers for 2 domains ? Your configuration looks very confusing. An easy way to do this is to put everything that is specific to each domain under its own virtualhost directive and not under the main server configuration. Here's an example for your case.

##### Main Server Configuration #######

# Since the webserver runs on this port, put it here
Port 5000

ServerName 10.10.10.8

###### Start Virtual Host directives ########

# Assuming this is your one IP address for both domains

NameVirtualHost 10.10.10.8

<VirtualHost 10.10.10.8>    

   ServerName www.domain1.com
   ServerAdmin postmaster_at_domain1.com
   DirectoryIndex index.html
   DocumentRoot /disk1/u01/webdevel/copoloff/     <Directory />

    	Options MultiViews
    	AllowOverride None

    </Directory>
   ErrorLog /path/to/domain1_error_log
   CustomLog /path/to/domain1_access_log custom_log_directives

</VirtualHost>

<VirtualHost 10.10.10.8>    

   ServerName www.domain2.com
   ServerAdmin postmaster_at_domain2.com
   # Filename is case-sensitive
   DirectoryIndex Login.jsp
   DocumentRoot /disk1/u01/webdevel/insurfact/     <Directory />

    	Options MultiViews
    	AllowOverride None

    </Directory>
   ErrorLog /path/to/domain2_error_log
   CustomLog /path/to/domain2_access_log custom_log_directives

</VirtualHost>

# End VirtualHost directives

This should work if I have understood correctly what you are trying to say.

Murali
http://www.dbaquest.com/ Received on Fri Jan 18 2002 - 14:35:08 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US