Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed an instance of cloud9 on a webspace (CentOS 5). Installation was easy and it is running fine.

My hosting provider supports mod_proxy, thus I use a .htaccess to re-route the requests to node:

RewriteRule ^cloud9/(.*) http://localhost:3131/$1 [P]

In theory, this works. I can access it and the sent source is clearly cloud9. However, the page stays white and my JavaScript console shows me this error:

ReferenceError: require is not defined

Looks like they are using require.js, which fails to load:

 <script type="text/javascript" src="/static/require.js"></script>

It is trying to load it from because it doesn't know that it is called through a proxy. What do I have to change so it will use

I have not found anything in the configuration files, but it would be great if there is a solution that does not require me to modify any of cloud9's code.

share|improve this question

You must log in to answer this question.

Browse other questions tagged .