Report this

What is the reason for this report?

mod_wsgi configuration with apache2

Posted on June 4, 2016

hello there

im running python bottle framwork with apache2 via wsgi handling

the problem i had it is that my website (Ip address ) still display the error page 500 !! without showing the html pages from handling from wsgi script !

this the app.wsgi file (the error is not in this file I’m sure):

import sys,os ,bottle
sys.path.append('/var/www/apabtl/')
import hello
application = bottle.default_app()
  • hello is my bottle script (which returned & renders the html pages)

this is may 000-default.conf :

ServerName 147.178.331.204
ServerAdmin  YU@gmail.com
ServerRoot "/var/www/apabtl"
DocumentRoot "/var/www/apabtl"
#ServerName 147.178.331.204
WSGIDaemonProcess apabtl  threads=5
WSGIScriptAlias / /var/www/apabtl/app.wsgi
<Directory /var/www/apabtl>
     <Files app.wsgi>
         Require all granted
      </Files>
</Directory>

  • apabtl is my application.

please can you help me (:

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.