Koozali.org: home of the SME Server

Webmail and ProxyPass

Offline ddougan

  • *
  • 155
  • +0/-0
    • http://www.DouganConsulting.com
Webmail and ProxyPass
« on: September 04, 2006, 05:26:18 AM »
I use a ProxyPass/ProxyPassReverse directive pair to redirect my primary domain to my Plone site. I've had this running successfully for a couple of years on 6.0.

I've a new server running 7.0, and have installed Zope and Plone from the karan.org yum repository and have again used ProxyPass to direct to the Plone site.

On 6.0, Webmail was accessible via https:/domain/webmail; however on 7.0, it returns a 404 error. On the LAN, server-manager works as expected via https.

I assume this is related to changes in Apache? Can anyone suggest a way to resolve this?

The ProxyPass directives are:

#
# ProxyPass directive for Zope/Plone Virtual Host Monster
#
{
return "" unless $virtualHost eq "douganconsulting.com";
"ProxyPass / http://localhost:9080/VirtualHostBase/http/douganconsulting.com:80/Plone/VirtualHostRoot/";
}
{
return "" unless $virtualHost eq "douganconsulting.com";
"ProxyPassReverse / http://localhost:9080/VirtualHostBase/http/douganconsulting.com:80/Plone/VirtualHostRoot/";
}


Thanks,

Des
Des Dougan

Offline ddougan

  • *
  • 155
  • +0/-0
    • http://www.DouganConsulting.com
Webmail and ProxyPass
« Reply #1 on: September 04, 2006, 07:45:34 AM »
I've found a solution:

return "" unless ($virtualHost eq "douganconsulting.com" and $port eq "80");

will leave port 443 alone, so that https can be used for Webmail and other add-ins (like phpMyAdmin).

Replace both instances of the "return" statement with the one above.
Des Dougan

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Webmail and ProxyPass
« Reply #2 on: September 26, 2006, 09:01:47 PM »
Hi,

I hope you can help me because I can't figure it out.

My internal network is called: "focus.internal.nl". I've installed plone, so from the internal network I call plone with:

Code: [Select]
http://focus.internal.nl:8080/plone

I bought a domainname "www.external.nl". On my SME-7.0 I made a virtualdomain and redirected:

Code: [Select]
http://www.external.nl to
Code: [Select]
http://focus.internal.nl/Primary
and
Code: [Select]
http://crm.external.nl to
Code: [Select]
http://focus.internal.nl/sugarcrm

Now I want to redirect:

Code: [Select]
http://plone.external.nl to
Code: [Select]
http://focus.internal.nl:8080/plone

I read the apache manual but I don't get it working.

What do I have to do?
Rien
(The Netherlands)......