> Am 02.05.2023 um 12:23 schrieb Patrick O'Callaghan <pocallag...@gmail.com>:
> 
> # httpd  -S
> VirtualHost configuration:
> *:80                   bree.org.uk (/etc/httpd/conf.d/bree.conf:1)
> *:443                  is a NameVirtualHost
>        default server bree.org.uk (/etc/httpd/conf.d/bree-le-ssl.conf:2)
>        port 443 namevhost bree.org.uk (/etc/httpd/conf.d/bree-le-ssl.conf:2)
>        port 443 namevhost bree.org.uk (/etc/httpd/conf.d/ssl.conf:56)
> ServerRoot: "/etc/httpd"
> Main DocumentRoot: "/var/www/html“

We often encounter issues with a configuration as you have.

The problem is:
Your bree.org.uk address acts as a default server following apache’s naming 
convention (it is the first file sorting the file names alphabetically). At the 
same time a default vname server is configured in the default ssl configuration 
file (/etc/httpd/conf.d/ssl.conf:56). We often encounter problems in such a 
situation, when 2 configurations are effective at the same time. 

You may try either of the following

(a) define another named host with comes first in the alphabetical order, e.g. 
adefault.conf You may configure it minimally so it shows the default Fedora 
welcome page. It will only get used, if someone addresses your server by IP.

(b) comment out the default server at /etc/httpd/conf.d/ssl.conf:56 You may 
comment out all the lines between <VirtualHost _default_:443> and 
</VirtualHost> provided you fully configure ssl in 
/etc/httpd/conf.d/bree-le-ssl.conf, i.e. include all the configuration option 
you find between both former directives of your own, probably customised, way. 
Or you may just comment out those <VirtualHost…> directives leaving the 
remaining directives as defaults. But this way sometimes results in conflict 
between the different certificate locations. The details of this conflict are 
not fully known yet.

Anyway, it would be helpful for us it you try it and give feedback about the 
results. 

Another possible issue is that port 80 is defined as 'main server' only, and 
port 443 has defined named server only. A more clean configuration is to define 
a port 80 server as a named server for bree.org.uk as well, that just redirects 
to port 443.









--
Peter Boy
https://fedoraproject.org/wiki/User:Pboy
p...@fedoraproject.org

Timezone: CET (UTC+1) / CEST (UTC+2)


Fedora Server Edition Working Group member
Fedora docs team contributor
Java developer and enthusiast


_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to