#107 services/httpd-basic-setup: format filenames and inline-content as code
Closed a year ago by pboy. Opened a year ago by tmz.
tmz/fedora-server stg  into  stg

@@ -58,7 +58,7 @@ 

  

  Httpd always sets a "default" server which is used to answer requests for which no web server configuration is found. Typically, this happens when the IP address is used instead of a name or there is still an old DNS entry. To do this, it sorts the names of the configuration files alphabetically and sets the first server in the first configuration file as default. If only one server is configured, it is always the default.

  

- At the same time a default server is also preconfigured in the configuration file of the ssl module (/etc/httpd/conf.d/ssl.conf at or near line 56: <VirtualHost _default_:443>). This default server uses self-generated certificates. These conflict with certificates from the server whose configuration file comes first alphabetically. If one lists the configuration of the httpd server, one typically finds:  

+ At the same time a default server is also preconfigured in the configuration file of the ssl module (`/etc/httpd/conf.d/ssl.conf` at or near line 56: `<VirtualHost _default_:443>`). This default server uses self-generated certificates. These conflict with certificates from the server whose configuration file comes first alphabetically. If one lists the configuration of the httpd server, one typically finds:  

  

  [source,text]

  ----
@@ -79,7 +79,7 @@ 

  

  ==== The solution

  

- As a workaround, configure a fake server that is never used but is just a decoy for httpd to associate with the default server configured in /etc/httpd/conf.d/ssl.conf. Create as root or use sudo:

+ As a workaround, configure a fake server that is never used but is just a decoy for httpd to associate with the default server configured in `/etc/httpd/conf.d/ssl.conf`. Create as root or use sudo:

  

  [source,text]

  ----

Wrap filenames and inline content in backticks to ensure they are
rendered exactly as typed. This prevents the string _default_ from
being shown in italics, losing the leading and trailing underscore.

rebased onto a7ffaae

a year ago

Thanks for pointing this out. Unfortunately, the affected lines are commented out in the current version. The described fix is no longer needed if a change is made to the configuration file, which is also necessary. I have manually added the suggestion to the currently commented out lines - just in case something else comes up during the bug fixing process and we need this fix again.

Pull-Request has been closed by pboy

a year ago
Metadata