appfog

Yii removing application directory name from URL

旧街凉风 提交于 2019-12-06 12:38:43
Okay seems like this is a pretty common problem, but I can't find a definitive solution on the forums. My Yii is set up like this /webroot/framework /webroot/app /webroot/requirements The app folder hosts the yii application however my url looks like : site[dot]com/app/site/index How do I remove the 'app' portion from the URL. I tried moving my .htaccess file to the webroot folder and it redirects but 'app' still shows up in the url Here are the contents of /webroot/.htaccess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # need this for AMZN ELB or get a infinite redirect loop

How to serve static content with Apache in AppFog (WSGI Python app)

独自空忆成欢 提交于 2019-12-05 00:06:19
问题 I'm using AppFog PaaS system for a few days, and I love it, It's probably the best PaaS system that I've tested (I've used other 3 ones previously), but didn't find information about how to serve static content with the Web server in frontend (Apache https or nginx) I'm not sure what server is being used. My app is a Python WSGI with CherryPy and works perfectly in AppFog but I don't wan't CherryPy to serve static content, I think that Apache httpd or nginx is a better option for that. 回答1:

On appfog, how to find the reason for 500 Internal Server Error?

吃可爱长大的小学妹 提交于 2019-12-03 21:39:51
I have created a simple python flask application, which is working fine at http://cm-test.aws.af.cm/ But, when you access it on the route http://cm-test.aws.af.cm/redis it fails with "500 Internal Server Error" The problem is, I can't find a way to see some log or error message about the problem... Is this syntax error, or exception, or something else? How can I get more information about this error? I can't find nothing on the dashboard and there is nothing in the logs ("af logs cm-test") On the command line, you can use af logs <appname> to view your application's server output/log. It took

Node.js TCP Socket Server on the Cloud [Heroku/AppFog]

微笑、不失礼 提交于 2019-11-30 06:57:09
Is is possible to run a Node.js TCP Socket oriented application on the Cloud , more specifically on Heroku or AppFog . It's not going to be a web application, but a server for access with a client program. The basic idea is to use the capabilities of the Cloud - scaling and an easy to use platform. I know that such application could easily run on IaaS like Amazon AWS , but I would really like to take advantage of the PaaS features of Heroku or AppFog . I am reasonably sure that doesn't answer the question at hand: "Is is possible to run a Node.js TCP Socket oriented application". All PaaS