> On 30 Dec 2016, at 7:19 PM, Jaqen Nki <[email protected]> wrote: > > Ok got it. I will work on that. Quick question as well, im trying to > redirect www.skylinedev.net <http://www.skylinedev.net/> to > http://skylinedev.net <http://skylinedev.net/>. tried adding this top part > to my vhost but not working: > > <VirtualHost *:80> > ServerName www.skylinedev.net <http://www.skylinedev.net/> > Redirect permanent / http://skylinedev.net <http://skylinedev.net/> > </VirtualHost> > > # original vhost > <VirtualHost *:80> > ServerName http://skylinedev.net <http://skylinedev.net/>
This should not be a URL, but just: skylinedev.net <http://skylinedev.net/> The other way of doing it is to have one VirtualHost with ServerName skylinedev.net <http://skylinedev.net/> which has a ServerAlias of www.skylinedev.net <http://www.skylinedev.net/> and use mod_rewrite rules to match when hostname is later and redirect in that case using rewrite rules. BTW, there are technical reasons why it is better to have ‘www’ be the primary name and redirect the other way. Read: http://www.yes-www.org/why-use-www/ <http://www.yes-www.org/why-use-www/> Graham > full server info etc... > > </VirtualHost> > > On Wednesday, December 28, 2016 at 8:58:03 PM UTC-7, Graham Dumpleton wrote: > >> On 26 Dec 2016, at 1:21 PM, Jaqen Nki <[email protected] <>> wrote: >> >> hey bro just wanna say happy holidays. my initial launch is up, at >> skylinedev.net <http://skylinedev.net/>. still got a good amount of work to >> do but it looks pretty good for my first site. all setup as a legal small >> business. anways, when youre free this week, just have another task, >> basically to set up SSL for my site. I though lets encrypt might work but i >> found out too late it only supports python 2x. Saw a post where you >> mentioned using ssl with mod wsgi and apache2 and its relatively simple. >> looking forward to it. catch ya later. cheers. > > Getting a certificate using lets encrypt is an entirely separate process to > configuring Apache to use the certificate. So it doesn’t matter that it is > Python 2. Get you SSL certificate sorted out first using the lets encrypt > tools manually, and then configure Apache to use it. > > http://httpd.apache.org/docs/2.4/ssl/ > <http://httpd.apache.org/docs/2.4/ssl/> > > Graham > > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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.
