On 29/08/17 06:33, Per Jessen wrote:
Paul Groves wrote:
On 28/08/17 19:44, Per Jessen wrote:
Paul Groves wrote:
However:
When I browse to https://hostname or https://IP address or any other https domain name that is pointing to the same server, it shows the mysite.com virtualhost (which subsequently breaks because it is being accessed via a domain name it is not supposed to).
I do not want this to happen. It should not go anywhere at all as I have not configured any other domain name to point to this virtualhost. For unrecognised names, apache will pick the first virtualhost config file. Put in a conf file called aaaaa.conf.
Unfortunately it does not appear to work. :(
I enabled 000-default.conf and 000-default-ssl.conf with no other sites enabled
They both load fine so I enabled https://owncloud.mydomain.com
Owncloud Works fine and the default (non-ssl still worked) however apache seems to be picking up the owncloud ssl as the first one.
so I renamed the 000 in both files to aaa as you suggested and it made no difference
so I renamed them back to 000 and named owncloud as 001-owncloud
still the owncloud one shows up first when it should not. (https://hostname / https://ip - of server)
I am very confused. What might I be doing wrong?
Maybe you ought to post your virtual host configs, and an accurate description of how you want it to work.
OK
So I want all traffic to go to a default page e.g. the It Works! page.
One for ssl and one for plain http. Unless I have configured a
virtualhost manually.
What is happening currently:
The default pages are being ignored and all domain names that are not
configured are going to the owncloud virtualhost (http and https).
even if I type in http://ip_address or http://hostname_of_server
If I disable the owncloud configuration I see both the default files fine.
(I have replaced the actual domain name with owncloud.mysite.com for
privacy).
==========
000-default.conf
==========