Any pointers on this one please...............its urgent
  ----- Original Message ----- 
  From: Mayuresh Kshirsagar 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, December 08, 2004 3:27 PM
  Subject: Multiple domains on single machine


  Hi I have setup a test machine so that it should host two sites

  1. http://admin
  2. http://support

  But only one (http://admin) is accessible and the other one is not. Can you 
give any pointers.

  I set up virtual hosts as (httpd.conf):

  NameVirtualHost *:80

  <VirtualHost *:80>
  ServerName admin
  ServerAdmin [EMAIL PROTECTED]
  DocumentRoot E:/admin.support.cp.net/html/
  ErrorDocument 404 E:/admin.support.cp.net/notfound.html
  ErrorLog logs/admin.support.cp.net-error_log
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
combined
  LogFormat "%h %l %u %t \"%r\" %>s %b" common
  LogFormat "%{Referer}i -> %U" referer
  LogFormat "%{User-agent}i" agent
  CustomLog logs/admin.support.cp.net-access_log combined
  Alias /icons/ E:/admin.support.cp.net/icons/
  ScriptAlias /cgi-bin/ E:/admin.support.cp.net/cgi-bin/
  <Directory "E:/admin.support.cp.net/html">
   Options FollowSymLinks Includes
   DirectoryIndex index.html index.jsp
   AllowOverride AuthConfig
  </Directory>
  AddType text/x-server-parsed-html .html
  </VirtualHost>

  <VirtualHost *:80>
       DocumentRoot E:/support1.cp.net
       ServerName support
       ServerAdmin [EMAIL PROTECTED]
       ErrorLog logs/support-error_log
       LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 
combined
       LogFormat "%h %l %u %t \"%r\" %>s %b" common
       LogFormat "%{Referer}i -> %U" referer
       LogFormat "%{User-agent}i" agent
       CustomLog logs/support-access_log combined
       Alias /pdf/ E:/support1.cp.net/content/pdf/
       Alias /images/ E:/support1.cp.net/images/     
       ScriptAlias /cgi-bin/ E:/support1.cp.net/cgi-bin/     
       ErrorDocument 404 E:/support1.cp.net/notfound.jsp
       # Allow Server Side includes (SSI)   
       <Directory "E:/support1.cp.net">     
          Options FollowSymLinks Includes
          AllowOverride AuthConfig
          allow from all
       </Directory>
       AddType text/x-server-parsed-html .html
  </VirtualHost>

  Similarly I added following to server.xml:

  <Host Name="support"> 
    <Context path="" docBase="E:/support1.cp.net" debug="0" reloadable="true" 
/> 
    </Host>
   <Host Name="admin">
    <Context path="" docBase="E:/admin.support.cp.net" debug="0" 
reloadable="true" /> 
    </Host>

  I also added lines to the "hosts" file on that machine:

  <IP-Address> admin
  <IP-Address> support.

  Thanks Mayuresh.


------------------------------------------------------------------------------


  ---------------------------------------------------------------------
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to