Hello,

I have a CentOS 6.7 installation on a VM, and am running Django 1.8.8 over 
Apache 2.2.15 using mod_wsgi version 4.4.21 (that I had compiled from 
source using Python 2.7.8 in a virtualenv).

I've used mod_wsgi-express to generate the Apache scripts (it's extremely 
helpful!) and it works fine for http. I am able to connect to the website 
over http and view all the images on the site.

The commands used were:

(vishwaas_env)[syt_admin@VM1 www]$ mod_wsgi-express setup-server 
/home/syt_admin/projects/vishwaas/vishwaas_django/vishwaas_django/wsgi.py 
--host=0.0.0.0 --port=80 --user apache --group apache 
--server-root=/home/syt_admin/projects/vishwaas/www

(vishwaas_env)[syt_admin@VM1 www]$ sudo ./apachectl start

However, when I try to do the same for https (I followed instructions at 
https://gist.github.com/GrahamDumpleton/b79d336569054882679e, but left out 
the client authentication bit).

(vishwaas_env)[syt_admin@VM1 www-https]$ mod_wsgi-express setup-server 
../vishwaas_django/vishwaas_django/wsgi.py --user apache --group apache 
--server-root=/home/syt_admin/projects/vishwaas/www-https --https-port 443 
--port 80 --https-only --server-name www.xyz.in --ssl-certificate-file 
ssl-certs/server.crt --ssl-certificate-key-file ssl-certs/server.key

the http.conf file that is generated does not have the Alias 'static' 
directive. As I result, I can connect to the website but not view any 
images.

If I insert the missing lines (copied over from the http.conf generated 
earlier):

Alias '/static' 
'/home/syt_admin/projects/vishwaas/vishwaas_django/collected_static'

<Directory 
'/home/syt_admin/projects/vishwaas/vishwaas_django/collected_static'>
    Order allow,deny
    Allow from all
</Directory>

then I can see the static files on the website.

Is this a bug in mod_wsgi-express or am I doing something wrong?

Regards,
Tanuka

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to