Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: CKConsulting on January 26, 2007, 02:50:59 PM
-
I can't see my second SME7 box from the internet it just shows the webpage of box 1. Internally all works fine.
Box 1 is SME7 as a firewall (ckconsulting.net) x.x.x.1
Hostnames and addresses is configured to
ocs.ckconsulting.net
location = local x.x.x.12
Box 2 is SME7 stand alone (ocs.ckconsulting.net)
Thanks
Rick
-
I have never been sucessful in making that work either. I have had to setup a port forwarding rule to access the other sever from the internet. I have pointed a different port (like 8080) to the other, local server. (http://ckconsulting.net:8080 points to ocs.ckconsulting.net)
I think that ProxyPass might possibly work to accomplish what you (and I as well...) want, but I don't understand how to make it work yet...
Ryan
-
I don't know why you would need two servers on one line. Isn't one enough?
-
I don't know why you would need two servers on one line. Isn't one enough?
For myself... There are a few web apps that either can't be installed on SME or I have not been able to figure out how to. Much easier to setup another CentOS box to host things like Scalix (not that I have that working yet...), Zoho Virtual Office (until I get Scalix running), and AdventNet ServiceDesk Plus.
I don't need another web server for webpages, SME has plenty of i-bays for that!
Now if I ever take the time to install VMware then these could be virtual machines, but would still need forward ports or figure out how to make http://email.mydomain.com point to my virtual server...
Ryan
-
I'm constantly trying new apps and it's easier to build them on a fresh SME box's and figure out all the bugs, and test and then decide weather to put them on my production SME box or not. I also user VMware to test apps and OS's.
I'll try the port forwarding but it would be nice if could get hostnames to work.
Rick
-
I think that ProxyPass might possibly work to accomplish what you (and I as well...) want, but I don't understand how to make it work yet...
Ryan
I think there is a contrib to make it easy.
I played with the command line and got it working.
Requirement:
Internal server with web application eg: http://192.168.0.5/killer-app
A description of killer-app eg: lotto-number-picker
Url for internet user eg: http://www.domain.name/lotto
So, on command line
db accounts set lotto ProxyPass Description lotto-number-picker Target http://192.168.0.5/killer-app
expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/rc7.d/S86httpd-e-smith restart
-
Thanks William, I appreciate your help. Your example made more sense to me that the example in the ProxyPass contrib that I have had installed for awhile.
Edit: I had posted a problem I was having, but it turns out I had a typo...
-
You can also try the now built-in proxypass in SME 7
# db domains set ocs.ckconsulting.net domain Nameservers internet
# db domains setprop ocs.ckconsulting.net ProxyPassTarget http://x.x.x.12/
# db domains setprop ocs.ckconsulting.net TemplatePath ProxyPassVirtualHosts
# signal-event domain-create ocs.ckconsulting.net
-
# db domains setprop ocs.ckconsulting.net TemplatePath ProxyPassVirtualHosts
What does that do ?
-
Not quite sure but it appears that it tells where the templates for proxypaths are located so it expands the correct template to create the proxypass entry into httpd.conf instead of a normal domain entry.
But what the heck do I know?
-
Thanks.
Just found where it lives..
[root@c3 templates]# grep -r 'TemplatePath' . |more
./etc/httpd/conf/httpd.conf/80VirtualHosts: my $templatePath = $domain->prop('TemplatePath') || 'VirtualHosts';