I’, configuring a web server, is workking with a virtualhost on port 80, and I’m configuring the server with SSL on port 443. But the server is not configured. I have found that the problem (one of them at least) is that the server does not listen at 443 because of listen.conf
#Listen 80
#Listen 443
Listen 80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
</IfModule>
</IfDefine>
</IfDefine>
from another computer I do
tutatis:~ # telnet 192.168.2.246 443
Trying 192.168.2.246...
telnet: connect to address 192.168.2.246: Connection refused
But if I uncomment line #Listen 443 from listen.conf and restart apache, then the server answer
tutatis:~ # telnet 192.168.2.246 443
Trying 192.168.2.246...
Connected to 192.168.2.246.
Escape character is '^]'.
so the problem is that the line of listen.conf is not working, but i cant see why
I have enabled SSL with
#a2enmod ssl
#a2enflag ssl
and it seems enabled
moodle:/etc/apache2 # apachectl -M
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 192.168.2.246. Set the 'ServerName' directive globally to suppress this message
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (static)
unixd_module (static)
systemd_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_core_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
include_module (shared)
log_config_module (shared)
mime_module (shared)
negotiation_module (shared)
setenvif_module (shared)
ssl_module (shared)
socache_shmcb_module (shared)
userdir_module (shared)
reqtimeout_module (shared)
php7_module (shared)
moodle:/etc/apache2 #
What am I missing?