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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using DNN with the NGROK serviceUsing DNN with the NGROK service
Previous
 
Next
New Post
1/26/2017 8:15 AM
 

Hello

I want to use the NGROK (https://ngrok.com) localhost forwarding service with DNN for testing (e.g. on actual mobile devices) and also get client feedback (without having to deploy) when a website is in the early development phase. The NGROK service behaves as it should. However, it is not practical to evaluate a DNN-based website because the page-links appear as absolute (not relative) URLs; the localhost domain-name is in the link.

For example, the home page (i.e. on localhost) is displayed correctly via NGROK on a non-development PC. Great! So far so good.  Naturally, if one were to click on the "Services" link on the navigation menu the URL should change to,
http://50cdc2b3.eu.ngrok.io/en/Services
  and the page should open

But, instead what happens is that the URL shown below appears in the address field,
http://bwig.pq.v03.05.d804.local/en/Services

Which defeats the purpose since this URL only works on my development PC where the localhost IIS process is running.

NGROK is a great service, especially with a paid subscription ($60/year) where reserved subdomain names can be used such as bigelow-test1.ngrok.io.
Other CMSs use this service and so I assume it must be possible to get this working with DNN as well. Does anyone in the DNN community know the solution to this absolute-URL issue? A search & replace for all occurrences of the localhost domain in the database with '/' is perhaps one possibility, but I am convinced that there is a more elegant solution.

 Daniel

 
New Post
2/24/2017 1:20 AM
 
At first I thought of: http://DNNDEV.ME which resolves to 127.0.0.1 (see http://www.dnnsoftware.com/wiki/setti...), ad then I thought of editing your system32/devices/hosts file, but I think both approaches won't help you.

Have you set up 50cdc2b3.eu.ngrok.io as a "portal alias"? That should make all links relative to that base URL, if coming in originally from there. You can set it from Manage | Sites | settings for the portal in question.
 
New Post
2/28/2017 9:24 AM
 
Thanks John for your feedback.
Specifying new portal aliases via DNN or adding new bindings to web.config via IIS will not work because the URLs for the menu links include the top-level domain name as if it were hard-coded. If these links could be made relative then the problem is solved. However, that is a DNN framework-level issue over which we seem to have no control.
Regards,
Daniel
 
New Post
2/28/2017 1:26 PM
 
If your skin is built "correctly." The DDR menu generates relative links, so using a portal alias as John suggested will work just fine. That's exactly what portal aliases are designed to do. Try it!

If you are finding absolute links, go back, find where they come from, and change them to relative links.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
3/1/2017 7:26 PM
 
I often have the need to move a given DNN instance from production to localhost and back again. For the website to work in the new environment the portal aliases must of course be changed. So yes, I have "tried it" and it always works. As for the Skin, I am using the DIXIT and Porto3 themes from Mandeeps, which are widely used and most certainly built correctly.

The question is really this: Has anyone been able to get DNN running on localhost to work with the NGROK service where all the links work correctly in a browser on a remote computer? If the answer is Yes, then that would be very encouraging news indeed.

Daniel
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Using DNN with the NGROK serviceUsing DNN with the NGROK service


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