The current db design for cuyahoga_site table has a column for homeurl. I would like to propose that this gets separated into another table so that multiple urls can point to the same logical site.
One other topic that I would like to discuss is a strategy for ssl per node. What do you think of adding a bool column to the Cuyahoga_node table for SSL?
sleuthThe current db design for cuyahoga_site table has a column for homeurl. I would like to propose that this gets separated into another table so that multiple urls can point to the same logical site.
The next version (0.7) has site aliases where you can point as much urls to one site as you wish :). As a bonus you can also point a url to a specific node in the site.
One other topic that I would like to discuss is a strategy for ssl per node. What do you think of adding a bool column to the Cuyahoga_node table for SSL?
What exactly are your thoughts about this? Should Cuyahoga check if the request for a node is an SSL request (when required) and raise an exception if this is not the case? Or should the user be redirected to the same node but then with https?
The first thing that comes to mind is an HTTPModule that would check the node setting and the request. If the node setting is SSL true, and the request did not have https then it would redirect to https? I would imagine there should be a web.config setting to turn the redirect on or off in case the cert was not loaded on the web server.
Do you see any issues with this approach?
Hmm, it can be done, but it will take some work. Currently, the PageEngine class does the work with nodes. It instantiates the CacheManager (in the OnInit) and after that, the nodes are available.
Now with a HttpModule that checks the request for SSL, that same HttpModule needs to access to the nodes via the CacheManager. This CacheManager is simply unavailable because it lives within the PageEngine scope.
A solution would probably be to instantiate the CacheManager much more earlier (from a HttpModule) and put it in the Context.Items collection.
Ideas?
The only thing that worries me with this is that everything is getting more and more complex and new users will have a hard time with this stuff.
I am going to reverse my previous suggestion. That comment was made in haste and was a knee jerk regurgitation on what I have done in the past. It doesn’t make sense in this context because there is only one page, the url is being rewritten for friendly URLs, the page will be rendered top down and may already be in memory. So why separate the logic and complicate things unnecessarily, keep the basic rule of a top down render and you will be able to maintain a linear logic flow on what is on each page. So what about adding it to NodePath (or just after this line)?
this._rootNode = this._activeNode.NodePath[0];
If the activeNode has an HTTPS bool and the request is not HTTPS then it is redirected to itself except with HTTPS.
To reduce initial user complexity I would turn this feature off in the web.config and set the database default value to false for new rows. Then the developers will never notice it until they need it.
Your last suggestion looks easy to implement. I'll add it to the list. Perhaps you could implement it yourself and send the changes? It will be included in the next release then.