I have been trying to host OSQA on IIS.
I'm using a mix of the instructions at:

http://meta.osqa.net/questions/121/installing-osqa-on-windows-2008-server-with-iis7 http://code.djangoproject.com/wiki/DjangoOnWindowsWithIISAndSQLServer http://wiki.osqa.net/display/docs/Setting+up+a+development+environment+on+Windows http://whelkaholism.blogspot.com/2010/10/django-on-iis.html

I have:
Windows Server 2008 R2
IIS 7
Python 2.6

I am at the point where i can successfully call at command prompt
C:DjangoWebOSQA>manage.py runserver
and have a fully working instance of OSQA however the running it in this manner does not seem accessible from off machine.

I have installed PyISAPIe and linked it to IIS. I had it successful load a HelloWorld.py. When I switched this to display OSQA (after some work adding permissions to a LARGE list of files/folders) I get a textual representation of the home page where non of the links work. Clicking on the links simply returns.

HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

There are no recent errors in the OSQA log file, and only 404 errors in the IIS error logs.

Have i perhaps done something wrong in setting up the PyISAPIe handler?

Thanks in advance
Rob

asked 07 Apr '11, 22:59

RobP's gravatar image

RobP
31246
accept rate: 0%


I know it's not really the answer you want but: I gave up and due to some weird situation was unable to install apache and so had to use a cherrypy based webserver that made it pretty straight forward e.g. manage.py runcpserver host=ip address port=80

http://lincolnloop.com/blog/2008/mar/25/serving-django-cherrypy/

You can also download it via easy install. One problem I found was the lack of logging options (could you google analytics or your choice of webanalytics to track) and that I had to log in via console to get it to work correctly as it isn't service based :/

But I do agree with you, getting step by step instuction guide for this (with out of the box ldap) will see a lot more behind firewall installs.

Regards Thomas King

link

answered 09 Apr '11, 07:31

Thomas%20King's gravatar image

Thomas King
3452817
accept rate: 33%

Oddly this issue was resolved for me by recreating the handler mapping within IIS manager for my site. Although I already had a wildcard mapping for all files which was setup to load PyISAPIe, recreating this mapping seemed to work, I'm not 100% sure why.

link

answered 11 Apr '11, 11:19

RobP's gravatar image

RobP
31246
accept rate: 0%

Hi RobP, I know this is quite old, but I'm having the same issue as you. In your last answer, you said you added permissions to a LARGE list of files/folders, which ones?

I remember having an error displayed directly in the web page where the django log file was unaccessible, so I gave proper access to get this work I didn't get any permission complaints since then. I see the header and footer of OSQA but all CSS and the page content are not displaying - 404 errors. None of the links work either.

I have: Windows Server 2008 R2 IIS 7 Python 2.6

I have installed PyISAPIe and linked it to IIS. I had it successful load a HelloWorld.py. Basically, I have the same config as you said in your initial post.

So first, what is the LARGE list of file that you added permissions to? Other than that, is there anything else I could try to get this to work?

Thanks in advance, Mathieu

(16 May, 13:37) mathasselin
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×5
×2
×1

Asked: 07 Apr '11, 22:59

Seen: 671 times

Last updated: 16 May, 14:54

powered by OSQA