rune on 11 Aug, 2017 05:42 AM
Ok I'm not quite sure what the issue is, but the root URL for your application is returning an HTTP 302 redirect with location set to the URL of the application -- so that's why Firefox returns that error as the redirect will just continue happening.
I suspect it may be related to how the application redirects to HTTPS rather than HTTP as a request to the HTTP endpoint will redirect to HTTPS. Since AppHarbor terminates TLS as the load balancer level this might be because your app doesn't inspect the X-Forwarded-Proto header to determine if the page was accessed over HTTPS.
Here is what I did I undid everything, and there is progress but now I am getting a "Welcome to Ngnix page. If that RequireHttpsAttribute is really required, exactly how I should implement it. I do apologize for continuing to ask, but this is the second application I have uploaded on here, so I am kind of new at this.
rune on 13 Aug, 2017 04:45 PM
I think the "Welcome to Nginx" page may just have been a temporary issue (which sometimes occur if you scale down to 0 workers, or it's a newly created app).I checked the one application on your account with this issue and saw the same issue as last time. If this is about an application that's not associated with your account it'd be great if you could let me know the name or URL so I can take a closer look.
The KB article I referenced links to an implementation of RequireHttpAttribute which you should be able to use as-is if you're using ASP.NET MVC - -here's a direct link for reference.
The actual url to my project is vidley.apphb.com. As of right now a whole new issue happened outside for App Harbor. I had to reinstall my entire operating system and the result is that I am having issues with my application. Of course this is out of your territory and I am currently working on this. I will keep you updated once I get that issue resolved, and I will also check out the link you posted, thank you for the support.
Okay I downloaded that RequireHttpsAttribute class from your link, and I got the class. Again I am new and I don't exactly know what folder I should put that class in my project. What I did was I just put the class into the project without any folders. When I tested it again, I am having the same results. I am wondering if there is a folder in particular I need to place this class in.
rune on 23 Aug, 2017 09:50 PM
You should be able to put it in any folder contained in your repository. Just make sure to commit it to version control, and add a file reference in your project -- this should make sure the new class is compiled along with your other projects.
When referencing the class in controllers you may have to explicitly define the RequireHttpsAttribute if you use that class name similar to how it's defined here, since RequireHttpsAttribute is already defined in the System.Web.Mvc namespace.
If you're in doubt about which implementation is being referenced/used you can always try and right-click the attribute (for instance in Visual Studio) and click "Go To Definition".