ok never mind i got a better working www redirect, since rewrite is more convoluted and not recommended. I added this virtual host on top of my original virtual host:
# sld.conf <VirtualHost *:80> ServerName skylinedev.net Redirect permanent / http://www.skylinedev.net/ </VirtualHost> <VirtualHost *:80> ServerName skylinedev.net WSGIScript ETC... </VirtualHost> Now the issue with letsencrypt command is that you can only have one virtual host per conf file for setting up SSL: sudo letsencrypt --apache -d skylinedev.net -d www.skylinedev.net I tried to put each virtual host block in its own conf file and sudo a2ensite www-sld.conf sudo a2ensite ssl-sld.conf But then the www redirect stopped working. Is there something simple I'm missing, in order to get these separate vhost files to apply to the same application? Personally I would rather put both :80 vhosts and :443 vhost in the same file but LE obviously has technical reasons for keeping them separate. -- 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.
