ok good to know, i would like to have www as default upon learning that info, just not sure how at this point. i followed guide here https://www.digitalocean.com/community/tutorials/how-to-redirect-www-to-non-www-with-apache-on-ubuntu-14-04 (didnt do htaccess and rewrite mod stuff) and redirect still not working.
added A records on digital ocean for both @ MYIPADDRESS and www MYIPADDRESS also apache cannot start unless the redirect block has http:// : Redirect permanent / http://skylinedev.net , but in the main server config I have just: ServerName skylinedev.net error : systemctl status apache2.service ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Fri 2016-12-30 08:59:48 UTC; 10s ago Docs: man:systemd-sysv-generator(8) Process: 3492 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 32438 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) Process: 3522 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE) # journalctl -xe Dec 30 09:00:39 ubuntu-16-skylinedev sshd[3547]: Failed password for root from 221.194.44.195 port 50166 ssh2 Dec 30 09:00:39 ubuntu-16-skylinedev sshd[3547]: Received disconnect from 221.194.44.195 port 50166:11: [preauth] Dec 30 09:00:39 ubuntu-16-skylinedev sshd[3547]: Disconnected from 221.194.44.195 port 50166 [preauth] On Friday, December 30, 2016 at 1:26:29 AM UTC-7, Graham Dumpleton wrote: > > > On 30 Dec 2016, at 7:19 PM, Jaqen Nki <[email protected] <javascript:>> > wrote: > > Ok got it. I will work on that. Quick question as well, im trying to > redirect www.skylinedev.net to http://skylinedev.net. tried adding this > top part to my vhost but not working: > > <VirtualHost *:80> > ServerName www.skylinedev.net > Redirect permanent / http://skylinedev.net > </VirtualHost> > > # original vhost > <VirtualHost *:80> > ServerName http://skylinedev.net > > > This should not be a URL, but just: > > skylinedev.net > > The other way of doing it is to have one VirtualHost with ServerName > skylinedev.net which has a ServerAlias of 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/ > > 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. 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/ >> >> 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] <javascript:>. > To post to this group, send email to [email protected] <javascript:> > . > Visit this group at https://groups.google.com/group/modwsgi. > For more options, visit 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.
