0

For over a week now I am trying to set up https to work with my owncloud hosted on a Microsoft Azure virtual machine (ubuntu server 14.04). I am using apache2. I have gone through every single tutorial i have found on the web and also one person on the owncloud forums was trying to help for a while but the preblem is still unsolved.

I am wondering now is there anything unusual about a linux system that is hosted on microsoft azure? Because this ssl setup as far as ive learned for past couple of days should pretty much work out of the box. I am wondering either this has anything to do with the fast that I have added HTTPS frontend after the VM was created, not in the process of its creation. Anyways I am listening to 443 port and i have ssl enabled, I have created the keys pair and turned on the ssl engine.

Also Debian man pages etc. Here are my logs and virtual host for ssl:

default-ssl.conf in sites-available:

https://pastebin.com/jvhPpDKa

My rep is to low to post more than 2 links, so here I pase a link to my post from owncloud forums where one can see pastebins with my netstat and acces + errors logs:

https://forum.owncloud.org/viewtopic.php?f=31&t=26375&start=20#p80237

Im really desperate right now, I have no idea why cant I connect to my server using https... I would really aprichiate all help!

2 Answers2

0

Have you enabled the HTTPS endpoint on your Azure VM? You can check the endpoints when you view the properties of your VM. At the top you will see four items: Dashboard, Monitor, Endpoints and Configure. Click on endpoints and make sure that HTTPS is there. If not, click on the Add at the bottom and add it.

GilK
  • 21
  • 2
  • Yes, i did. I think this might be the case- that even though it is enabled, it doesnt work. – Łukasz Przeniosło Feb 24 '15 at 06:14
  • I noticed that in your netstat that apache is listening on 443, but only tcp6. Maybe try to get it to bind to tcp4 and see if that makes a difference? I guess changing the to and restart apache might do it, but I haven't tried. – GilK Feb 24 '15 at 07:03
  • After changing virtualhost like you specified, the netstat showed that i am still listening on tcp6. Even though I tried but it didnt help :/. netstat: https://pastebin.com/XM7LPzm7 – Łukasz Przeniosło Feb 24 '15 at 07:28
  • See if you can find the Listen 443 option in /etc/apache2/ports.conf and change that also to Listen 0.0.0.0:443 – GilK Feb 24 '15 at 07:40
  • Now i see port 443 in tcp, but https still doesnt work. https://pastebin.com/a6Ps2uTt – Łukasz Przeniosło Feb 24 '15 at 07:45
  • do you have any other ideas? – Łukasz Przeniosło Feb 25 '15 at 06:38
  • You can check if you can get anything from apache at the server console. Run the command "`curl https://localhost`" or "`curl https://`" and see if you get anything to download. – GilK Feb 27 '15 at 04:28
  • i have tried what u suggested- when curled with localhost it worked, i downloaded the page. However when I curled my public page address (vm.mydomain.com) i got connection timeout.... What does this mean? – Łukasz Przeniosło Feb 27 '15 at 06:15
0

The problem has been solved. Appereantly theres a bug in microsoft azure frontends ACLs. I had no reles applied so it means it should allow all trafic on that frontend. Instead it was filterring everything. To fix that i denied a random ip address so a rule to "allow every but this one" would start working. After that i could acces my site with https. Thank you for help.