Koozali.org: home of the SME Server

Forwarding subdomains

Offline f21970

  • ***
  • 53
  • +0/-0
Forwarding subdomains
« on: December 08, 2008, 12:42:19 PM »
Hi all,
I have an SME 7.4 server and am trying to forward requests directed to a subdomain to a windows (boo hiss) server on my network.  I've used ProxyPass as per wiki, but get the error message

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@standishchs.wigan.sch.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."
.

Can't see anything in the server error logs, and wondered if anybody else has had this problem and could help me out?

...

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Forwarding subdomains
« Reply #1 on: December 08, 2008, 02:31:02 PM »
f21970

As the wiki says, did you remove the subdomain first, before configuring proxypass for that domain.
"If you have added the internal or external server's domain name as a virtual domain on the SME Server, you must remove it prior to issuing these commands."

What are the actual commands you issued to configure proxypass.
Is the IP you used (for the windows server) accessible from the sme server & other machines on your network ie can you ping it ?
 
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline f21970

  • ***
  • 53
  • +0/-0
Re: Forwarding subdomains
« Reply #2 on: December 08, 2008, 02:41:35 PM »
Hi there,

Yes I removed the subdomain first (was configured under Hostnames and addresses, as a local subdomain, so removed it from there).

The windows server is fully available and being used internally, and I want to make it available externally on port 443 https.

I issued the commands:

[root@proxy ~]# db domains set remote.standishchs.wigan.sch.uk domain           
[root@proxy ~]# db domains setprop remote.standishchs.wigan.sch.uk Nameservers internet
[root@proxy ~]# db domains setprop remote.standishchs.wigan.sch.uk ProxyPassTarget https://192.168.110.22/
[root@proxy ~]# db domains setprop remote.standishchs.wigan.sch.uk ProxyPassTarget https://192.168.110.22/
[root@proxy ~]# db domains setprop remote.standishchs.wigan.sch.uk TemplatePath ProxyPassVirtualHosts
[root@proxy ~]# signal-event domain-create remote.standishchs.wigan.sch.uk     

Please help!!

...

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Forwarding subdomains
« Reply #3 on: December 08, 2008, 03:14:04 PM »
f21970

Can you access https://192.168.110.22/ from a local computer successfully ?

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline f21970

  • ***
  • 53
  • +0/-0
Re: Forwarding subdomains
« Reply #4 on: December 08, 2008, 03:24:52 PM »
Thanks Mary,

Yes I can.  When I access https://192.168.110.22/ I get the default IIS page for the server, which is correct.  If I access https://192.168.110.22/ts internally I get a logon box for the terminal server, and can sign in OK.  It's just the external access bit which is stumping me!


...

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Forwarding subdomains
« Reply #5 on: December 08, 2008, 03:32:58 PM »
Here are some notes I took on getting proxypass to work for an internal Exchange server (for outlook web access).  I had trouble getting it to work w/ Internet Explorer due to some default authentication issues; maybeyou're seeing a similar issue.

Hopefully this will help: http://forums.contribs.org/index.php/topic,40075.0.html

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Forwarding subdomains
« Reply #6 on: December 08, 2008, 07:33:11 PM »
Here are some notes I took on getting proxypass to work for an internal Exchange server (for outlook web access).  I had trouble getting it to work w/ Internet Explorer due to some default authentication issues; maybeyou're seeing a similar issue.

Hopefully this will help: http://forums.contribs.org/index.php/topic,40075.0.html
Perhaps you are accessing the secure proxypassed server from a non secure (http) proxypass address?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Forwarding subdomains
« Reply #7 on: December 08, 2008, 07:34:03 PM »
Perhaps you are accessing the secure proxypassed server from a non secure (http) proxypass address?
Don't the log files give any clues in /var/log/messages or /var/log/httpd/access_log or /var/log/httpd/error_log?
« Last Edit: December 11, 2008, 12:44:13 AM by pfloor »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)