Obsolete Releases > SME 8.x Contribs

ProxyPass - help with subdomain

(1/2) > >>

mchettle:
I would like some help setting up ProxyPass for a subdomain.

I have looked through as many of the previous posts as i can, but the more i look, the more confused i become. I have not found any specific examples on setting a subdomain ProxyPass. (ie:: http://sub.domain.com)
It would also help to get an overview on what the implications are when a ProxyPass is in place. In my case i only want the one subdomain passed to a machine on my internal network, but would like the ftp subdomain (on different ports) to continue pointing to a different machine on the internal network. I would also like the SME server to continue handling the www (iBay) and mail subdomains, and continue to handle the mail for this domain.

I have read that once setup, you can no longer manage the specific domain or subdomains from the GUI interface. What happens to those already in place? In addition can the ProxyPass subdomain still be accessed from the internal network, as it is now.

Thank You for your help.

PS: For what its worth, i noticed during my research discussions about having a GUI interface for this function. I would like to put my 'yes' vote for this feature.

mmccarn:
From http://wiki.contribs.org/SME_Server:Documentation:ProxyPass (assuming your internal host is at 192.168.1.8 )


--- Code: ---db domains set sub.domain.com domain
db domains setprop sub.domain.com Nameservers internet
db domains setprop sub.domain.com ProxyPassTarget http://192.168.1.8/
db domains setprop sub.domain.com TemplatePath ProxyPassVirtualHosts
signal-event domain-create sub.domain.com
--- End code ---

Is there something I'm not understanding?

(PS - the only hitch I reguarly hit doing this is that the trailing "/" in the ProxyPassTarget is important...)

TerryF:
I think the OP may be reading it as I did at first, the wiki needs a small clarification to include the info the settings apply to subdomains as well, it is not apparent at first. If this is the case the OP should raise a bug on the documentation.

janet:
mchettle

Proxypass is not the right tool for what you are trying to achieve.
Remove the existing proxypass entry, if configured.

Use the Domains panel to configure DNS to resolve locally for the domain in question.
Then use the Hostnames and addresses panel to redirect various services (the subdomain part) eg just configure ftp.domainname to point to wherever.

For safe measure do a reboot after making these changes

mchettle:
Thank You all very much.

mmccarn :: Thanks for the clarification. What you have proposed is what i thought might be the requirement, but looks more like how one would configure a ProxyPass for a whole domain.

janet :: Thanks, but i will clarify my exact requirements so you understand all i am trying to do.

I currently have the domain (and subdomains) running successfully internally. The 'www.' is pointing to the ibay, 'ftp.' is pointing to the ftp machine (with port forwarding for incoming traffic from the internet), the 'orders.' is pointing to a separate machine running a web based database. The mail services are running on the SME server/Gateway. Basically all i am trying to do is expose only the 'orders.' subdomain for the http:// and https:// services to incoming traffic from the internet. I would like all else to remain the same. This includes leaving all other domains and services i have running on the SME Server/Gateway unaffected.

The other issue that is a little unclear, is :: do i need to remove the currently defined domain from the control panel, or just the SubDomain to which we will apply the ProxyPass. And once a ProxyPass is applied, will i be able to manage the other elements of the domain from the control panel?

Once again, thank you all very much.

Navigation

[0] Message Index

[#] Next page

Go to full version