On Tuesday, 12 May 2020 16:06:20 UTC+1, OwlHoot wrote:
>
>
> I have used mod_wsgi-express to produce an Apache config, but I would like 
> to convert my httpd.conf file to run Apache using the "vanilla" mod_wsgi 
> module.
>   :::
>

Further to my previous post, I have confirmed that the app runs fine (with 
"http") when run with "django-admin runserver 0.0.0.0:8000"

Also, for reference, some other relevant files are:

app.wsgi  (my WSGI script, not the handler.wsgi generated by 
mod_wsgi-express) :

    #!/usr/bin/python3

    import os

    from django.core.wsgi import get_wsgi_application

    os.environ['HTTPS'] = 'on'

    os.environ['wsgi.url_scheme'] = 'https'

    application = get_wsgi_application()


ssl.conf :

    # 
https://www.linuxminion.com/ssl-session-caching-in-apache-http-webserver/
    # 
https://stackoverflow.com/questions/20127138/apache-2-4-configuration-for-ssl-not-working
    #
    LoadModule socache_shmcb_module 
/usr/lib64/httpd/modules/mod_socache_shmcb.so

    SSLSessionCache         shmcb:/run/httpd/sslcache(512000)
    SSLSessionCacheTimeout  300


All the log output looks fine, except for this suspicious output 

    [Tue May 12 15:27:40.149404 2020] [wsgi:error] [pid 673:tid 
140277188122368] [client 172.31.0.1:36766] Embedded mode of mod_wsgi 
disabled by runtime configuration: /application/source/bos2.wsgi
    [Tue May 12 15:27:40.149420 2020] [http:trace3] [pid 673:tid 
140277188122368] http_filters.c(1128): [client 172.31.0.1:36766] Response 
sent with status 500, headers:
    [Tue May 12 15:27:40.149424 2020] [http:trace4] [pid 673:tid 
140277188122368] http_filters.c(957): [client 172.31.0.1:36766]   
Content-Length: 531
    [Tue May 12 15:27:40.149427 2020] [http:trace4] [pid 673:tid 
140277188122368] http_filters.c(957): [client 172.31.0.1:36766]   
Connection: close
    [Tue May 12 15:27:40.149429 2020] [http:trace4] [pid 673:tid 
140277188122368] http_filters.c(957): [client 172.31.0.1:36766]   
Content-Type: text/html; charset=iso-8859-1
    [Tue May 12 15:27:40.163487 2020] [http:trace4] [pid 673:tid 
140277188654848] http_request.c(437): [client 172.31.0.1:36770] Headers 
received from client:
    [Tue May 12 15:27:40.163515 2020] [http:trace4] [pid 673:tid 
140277188654848] http_request.c(441): [client 172.31.0.1:36770]   Host: 
jrsurveys.com:8000
    [Tue May 12 15:27:40.163520 2020] [http:trace4] [pid 673:tid 
140277188654848] http_request.c(441): [client 172.31.0.1:36770]   
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0)     
Gecko/20100101 Firefox/76.0


Not sure why WSGI treats "embedded mode disabled" as an error, because 
isn't this the recommended config?!


Also, the above log output was for an "https" request, which is what I need 
to work, and in fact I'd be more than happy to disable "http".


Regards

John R


-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/5b2b2a4b-e951-432b-8f02-7b71fe20752c%40googlegroups.com.

Reply via email to