Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: xof on September 06, 2009, 11:02:48 AM
-
Hi,
I've been experimenting with proxypass directly into httpd.conf. I've edited the following:
<VirtualHost 0.0.0.0:443>
...
ProxyPass /wms https://x.x.x.x
ProxyPassReverse /wms https://x.x.x.x
<Location /wms>
SSLRequireSSL
order deny,allow
deny from all
allow from all
</Location>
...
</VirtualHost>
I don't know if everything I put inthere makes sense but it seems to work.
I've been reading up on the template system but I'm not really sure how I should input this into the templates system? Or should I put this in the configuration database?
There's just one 'difficulty' added. It may only be added to a specific ServerName and not to all VirtualHosts.
Any help appreciated. Wouldn't want to screw up this nice system.
-
xof
Proxypass is already supported via a db entry
http://wiki.contribs.org/SME_Server:Documentation:FAQ#Proxy_Pass
-
I tried using the proxypass command lines from the link above, but it doesn't work.
What I want to do is forward a vitual folder to an internal server, so I changed the command lines to the following:
db domains set domain.com/virtualfolder domain
db domains setprop domain.com/virtualfolder Nameservers internet
db domains setprop domain.com/virtualfolder ProxyPassTarget http://192.168.2.18
db domains setprop domain.com/virtualfolder TemplatePath ProxyPassVirtualHosts
signal-event domain-create domain.com/virtualfolder
Since I am not actually creating a domain, do I need to change something?
-
I tried using the proxypass command lines from the link above, but it doesn't work.
No, it does work, but you are not using it as it is documented.
Since I am not actually creating a domain, do I need to change something?
Yes. You would need to create a custom template to do what you want, or use a redirect and subdomain, or some other scheme.
You now need to do:
db domains delete domain.com/virtualfolder
signal-event domain-modify domain.com
-
OK, the person who created this thread wanted to create a virtual directory and redirect it to an internal IP address, and then the response says to use proxypass "via a db entry". Is that just an incorrect response then?
-
OK, the person who created this thread wanted to create a virtual directory and redirect it to an internal IP address, and then the response says to use proxypass "via a db entry". Is that just an incorrect response then?
The statement made is true. But it does not completely align with what OP requested.
OP should be able to use a little ingenuity and split the site across a domain and a subdomain, and use ProxyPass as is.
-
Here are some more notes about configuring proxypass (in this case, to talk to OWA on an internal Exchange 2003 server): http://forums.contribs.org/index.php?topic=40075.0