Webfaction: How do I run a Static/Perl app and Django app under the same website

Posted by swisstony on Stack Overflow See other posts from Stack Overflow or by swisstony
Published on 2010-05-17T20:43:28Z Indexed on 2010/05/17 21:01 UTC
Read the original article Hit count: 325

Filed under:
|

I have an existing Perl app that I'm moving to a Webfaction website. I will be adding Django apps to this Webfaction website too.

I would like the Django app to get first call and so would want its URL path to be /

This would allow me to add any new URLs to the urls.py I wish as my app grows.

If the URL doesn't match anything in the urls.py I would like it to get passed to the static Perl app.

For example

  • /app1 -> Django
  • /app2 -> Django

Everything else not picked up by urls.py I would want going to my Perl app

For example:

  • /index.html -> Static/Perl app
  • /about.html -> Static/Perl app
  • /contact.html -> Static/Perl app
  • /apps/perlapp1.cgi -> Static/Perl app

etc

How do I go about achieving this in Webfaction?

© Stack Overflow or respective owner

Related posts about webfaction

Related posts about django