httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "janmejay.tripathi" <janmejay.tripa...@otssolutions.com>
Subject [users@httpd] Regarding name-based virtual hosting in Apache 2.x
Date Mon, 30 Apr 2007 14:50:33 GMT
Hi there,

 

My configuration for name-based virtual hosting is given bellow. But how can
I see the output i.e. virtual hosting is working properly or not. Apache is
showing no error. I have created so many name-based virtual hosting but did
not able to get any output.  So please help me on this. I am giving my some
of my vhosts.conf (via- httpd.conf) setting bellow.

 

 

#

# Use name-based virtual hosting.

#

 

NameVirtualHost *:80

 

 

 

1**************************

 

 

<VirtualHost *:80>

    VirtualDocumentRoot /usr/local/apache2/htdocs/site1/

    ServerName www.site1.com

  <Directory "/usr/local/apache2/htdocs/site1">

    allow from all

   Options +Indexes

  </Directory>

</VirtualHost>

 

 

<VirtualHost *:80>

   VirtualDocumentRoot /usr/local/apache2/htdocs/site2/

   ServerName www.site2.com

  <Directory "/usr/local/apache2/htdocs/site2">

   allow from all

  Options +Indexes

 </Directory>

</VirtualHost>

 

 

2*******************************

 

 

<VirtualHost *:80>

  DocumentRoot /usr/local/apache2/htdocs/

  ServerName localhost

</VirtualHost>

 

 

<VirtualHost *:80>

  DocumentRoot  /usr/local/apache2/htdocs/framework/

  ServerName framework

</VirtualHost>

 

 

 

3**************************************

 

<VirtualHost *:80>

    ServerAdmin admin@janmejay123.com

    DocumentRoot /usr/local/apache2/htdocs/

    ServerName www.janmejay123.com

    ServerAlias janmejay123.com

    ErrorLog /usr/local/apache2/logs/error_log

    CustomLog /usr/local/apache2/logs/error_log common

  <Directory "/usr/local/apache2/htdocs">

         Options None

         AllowOverride None

         Order allow,deny

         Allow from all

  </Directory>

</VirtualHost>

 

<VirtualHost *:80>

    ServerAdmin admin@janmejay123.com

    DocumentRoot /usr/local/apache2/htdocs/framework/

    ServerName www.framework.janmejay123.com

    ServerAlias framework.janmejay123.com

    ErrorLog /usr/local/apache2/logserror_log

    CustomLog /usr/local/apache2/logs/error_log common

  <Directory "/usr/local/apache2/htdocs/framework">

         Options None

         AllowOverride None

         Order allow,deny

         Allow from all

  </Directory>

</VirtualHost>


 

 

Thanks & Regards

Janmejay Tripathy


 


 


 


 


 


 


 

 


Mime
View raw message