root@bccloud-docker:~# apache2ctl -t DUMP_VHOSTS
Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings
-h : list available command line options (this page)
-l : list compiled in modules
-L : list available configuration directives
-t -D DUMP_VHOSTS : show parsed vhost settings
-t -D DUMP_RUN_CFG : show parsed run settings
-S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
-t -D DUMP_MODULES : show all loaded modules
-M : a synonym for -t -D DUMP_MODULES
-t -D DUMP_INCLUDES: show all included configuration files
-t : run syntax check for config files
-T : start without DocumentRoot(s) check
-X : debug mode (only one worker, do not detach)
Action '-t DUMP_VHOSTS' failed.
Oh, my bad, the `-D was missing from my command, it should be
apache2ctl -t -D DUMP_VHOSTS
root@bccloud-docker:~# apache2ctl -t -D DUMP_VHOSTS
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
*:443 is a NameVirtualHost
default server memos.brayozz.online (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
port 443 namevhost memos.brayozz.online (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
port 443 namevhost 127.0.1.1 (/etc/apache2/sites-enabled/default-ssl.conf:2)
port 443 namevhost memos.brayozz.online (/etc/apache2/sites-enabled/memos.brayozz.online.conf:1)
So you've got overlapping HTTPS virtualhosts. Both configuration files have one:
And it looks like the default page is taking preference.
Possible solutions:
- change the
ServerName
in the configuration file000-default-le-ssl.conf
to something else, e.g.localhost
. That way your newly configured configurationmemos.brayozz.online.conf
is used for the hostnamememos.brayozz.online
. - Modify the HTTPS vhost in
000-default-le-ssl.conf
to include the reverse proxy directives as you have used inmemos.brayozz.online.conf
. Thenmemos.brayozz.online.conf
is not useful any longer and could be removed.
That should never work.
There is no way to directly access that port from the Inernet [via HTTPS].
The proxy is using port 443 [and directs that to 5230].
So, this is expected [to work]:
https://memos.brayozz.online
That said, you should not be allowing any access to port 5230 from the Internet.
This should not be allowed:
OR
Switch port 5230 from HTTP to HTTPS [within memos]
Looks like the Apache reverse proxy is working.
You'd likely want to make sure port 5230 isn't accessible from the public internet any longer and just use Apache on the regular HTTPS address/port.
Apparently, patience is key. The app is working via https, without any ports in the address. Followed the instructions to change the default configuration for reverse proxy. Thank you all for your help and contribution.
Remember to close access to port 5230 from the Internet.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.