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

Re: Lenny Apache2: ReverseProxy -> https -> http://localhost:port



Denny Schierz wrote:
> NameVirtualHost 1.2.3.4:443
> <VirtualHost 1.2.3.4:443>

SSL name based virtual hosts are not yet supported.  You should remove
that line from the configuration file.

>  ProxyPass /calendars/ http://localhost:8008/calendars/ 
>  ProxyPassReverse /calendars/ http://localhost:8008/calendars/
>  ProxyPass /principals/ http://localhost:8008/principals/ 
>  ProxyPassReverse /principals/ http://localhost:8008/principals/

Not sure but I think you shouldn't have the trailing slashes there.

  ProxyPass /calendars http://localhost:8008/calendars
  ...

It depends upon the effect you are trying to achieve and what level
you are trying to proxy.  I don't have the trailing slashes in my
configurations so I must have decided I didn't want that at that time
in the past when I set up my reverse proxy site.  I don't have time to
research it again now.  (shrug)

> The exactly same lines, works for the non-ssl virtual host. the log
> says, 
> 
> "File does not
> exist: /var/www/user/websites/foobar.bla/htdocs/calendars"
> 
> the best: if you type in" https://foobar.bla/calendars/user/foobar/...";
> 
> the log says only: "File does not
> exist: /var/www/user/websites/foobar.bla/htdocs/calendars"

Turn the rewrite engine on and then try it again.  I think that is the
missing component for you.

  RewriteEngine On

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: