Re: [users@httpd] Virtualhost Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Boyle

yes i have Name VirtualHost seting in httpd.conf, 

NameVirtualHost *:80

Include "/usr/local/apache/conf/site.conf" 

(in "site.conf "this i declared VirtualHost setting as i given already)

Is there any problem in this setting, between i am going through the docs.

Thanks
Ashutosh
SynaptiCAD Inc.


Boyle Owen wrote:
>> -----Original Message-----
>> From: Ashutosh Mohanty [mailto:ashutosh@xxxxxxxxxx]
>> Sent: Thursday, August 10, 2006 10:30 AM
>> To: Apache Group
>> Subject: [users@httpd] Virtualhost Problem
>> 
>> Hi Owen Boyle/Everybody,
>> 
>> 
>> 
>> 
>> 
>> Thanks to Boyle for his help regarding my previous problem in
>> apache, now I am facing another problem with accessing
>> virtual host in apache here is my description of virtual hosting.
>> 
>> 
>> 
>> Os: Linux 7.2(2.4.34)
>> 
>> Httpd-2.0.53
>> 
>> Php-5.0.3
>> 
>> 
>> 
>> I have two Virtual host setting one is for our internal
>> development site (http://laxmi.in.mydomain.com) and another
>> is for our backup strategies maintenance site
>> (http://backup.in.mydomain.com).
>> 
>> 
>> 
>> The problem I am facing is, out of these two setting, one is
>> working and another one is point the same thing instead of
>> pointing to two separate Directories. Which ever out of these
>> virtual hosts setting comes first in httpd.conf is working
>> and another is pointing the same,
>> 
>> 
>> 
>> For example according to following setting,
>> 
>> 
>> 
>> Whenever I access http://laxmi.in.mydomain.com
>> <http://laxmi.in.mydomain.com/>  in web browser its show me
>> our internal development site, but
>> http://backup.in.mydomain.com
>> <http://backup.in.mydomain.com/>  also showing our internal
>> development sites instead of showing backup information.
>> 
>> 
>> 
>> 
>> 
>> Could you please help me in this regard,
>> 
>> 
>> 
>> Advance Thanks:
>> 
>> 
>> 
>> Ashutosh Mohanty
>> 
>> SynaptiCAD Inc.
>> 
>> 
>> 
> 
> Do you have a "NameVirtualHost" directive anywhere? See docs for
> details...
> 
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
> 
>> 
>> 
>> 
>> 
>> 
>> 
>> <VirtualHost *>
>> 
>>     ServerAdmin ashutosh@xxxxxxxxxxxx
>> 
>>     DocumentRoot /home/ashutosh/www/www-devel.mydomain.com/html
>> 
>>     ServerName laxmi.in.mydomain.com
>> 
>>     ServerAlias laxmi.in
>> 
>> 
>> 
>>     ErrorLog /home/ashutosh/www/www-devel.mydomain.com/logs/error_log
>> 
>>     CustomLog
>> /home/ashutosh/www/www-devel.mydomain.com/logs/access_log common
>> 
>> 
>> 
>>     ErrorDocument 404 "/cgi-bin/404_handler.pl"
>> 
>> 
>> 
>>     <Directory "/home/ashutosh/www/www-devel.mydomain.com/html">
>> 
>>         DirectoryIndex index.htm
>> 
>>         RedirectMatch (.*)\.html$ $1.htm
>> 
>>         Options Indexes FollowSymLinks
>> 
>>         AllowOverride None
>> 
>>         Order allow,deny
>> 
>>         Allow from all
>> 
>>         <IfModule mod_dav.c>
>> 
>>             DAV On
>> 
>>             DAVDepthInfinity on
>> 
>>             <LimitExcept GET HEAD POST OPTIONS>
>> 
>>                 AuthUserFile
>> /home/ashutosh/www/www-devel.mydomain.com/htpasswd
>> 
>>                 AuthName mydomain-www
>> 
>>                 AuthType Basic
>> 
>>                 require user mydomain
>> 
>>             </LimitExcept>
>> 
>>         </IfModule>
>> 
>>     </Directory>
>> 
>>     <IfModule mod_mime.c>
>> 
>>         # Pass all .html documents through PHP 4
>> 
>>         AddType text/html .html .htm
>> 
>>         AddType application/x-httpd-php .html .htm .php
>> 
>>     </IfModule>
>> 
>> 
>> 
>>     <IfModule mod_alias.c>
>> 
>>         #
>> 
>>         # ScriptAlias: This controls which directories
>> contain server scripts.
>> 
>>         # ScriptAliases are essentially the same as Aliases,
>> except that
>> 
>>         # documents in the realname directory are treated as
>> applications and
>> 
>>         # run by the server when requested rather than as
>> documents sent to the client.
>> 
>>         # The same rules about trailing "/" apply to
>> ScriptAlias directives as to
>> 
>>         # Alias.
>> 
>>         #
>> 
>> 
>> 
>>         ScriptAlias /cgi-bin/
>> "/home/ashutosh/www/www-devel.mydomain.com/cgi-bin/"
>> 
>>         <Directory
>> "/home/ashutosh/www/www-devel.mydomain.com/cgi-bin">
>> 
>>             AllowOverride None
>> 
>>             Options None
>> 
>>             Order allow,deny
>> 
>>             Allow from all
>> 
>>         </Directory>
>> 
>> 
>> 
>>         Alias /cgi-src/
>> "/home/ashutosh/www/www-devel.mydomain.com/cgi-bin/"
>> 
>>         <Location /cgi-src/>
>> 
>>             <IfModule mod_dav.c>
>> 
>>                 DAV On
>> 
>>                 DAVDepthInfinity on
>> 
>>                 AuthUserFile
>> /home/ashutosh/www/www-devel.mydomain.com/htpasswd
>> 
>>                 AuthName mydomain-www
>> 
>>                 AuthType Basic
>> 
>>                 require user mydomain
>> 
>>             </IfModule>
>> 
>>         </Location>
>> 
>> 
>> 
>>         Alias /download/
>> "/home/ashutosh/www/www-devel.mydomain.com/download-info/"
>> 
>>         <Directory
>> "/home/ashutosh/www/www-devel.mydomain.com/download-info/">
>> 
>>             AllowOverride None
>> 
>>             Options None
>> 
>>             Order allow,deny
>> 
>>             Allow from all
>> 
>>             Action pl-script /cgi-bin/download.pl
>> 
>>             AddHandler pl-script .html
>> 
>>         </Directory>
>> 
>>     </IfModule>
>> 
>> </VirtualHost>
>> 
>> <VirtualHost *>
>> 
>>     ServerAdmin ashutosh@xxxxxxxxxxxx
>> 
>>     DocumentRoot /home/ashutosh/www/backup.in.mydomain.com/html
>> 
>>     ServerName backup.in.mydomain.com
>> 
>> 
>> 
>>     ServerAlias backup.in
>> 
>> 
>> 
>>     ErrorLog /home/ashutosh/www/backup.in.mydomain.com/logs/error_log
>> 
>>     CustomLog
>> /home/ashutosh/www/backup.in.mydomain.com/logs/access_log common
>> 
>> 
>> 
>>     <Directory "/home/ashutosh/www/backup.in.mydomain.com/html">
>> 
>>         Options Indexes FollowSymLinks
>> 
>>         AllowOverride None
>> 
>>         Order allow,deny
>> 
>>         Allow from 192.168 127.0.0.1
>> 
>>     </Directory>
>> 
>> 
>> 
>>     <IfModule mod_mime.c>
>> 
>>             AddType text/html .html .htm
>> 
>>             AddType application/x-httpd-php .html .htm .php4 .php
>> 
>>     </IfModule>
>> 
>> </VirtualHost>
>> 
>> 
> 
> 
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any
> mistransmission. If you receive this message in error, please notify
> the sender urgently and then immediately delete the message and any
> copies of it from your system. Please also immediately destroy any
> hardcopies of the message. You must not, directly or indirectly, use,
> disclose, distribute, print, or copy any part of this message if you
> are not the intended recipient. The sender's company reserves the
> right to monitor all e-mail communications through their networks.
> Any views expressed in this message are those of the individual
> sender, except where the message states otherwise and the sender is
> authorised to state them to be the views of the sender's company.    
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project. 
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux