Connecting ColdFusion to CDN [closed] - coldfusion

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm just wondering whether anyone out there has managed to connect up a ColdFusion based CMS to a CDN for content hosted within it ?
We currently have our own CMS and we make use of CKEditor and CKFinder to display content. However, we are noticing that it might benefit from taking advantage of a CDN for static content.
What I'm wondering is how does one go about connecting a CMS to a CDN? All I've been able to find is articles on using existing wordpress modules for connecting content for websites.
Any info would be greatly appreciated.

You don't need to connect a CMS to a CDN that is not how CDNs work.
Let's say your assets are served on assets.mydomain.com to utilise a CDN you create an account with one and register a CName pointing at the CDNs servers let's say that is static.mydomain.com. On the CDN you configure assets.mydomain.com to be the origin for static.mydomain.com.
Now you reference all your assets in the HTML of your website using static.mydomain.com. This is where the CDN does its clever bit. When an asset is requested the CDN checks to see if it has it, if not it requests it from the origin and simultaneously caches it so the next time you are asked for that asset it returns it from the CDN cache.
So really to connect your CMS to the CDN as you ask is achieved by making sure that the assets are requested off of a domain you have configured as above.

Related

Wordpress IP changed [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Pls help me out.
I made a wordpress webpage in Google cloud platform.
Couple of days back I tried to link my domain with the webpage.
But as I am not an expert.
From day before yesterday, I am not been able to login neither my wordpress admin page nor my webpage is opening.
And in Google cloud platform, wordpress url and site address changed and even the external IP..
But how to retrieve my previous IP and my previous work..
Anyhow I need to retrieve my work.
Kindly look into it.
My wordpress ip which is not working- 35.221.56.166
Thanks in advance.
As mentiones here, the VMs sometimes have maintenance which means that the intance can be restarted. If you didn't assign an static IP to the VM, the VM will have an ephemeral IP that is relased when the VM is restarted or stoped.
Having said that, the IP your VM had was released and you cannot recover it.
I suggest to reserve an static IP for your VM and use the new IP to connect to your VM, etc.
Here's a similar question.

How Django ORM, REST API and a Web app stack up? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to develop a web application in Django including a REST API and also a web application to allow user to login and see stuff. I'm a bit confused as to how these are connected together.
I'm thinking that Django ORM is at the bottom and on top of that comes the API and then the web app uses the API to generate HTML. Is this correct understanding? A yes or no with few {key}words explanation would be enough.
What is the best practice?
Basically Django ORM is the bottom layer in your app as it will make possible to manipulate your data. When it comes to APIs, the main goal is to make accessible and manipulable your data from different devices (clients), for instance your web app and your iOS app may consume the same API and that will reduce your implementation time and eventually it will give you a better integration through your different clients and devices. Last but not least, the Web app is at this point the consumer to your API and your front-end.
You could check Tastypie or Django REST framework/ in order to implement your API and for your web app you have plenty of frameworks that you could use as Backbone, AngularJS etc.

Single Page Application or Multi-page Application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am working on a web application project. This web application will have many users, and each user will be able to upload images to the website. Then I will write an android application to access those images. This is the description of my project.
Should I go with single page application such as backbone.js or should i go with a multi-page application approach such as Django? For the database stuff, I was thinking of going with Mongodb for now. Any advice on that is very appreciated !
Thanks,
An SPA (single page app) has nothing to do with going with Django or Backbone. You can write an SPA while using Django. BUT you can also use Backbone along with Django. For more on this, read these posts:
http://sidazad.tumblr.com/post/52201957429/web-2-0-the-switch-to-client-javascript-frameworks
http://sidazad.tumblr.com/post/52591790157/the-search-for-the-perfect-software-stack-part-1
To answer your question, I'd say use Backbone + Django and go with a Single Page App. That's where the web is moving. By using Backbone as well as Django you will get the advantages that Django provides on the server side while getting the great client side code organization and plumbing for a SPA from Backbone.
There are ways in which you can write your django templates so they are reusable on the client side. Look at this project in my GitHub for help with this on which I will be writing a post soon:
https://github.com/sidazad/django-backbone-stack-1

CloudFoundry App subdomain [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I admire cloudfoundry.com, especially when deploy the application to the cloudfoundry.com system , that was able to create the subdomain for app it self , make it live on internet , so we can access it directly if we connect to internet.
I've successfully install vcap on public server paas.azure4j.us .
But when I deployed an application and an output said that it was succesfully deployed and make a subdomain like 'myapp.azure4j.us' .
I understand that we can found sub domain configuration on cloud_controller.yml and deployment.json .
CMIIW
But when I access it directly from web browser ,why it doesnt work ?
So I have to set it on my /etc/hosts or add subdomain on
DNS manager of provider to access it.
My Question is , how cloudfoundry.com make them client app's subdomain directly connected to internet when them newly deploy it ??
Are you sure the DNS for azure4j.us is set up correctly for this? There seems to be a wild-card domain record set up, if I open myapp.azure4j.us, it doesn't appear to go to a VCAP instance.

A good static file server as a service [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for an easy to use static file service that I can use with my application server. I'm using Django and just need a simple service that let's me host static files that I can call from my templates.
It would be best if the service had an easy way to secure certain files and had a way to easily integrate that secure file sending.
I could just use a webserver I have, but I'm currently testing Heroku and it doesn't host static files. I'd use my other webservers, but I'm looking for something that can handle the secure files better then just an ngix server. I'm not a great admin so I was hoping for a easy-to-use API based or something static server host.
Essentially I want to do what is described in here: http://forum.slicehost.com/comments.php?DiscussionID=1929
But from a server that is not "local" to the application server, like http://wiki.nginx.org/NginxXSendfile that requires.
Well that depends on what you need. Are you looking for a CDN, then go to google and search CDN and spend a few hours picking one out. If you're looking to store user uploaded files perhaps try S3.
If your looking for how to deal with this in django. Well then that's what the STATIC_URL (or MEDIA_URL) setting handles for you (as well as the {{ MEDIA_URL }} idiom is for in templates (replaced by staticfiles in django 1.3)