• Sales: 1-800-961-2888
  • Support: 1-800-961-4454

Cloud Sites Technology Option Changes


NOTE: Please note that the following workarounds will not work until we remove the hybrid feature on August 31st, 2012

FURTHER NOTE: This article is written for our Classic Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and selecting "Classic Cloud Control Panel".

The Rackspace Cloud Sites product has historically given customers the ability to set up a hosting environment in which customers serve Windows/IIS applications from a Linux/PHP based site and vice versa. Cloud Sites will be removing this ability to host disparate technologies, as we are changing our technology options. These technology option changes will allow us to release new changes more quickly. Please refer to the scenarios below for rewrite help.

SCENARIO 1

Running a single CMS or application on your site, but this application is running on an inappropriate sites technology. (example: Wordpress, which is intended for Linux, running on a .NET site technology).

Solution. Simply change your technology selection in the Classic Cloud Control panel.  On the website features tab, change your site to the appropriate technology selection to match your application.

Please ensure that you are only running a single application on this site and ensure that the application is running on the appropriate technology.

SCENARIO 2

Running more than one, disparate CMS/Application on your site, and these applications have different default technologies, one that is an IIS and one that is PHP/Perl/Python.

Solutions:

IIS files running on PHP

If you are currently running IIS files (.asp, .aspx, etc) on your PHP site, you will need to create a new site (either a new domain or a subdomain) with Windows/IIS as the default technology. You will then need to move the IIS files over to this new domain or subdomain. Once this is finished, you will need to setup a rewrite on the main PHP site via an .htaccess file to redirect any IIS files to the new site. An example is given below:

RewriteRule ^(.+)\.asp$ http://www.iisexample.com/$1.asp [R=301,NC]

PHP files running on IIS

If you are currently running PHP files (.php, etc) on your IIS site, you will need to create a new site (either a new domain or a subdomain) with Linux/PHP as the default technology. You will then need to move the PHP files over to this new domain or subdomain. Once this is finished, you will need to setup a rewrite on the main IIS site via a web.config file to redirect any PHP files to the new site. An example is given below:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Redirect PHP Request" stopProcessing="true">
                    <match url=".*\.php" />
                    <action type="Redirect" url="http://phpexample.com/{R:0}" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

PHP based blog running on IIS

If you are currently running a PHP based blog on your IIS based website (Drupal, Magento, etc) within a blog directory, you can use the following redirect to redirect any requests to www.domain.com/blog/*.php to your new domain (ie blog.domain.com):

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Redirect Blog" stopProcessing="true">
                    <match url="^blog(.*)\.php" />
                    <action type="Redirect" url="http://blog.testingphpstuff.com{R:1}.php" appendQueryString="true" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>


© 2011-2013 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License


See license specifics and DISCLAIMER

5 Comments

What about the sites which has been using IIS7.0 ASP.Net with My-SQL Database??
Please confirm

Hello Satish,

These sites will not be affected. Your ability to use alternative database solutions will not be impacted by these changes. Only the ability to have both IIS and Apache running on the same site will change.

Thank you,

Mark D.
Cloud Sites Support

I have a one cloud sites account. I have asp sites running with MSSQL databases. I also have PHP sites running MYSQL data bases. They are separate websites. Can I still run them after August 31rst or do I need to set up separate accounts?

Hello Martin,

Thanks for the comment. In this instance you won't have to make any changes.

I've created the subdomain and moved my PHP files off of the IIS server, but am having problems getting the web.config file to work. Does it need to be in a specific directory?

Add new comment