Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPISolPartMenu - Reverse ProxySolPartMenu - Reverse Proxy
Previous
 
Next
New Post
4/1/2008 12:04 PM
 

Hi Jon, everyone,

I'm trying to figure out how to make the SolPartMenu work with my reverse proxy configuration.  Currently, my site is hosted on an internal machine inside my company network.  I've got the domain sitting with a hosting company that reverse proxies to the address of the internal machine.  The external URL is www.capch.ca.  The internal URL is www.nexjsystems.com:8089.

My question is, for all the relative links on the site, the reverse proxy works (ie if there's a relative link /contact_us.aspx, the HTML code will say /contact_us.aspx, which allows the reverse proxy to work and have it say www.capch.ca/contact_us.aspx).  But SolPartMenu grabs the absolute URL, which spits out www.nexjsystems.com:8089/contact_us.aspx - and this is wrong.

How do I get SolPartMenu spitting out relative links so that the reverse proxy will work and complete the URL as www.capch.ca/relative_link?

Thanks!
Nelson

 
New Post
4/3/2008 8:25 AM
 

Are you using this in DNN, or a separate site?  I don't believe there is anything in solpart that will resolve the urls to absolute.  Are you sure this is not DNN doing the conversion for you?  Regardless, you could always set the url to

window.location.href='mypage.aspx';

 


 
New Post
5/25/2009 1:34 AM
 

Hi Nelson,

I've just worked out how to do this myself.

I did it as a sub-site to my main site (http://www.intuitiveit.com.au/subsite) but I'm sure it will work for top level sites too.

Due to the way that DNN handles host headers (so you can have multiple portals under one instance) and the way solpart menu generates its URLs, there are some gotchas that need to be addressed.

1. On the apache box, in the httpd.conf the proxypass and proxypassreverse must point to the same value as the servername. This is to ensure the solpart menu reflects the correct url. See the example here

<VirtualHost>
ServerName www.intuitiveit.com.au

ProxyPass / http://www.intuitiveit.com.au/
ProxyPassReverse / http://www.intuitiveit.com.au/
</VirtualHost>


2. On the apache box, enter a line in the hosts file to point to the backend IIS server:
192.168.0.1 www.intuitiveit.com.au

3. On the IIS server, make sure the directoryname that contains the DNN code IS NOT the same as the URL you are using.

The right way:
Directory name c:\inetpub\wwwroot\intutiveit\dnn
Portal alias subsite

The wrong way:
Directory name c:\inetpub\wwwroot\intuitiveit\subsite
Portal alias subsite.  You will get an infinite redirect loop if they are the same


4. Create a virtual directory under the Site Root called subsite and point it to c:\inetpub\wwwroot\intutiveit\dnn

5. Create your new portal in DNN Host settings and make it www.intuitiveit.com.au/subsite

That's it.  Good luck

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPISolPartMenu - Reverse ProxySolPartMenu - Reverse Proxy


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out