1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
Access to WHS Server
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: Access to WHS Server
*
#21168
Access to WHS Server 2 Years, 5 Months ago  
Hi all,

Please don't shout me down here but I have ClearOS 5.2 running in gateway mode with some virtual websites running, but I need to be able to access a "Windows Home Server" box also on the network. When you turn this feature on in your WHS box you register a domain name with Microsoft (I think) and it is pointed at your IP address. So I enter my name to get to my WHS box and I obviously get my default ClearOS website.

So I have a new domain name of whs.homeserver.com which I need to redirect to an IP address transparently.

ClearOS is 192.168.100.1
WHS Box is 192.168.100.2

I have read about using pound as a reverse proxy and also about Assigning subdomain to IP/Port/PCs. At this time a bit confused.

Anyone tell me the easiest way to achieve this please.

Thanks

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21177
Re:Access to WHS Server 2 Years, 5 Months ago  
Hi there I do basicly similar thing. I posted back a while how to get WHS working thru the transparent squid Getting WHS remote asccess work transparent proxy dyndns.domains.live.com is the actual site where WHS figures out the Wan ip so that needs to bypass. As far as getting to the pages you goto the port forwarding and forward the following for the various services:
port ip
80 ----> 192.168.100.2 HTTP
443---> 192.168.100.2 HTTPS
4125--> 192.168.100.2 RWW (Remote Web Workplace)
3389--> 192.168.100.2 RDP (only if you plan to use remote desktop not needed if using web interface)

Hope this helps
Michael
Michael LaSpina
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21183
Re:Access to WHS Server 2 Years, 5 Months ago  
Hi.

Thanks for the reply. I can see how that works if you are not using the web server features of clearos. In that way everything is sent to the WHS machine, but I can't use that as I have multiple websites running on the clears box. They obviously need to get some stuff on ports 80 etc.

I think what I need is something that recognizes the domain it is looking for and redirects it to the WHS box as it does for a virtual domain. Just not sure about the easiest way to do it.

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21188
Re:Access to WHS Server 2 Years, 5 Months ago  
I have been thinking about this and I am just wondering if this can be done via the vhost files. If I create a vhost file (like those created for virtual hosts), can it be used to redirect to another ip address on the internal network?

I tried it with a format like below but it did not work so any advice appreciated


<VirtualHost *:80>
ServerName. WHS.home server.com
ProxyPass / 192.168.100.2
ReverseProxyPass. / http:192.168.100.2
</VirtualHost>

The file I created was called: WHS.home server.com.vhost

Thanks

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21189
Re:Access to WHS Server 2 Years, 5 Months ago  
Ok well that is not a big problem really one way you could do that then is redirect a different port to the one you need i.e. forward port 88 to port 80 on your whs machine and you would not have a problem then, only connect to your whs as yourwhscustomdomain:88.
this works too.
Michael LaSpina
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21194
Re:Access to WHS Server 2 Years, 5 Months ago  
i just tried this:-

Code:

<VirtualHost whs.homeserver.com>
        ServerName whs.homeserver.comm
        DocumentRoot /var/www/virtual/whs.homeserver.com
        ProxyRequests Off
</virtualhost>


<proxy>
          Order deny,allow
          Allow from all
</proxy>

ProxyPass / http://192.168.100.2/
ProxyPassReverse / http://192.168.100.2/




and I tried it with the Proxy parts deleted.

What I found is that everything was redirected to the other server not just requests specifically for it.

I wanted to try and get it to work transparently rather than port forwarding but that may end up being what I have to do. I will keep tryring for a while yet.

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21196
Re:Access to WHS Server 2 Years, 5 Months ago  
I did find the following in the apache documentation

Code:

Using Virtual_host and mod_proxy together
The following example allows a front-end machine to proxy a virtual host through to a server running on another machine. In the example, a virtual host of the same name is configured on a machine at 192.168.111.2. The ProxyPreserveHost On directive is used so that the desired hostname is passed through, in case we are proxying multiple hostnames to a single machine.

<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass / http://192.168.111.2/
ProxyPassReverse / http://192.168.111.2/
ServerName hostname.example.com
</VirtualHost> 




apache examples

Hope that helps you better
Michael
Michael LaSpina
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21217
Re:Access to WHS Server 2 Years, 5 Months ago  
Thanks Michael,

That seems to work OK for me but more testing required.

I did find that I had to remove the "ProxyPreserveHost On" line for it to work but the rest seems to be working ok. Oh, I also had to change the first line to "<VirtualHost *:80>" otherwise errors when I restarted httpd.

Now from my little bit of initial testing it appears as though Remote Access works, though WHS reports some problems when it tests the connection. You can not use a secure connection though (https), it will drop you to the default web location of the system. That is not much of an issue for what I need. It might not be working perfectly but it is working.

Now to get away from the office/home environment and try it from outside to see if all ok.

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21225
Re:Access to WHS Server 2 Years, 5 Months ago  
No not working outside local network. It obviously needs https access (port 443) but I can not figure out how to get that access.

Any other ideas?

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21272
Re:Access to WHS Server 2 Years, 5 Months ago  
I think I have it now. The problem or issue that I had to come to grips with is that you appear to no longer be able to have SSL connections to VirtualHosts. Just to confirm this I tried to install a Joomla site in one of the virtual host locations and use it SSL only and would not work.

A quick search and I found this post. A few edits and creation of files and I can now use SSL on the VirtualHosts.

That did not solve all my issues though for the connection to the WHS box.

I created an SSL related file for the VirtualHost to connect to the WHS box (I image this would work for any other host on another computer) and created the files below.

Code:


<VirtualHost *:443>
        ServerName whs.homeserver.com
        ServerAlias *.shs.homeserver.com
        SSLProxyEngine on

        ProxyPreserveHost on
        ProxyPass / https://192.168.100.2/
        ProxyPassReverse / https://192.168.100.201/

</VirtualHost>



Please note that contrary to a previous post I have reintroduced "ProxyPerserveHost on".

I think I now have it working for remote access.

The downside is that when you go to your ClearOS Web based administration page the additional virtual hosts running on SSL showup.

Hope that helps any others who might be trying to do the same or similar thing.

Laurie
Laurie
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/12/02 20:08 By laurie_lewis.
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop