On Monday, October 22, 2012 6:12:50 PM UTC+2, Joonas Lehtolahti wrote:
>
> Really like that? With www.example.com as the virtualhost?
>
yes, but I have changed that now. Here is the new configuration:
*************************************************************************************************************************
WSGIScriptAlias /myapp
"D:/Research/09-BuildingARecommender/xampp/htdocs/script/myapp.wsgi
<Directory "D:/Research/09-BuildingARecommender/xampp/htdocs/script">
Order allow,deny
Allow from all
</Directory>
*************************************************************************************************************************
> > and finally: myapp.wsgi as written in the guide is in
> > the /usr/local/www/wsgi-scripts/ folder.
>
> Your configuration above is referring to ante.wsgi.
>
yes, sorry it was a long day, so i messed quite a lot.
I will be more precise now. so the script's name is: myapp.wsgi
and here is the code:
*************************************************************************************************************************
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
*************************************************************************************************************************
> > However, when i do: http://localhost/myapp i get:
> > *********************************
> > object not found!
>
> Is your virtualhost for localhost or www.example.com? What about ante vs
>
> myapp?
>
i am not using virtualhost now. Should i?
there is no ante now, only myapp.wsgi.
> > when i do: http://localhost/usr/local/www/wsgi-scripts/myapp.wsgi
> > i get the code on the screen....
>
> That would be if access is allowed everywhere on the system in Apache
> config, and you have not specified any specific handler for that path, so
>
> it gets handled as any file.
>
ok i see.
> Please first double check your configuration, since the config you posted
>
> and the tests you listed you did conflict with each other a lot.
>
yes, sorry, i have fixed that now (to the best of my knowledge)
> And what is particularly interesting is the server signature:
> Apache/2.2.21 (Win32). Are you on Windows environment? Then all those
> /usr/ paths seem weird in the least as that's typical file hierarchy in
> Unix based systems, while Windows uses drive letters...
>
yes, I am on Windows, I have corrected that now
a few more things:
1) is there anything else I should have added into the configuration file?
other than what i have entered above, and the
LoadModule wsgi_module modules/mod_wsgi.so
2) does using windows cause any other issues that are unclear to me at the
moment?
thank you both for your help, and sorry for double threads!
Best
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/modwsgi/-/v4VtGaimwWkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.