ssl virtual host example configuration

Started by Francesco, February 21, 2016, 01:48:07 PM

Previous topic - Next topic

Francesco

Hi all,
this is my (may be dumb) problem:

Windows server 2012 R2
httpd-2.4.18-x64-vc11-r2

document root ok
hosts ok  (including serverone.tld and servertwo.tld)
moved 80 to 81 due to MSSQL reporting services

request http://localhost  OK
request https://localhost  OK
request https://serverone.tld  ERROR 502
request https://servertwo.tld  ERROR 502

What's wrong?

here is httpd -S


[Sun Feb 21 13:40:13.417354 2016] [core:trace3] [pid 5156:tid 20] core.c(3134): Setting LogLevel for all modules to trace8
VirtualHost configuration:
*:443                  is a NameVirtualHost
         default server serverone.tld (P:/system/apache24/conf/extra/httpd-ahssl.conf:136)
         port 443 namevhost serverone.tld (P:/system/apache24/conf/extra/httpd-ahssl.conf:136)
         port 443 namevhost servertwo.tld (P:/system/apache24/conf/extra/httpd-ahssl.conf:151)
ServerRoot: "P:/system/apache24"
Main DocumentRoot: "P:/system/apache24/htdocs"
Main ErrorLog: "P:/system/apache24/logs/error.log"
Mutex ssl-stapling-refresh: using_defaults
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="P:/system/apache24/logs/" mechanism=default
PidFile: "P:/system/apache24/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: SRVROOT=p:/system/apache24

trace8 to try to see everything.

It is correct that I cannot see in access_log and ssl_request log the bad requests? (TBD why bad).

Thank you in advance.
Francesco

Gregg

502 is gateway timeout which is odd.

You said you moved 80 to 81, which if you moved the port from 80 to 81 wouldn't the URL then have to be
http://localhost:81?

you say hosts ok including serverone & servertwo, are you speaking of the windows hosts file?