rackspace-cloud

WCF Configuration Issues on Shared Hosting

醉酒当歌 提交于 2019-12-08 06:07:07
问题 I have a WCF Service that works fine locally, on a server and on Azure. However i am trying to deploy the same code to RackSpace Sites (Shared Hosting Environment is running .NET 4.0. IIS7 & Windows Server 2008) and am running in the following error when the service returns a response: Message:[System.ServiceModel.ProtocolException] = {"The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be

OpenStack Rackspace Cloud Files .net SDK

被刻印的时光 ゝ 提交于 2019-12-08 02:51:05
问题 I am trying to save an XML file to a non CDN Container from Sydney: public void Save(XDocument document) { using (MemoryStream ms = new MemoryStream()) { document.Save(ms); ms.Position = 0; RackspaceCloudIdentity identity = new RackspaceCloudIdentity { Username = "username", APIKey = "xxxxxxxxxxx", CloudInstance = CloudInstance.Default }; CloudFilesProvider provider = new CloudFilesProvider(identity); provider.CreateObject("XMLFiles", ms, "xmlFile1.xml", region: "syd"); } } For a 1MB file, it

NodeJS - Socket.IO Setup: served static content no handshake (Ubuntu on Rackspace Cloud Server)

安稳与你 提交于 2019-12-07 05:28:20
问题 I have installed on Rackspace with Ubuntu node.js with Socket.IO When I tried a simple server app and try to use client request I got 'served static content' only instead of hand shake. In browser in debug I can see "Hello S..." and on server side: # node socket-server.js info - socket.io started debug - served static content /socket.io.js debug - served static content /socket.io.js I'm not sure where to start look for a problem (same script works in local development) Why node.js serve only

WCF Configuration Issues on Shared Hosting

女生的网名这么多〃 提交于 2019-12-06 16:33:54
I have a WCF Service that works fine locally, on a server and on Azure. However i am trying to deploy the same code to RackSpace Sites (Shared Hosting Environment is running .NET 4.0. IIS7 & Windows Server 2008) and am running in the following error when the service returns a response: Message:[System.ServiceModel.ProtocolException] = {"The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the res...

OpenStack Rackspace Cloud Files .net SDK

时光毁灭记忆、已成空白 提交于 2019-12-06 11:56:57
I am trying to save an XML file to a non CDN Container from Sydney: public void Save(XDocument document) { using (MemoryStream ms = new MemoryStream()) { document.Save(ms); ms.Position = 0; RackspaceCloudIdentity identity = new RackspaceCloudIdentity { Username = "username", APIKey = "xxxxxxxxxxx", CloudInstance = CloudInstance.Default }; CloudFilesProvider provider = new CloudFilesProvider(identity); provider.CreateObject("XMLFiles", ms, "xmlFile1.xml", region: "syd"); } } For a 1MB file, it takes about 50 seconds to upload (very long). And, trying to download the file back, returns an empty

htaccess to redirect http:// and http://www to https:// that plays nice with subdomains

放肆的年华 提交于 2019-12-04 12:43:28
I'm trying to redirect the following conditions: http://mydomain.com http://www.mydomain.com to: https://mydomain.com But I don't want it to mess up anything with subdomains, so that someone who types: http://m.mydomain.com would not be redirected to https. My present htaccess file looks like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress I've tried using some of the examples I've found here on stack

Openstack.Net SDK cannot access service with region

不羁的心 提交于 2019-12-04 06:06:58
问题 Using our own hardware, we've installed vanilla openstack with all components however I am having problems accessing services other than the Identity due to a region issue. The code used is as follows called with the admin account and admin tennant we created... public static void TestAccess(string userName, string password, string projectName, string projectId) { try { Uri baseUrl = new Uri(URL_IDENTITY); CloudIdentityWithProject projectCloudId = new CloudIdentityWithProject();

Stuck trying to bootstrap Windows server using Chef

巧了我就是萌 提交于 2019-12-03 13:50:58
I am a mac girl, working on connecting with knife-windows trough Opscode's managed Chef to my Rackspace Windows servers. (I know, it sounds exotic, but these Windows servers are a customer requirment). I tried to Chef for a spin but I am stuck in trying to bootstrap the Windows 2008 Server on Rackspace with the knife-windows command. I am working on OSX, using rvm, ruby 2.1.0 and a local gemset with chef + knife-windows. I was trying to follow the steps from: https://github.com/opscode/knife-windows I have configured the winrm service. I have set up a rule to allow inbound connections in my

Capistrano - How to deploy to multiple cloud servers

蓝咒 提交于 2019-12-03 03:52:39
I've heard that Capistrano supports deployment to multiple servers, but I haven't found a practical way to set it up. When I say multiple servers I mean servers running the same application in a production environment. At any time I would like to deploy to 5 or 10 servers if that is what I'm currently using. Thank you. Using multiple servers is one of the main reasons to use capistrano versus just doing things by hand. Your deploy.rb just needs to define what actions should be performed on what servers, which is done by setting which servers belong to which roles. You can create your own roles

Openstack.Net SDK cannot access service with region

♀尐吖头ヾ 提交于 2019-12-02 10:13:09
Using our own hardware, we've installed vanilla openstack with all components however I am having problems accessing services other than the Identity due to a region issue. The code used is as follows called with the admin account and admin tennant we created... public static void TestAccess(string userName, string password, string projectName, string projectId) { try { Uri baseUrl = new Uri(URL_IDENTITY); CloudIdentityWithProject projectCloudId = new CloudIdentityWithProject(); projectCloudId.Username = userName; projectCloudId.Password = password; projectCloudId.ProjectName = projectName;