Hi Davide,

I followed your example and specified localhost in the VirtualHost directive. 
it worked.

one more question please: for the other servers, I tried:

NameVirtualHost *:80

<VirtualHost *:80>
        ServerName alias1
        ProxyPass / http://localhost:5001/
        ProxyPassReverse / http://localhost:5001/
</VirtualHost>

<VirtualHost *:80>
        ServerName alias2
        ProxyPass / http://localhost:5002/
        ProxyPassReverse / http://localhost:5002/

</VirtualHost>


however, http://alias2 goes to http://localhost:5001.

could you please advise?

--- On Tue, 16/9/08, Davide Bianchi <[EMAIL PROTECTED]> wrote:

> From: Davide Bianchi <[EMAIL PROTECTED]>
> Subject: Re: [EMAIL PROTECTED] rewrite rules
> To: users@httpd.apache.org
> Date: Tuesday, 16 September, 2008, 2:38 PM
> Melanie Pfefer wrote:
> > hi Davide,
> > 
> > both apache instances have the basic configuration.
> They have
> different port numbers: the main apache is on port 80 and
> the other 3
> instances on 5001, 6001 and 7001.
> > 
> > In the main apache (port 80), I added as you
> suggested:
> > 
> > NameVirtualHost *:80
> > 
> > <VirtualHost *:80>
> >         ServerName alias1
> >         ProxyPass / http://alias1:5001
> >         ProxyPassReverse / http://alias1:5001
> > </VirtualHost>
> > 
> > but still http://alias1 goes to port 80 while I expect
> it to go to port 5001.
> 
> Hummm.. not sure if I understand what you mean with
> 'goes to port 80'...
> 
> This is what I just did:
> 
> <VirtualHost *:80>
>         ServerName      cups
>         ProxyPass       /       http://localhost:631/
>         ProxyPassReverse        /      
> http://localhost:631/
> </VirtualHost>
> 
> (cups runs on port 631 on my system) and I can get
> cups' interface by
> using http://cups/. Of course, this goes to port 80 on my
> system and is
> then 'proxied' to port 631.
> 
> What you mean with "goes to port 80" ? What sort
> of result you get in
> your browser? What remains in your error_log or access_log
> ?
> 
> Davide
> 
> -- 
> USER, n.: The word computer professionals use when they
> mean "idiot."
> --Dave Barry, "Claw Your Way to the Top"
> 
> ---------------------------------------------------------------------
> 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: [EMAIL PROTECTED]
>    "   from the digest:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]




---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to