httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Melanie Pfefer <melanie_pfe...@yahoo.co.uk>
Subject Re: [users@httpd] rewrite rules
Date Tue, 16 Sep 2008 12:07:30 GMT
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 <davide@onlyforfun.net> wrote:

> From: Davide Bianchi <davide@onlyforfun.net>
> Subject: Re: [users@httpd] 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: users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org


      

---------------------------------------------------------------------
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


Mime
View raw message