Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: scott 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?
-
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?
-
.. I presume you have run the expand template routine?
-
don't know what that is.
-
Will the proxypass contrib do what you want?
http://tech-geeks.org/contrib/loveless/proxypass/
-
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.
-
It doesn't appear to be a GPL RPM module.
-
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
-
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.
-
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.
-
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?
-
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?
-
It was my error.. when using Proxypass contrib, never forget to put the trailing "/"
after the source IP