The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
what may be the reasons?
please give ur valuable suggestions.I am in need of that.How to overcome this problem?or i have missed any steps.
You need to look in the Apache error log files to find the actual
details of the error. This may be a Python traceback, or an error from
Apache or mod_wsgi. Post the whole section generated at the time of
the request, please don't post just a bit that you think is relevant
as you may not include important details.
At a guess though, I would say it is because you need:
sys.path.append('/var/www')
instead of:
sys.path.append('/var/www/samplewsgi')
Although am at a loss as you why you have:
sys.path.append('/var/www/samplewsgi')
from samplewsgi import app as application
in the first place.
Have you tried with the hello world program at:
http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
Graham