Koozali.org: home of the SME Server

proxypass template

scott

proxypass template
« on: October 03, 2003, 05:57:29 PM »
does anyone know how, or which template I need to edit to configure proxypass to point port 8080 to a different server?

scott

Re: proxypass template
« Reply #1 on: October 03, 2003, 06:48:02 PM »
I was able to find the tamplate and copy it to the custom-templates locations for editing, but I cannot get it woking.  I edited template 92ProxyPassManager with the following code:

ProxyPass /portal http://10.168.7.32:8080

    order deny,allow
    allow from all
{
    $OUT .= "    allow from $localAccess\n";
}


I still cannot get to the other server.  Can anyone help me?

Graeme Fleming

Re: proxypass template
« Reply #2 on: October 03, 2003, 09:49:20 PM »
.. I presume you have run the expand template routine?

scott

Re: proxypass template
« Reply #3 on: October 03, 2003, 10:43:03 PM »
don't know what that is.

Abe Loveless

Re: proxypass template
« Reply #4 on: October 03, 2003, 11:44:37 PM »
Will the proxypass contrib do what you want?

http://tech-geeks.org/contrib/loveless/proxypass/

Abe Loveless

Re: proxypass template
« Reply #5 on: October 03, 2003, 11:45:47 PM »
Forgot to mention.... the proxypass contrib hasn't been tested on SME 6.  

Since the server-manager has changed, I doubt it displays right, but I would think that the functionality should work.

proxypass

Re: proxypass template
« Reply #6 on: October 04, 2003, 07:59:33 PM »
It doesn't appear to be a GPL RPM module.

Charlie Brady

Re: proxypass template
« Reply #7 on: October 05, 2003, 07:28:18 AM »
scott wrote:

> I was able to find the tamplate and copy it to the
> custom-templates locations for editing, but I cannot get it
> woking.  I edited template 92ProxyPassManager with the
> following code:
>
> ProxyPass /portal http://10.168.7.32:8080
>
>     order deny,allow
>     allow from all
> {
>     $OUT .= "    allow from $localAccess\n";
> }
>

>
> I still cannot get to the other server.

Why are you restricting access to the local network? The local network can directly access the other server, so there's no need to proxypass. You would usually use proxypass to allow external access to an internal server.

Charlie

scott

Re: proxypass template
« Reply #8 on: October 07, 2003, 01:18:51 AM »
I am trying to allow access to an internal server from the internet.  Also, I want the connection on the outside to be encrypted with ssl.

Tony P.

Re: proxypass template
« Reply #9 on: October 11, 2003, 09:43:13 AM »
Here is what I did to get something similar to work.

First I created a hostname in the server manager.
docushare.mydomain.com IP 10.x.x.2
server1.mydomain.com IP 10.x.x.3
server2.mydomain.com IP 10.x.x.4

I then created a template in "/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf" called “93ProxyPassServer”.

I added the following lines to 93ProxyPassServer to connect to my NT Server running Tomcat webapp via the SME and SSL.


  ServerName docushare.mydomain.com
  ProxyPass / http://docushare.mydomain.com:8080/
  ProxyPassReverse / http://docushare.mydomain.com:8080/


NOTE: I did not try to go to a "/portal" directory like you are. I access it as the root of my website.

Most of my sites run http so the entries look like this:


  ServerName server1.mydomain.com
  ProxyPass / http://server1.mydomain.com/



  ServerName server2.mydomain.com
  ProxyPass / http://server2.mydomain.com/



  ServerName myserver.mydomain.com
  ProxyPass / http://myserver.mydomain.com:8080/
  ProxyPassReverse / http://myserver.mydomain.com:8080/



If found if I put the server hostname in the SME hosts Panel, I did not have to use the ProxyPassReverse statement unless I am going to a non-standard web port.


Tony P.

Alejandro Lengua

Re: proxypass template
« Reply #10 on: October 12, 2003, 08:01:13 AM »
I have created a virtual domain (www1.vhosting.com) to make it point to an
 internal IP.

However when I point to the root of such domain I get the default content of
my SME server.

Proxypass only works fine when I point to an URL of the internal web server. Is this the correct behaviour?

Alejandro Lengua

Proxypass filtering Macromedia Flash
« Reply #11 on: October 31, 2003, 11:07:38 PM »
I created this domain site http://www.newtransport.com.pe/web/
however it shows the page but without the embeded Macromedia Flash.

How can I fix this?

Alejandro Lengua

Re: Proxypass filtering Macromedia Flash
« Reply #12 on: November 03, 2003, 01:03:06 AM »
It was my error.. when using Proxypass contrib, never forget to put the trailing "/"
after the source IP