You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Indraveni <in...@yahoo.co.in> on 2009/02/03 11:21:20 UTC

[users@httpd] servername/dir for servername

Dear All,

 I have a zope server running which is redicted to apache port 80. For this i have conffigured my vhost,with following:

<VirtualHost *:80>
        ServerName infosecawareeness.in
        ServerAdmin indravenik@cdac.in
        ServerAlias www.infosecawareeness.in
        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteLog "/var/log/apache2/rewrite.log"
        RewriteLogLevel 10
        RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/infosecawareness.in:80/Plone/VirtualHostRoot/$1 [L,P]
        </IfModule>
<Proxy http://localhost:8080>
                Allow from all
        </Proxy>
                ProxyVia on
                ErrorLog /var/log/apache2/zope/error_log
                CustomLog /var/log/apache2/zope/access_log common
</VirtualHost>


Now, I want to create one more virtual host, with the server whose documentroot content should be accessed when I use, http://infosecawareeness.in/sms.

I mean 
DocumentRoot /var/www/sms
ServerName  http://infosecawareeness.in/sms

But setting with above, another virtualhost, it just searchs for sms page under my zope based site.

Hoe can I achieve this. 

need help please,


 Thanks & Regards,
Indraveni K,
CDAC - Hyderabad,




      

Re: [users@httpd] servername/dir for servername

Posted by Eric Covener <co...@gmail.com>.
On Tue, Feb 3, 2009 at 5:21 AM, Indraveni <in...@yahoo.co.in> wrote:
> Now, I want to create one more virtual host, with the server whose
> documentroot content should be accessed when I use,
> http://infosecawareeness.in/sms.
>
> I mean
> DocumentRoot /var/www/sms
> ServerName http://infosecawareeness.in/sms
>

You can add a RewriteCond %{REQUEST_URI} !^/sms before your current
RewriteRule to stop it from being proxied.  You'd really need to be
using a 2nd hostname to create a 2nd virtual host.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org