Jump to content

Python Application Processed Thru Dispatch.wsgi?


Recommended Posts

NOTE: My website is at http://tt.heliohost.org/ and the application is hosted on the root of the public_html folder.

 

Hey everyone,

 

After reading the guide on Phython at http://www.heliohost.org/home/features/languages/python , I have set up a simple application that displays webpages. The problem is that everything gets processed thru dispatch.wsgi, like if you type in http://tt.heliohost.org/u/list the requested url ends up being http:// tt.heliohost.org/dispatch.wsgi/u/list...

 

My .htaccess looks like this:

RewriteEngine On
RewriteBase /
RewriteRule ^(blog/.*)$ - [L]
RewriteRule ^(h/.*)$ - [L]
RewriteRule ^(media/.*)$ - [L]
RewriteRule ^(admin_media/.*)$ - [L]
RewriteRule ^(dispatch\.wsgi/.*)$ - [L]
RewriteRule ^(.*)$ dispatch.wsgi/$1 [QSA,PT,L]

 

It appears that the last line may be causing the problem but when I change it, it gives me errors.

 

If anyone knows how to solve my problem or if you need more details, feel free to reply.

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...