Hi Eric -- first let me thank you for your help - truly appreciated. Can you please respond placing a space following your https so what you typed is not converted to https: //urldefense, etc -----Original Message----- From: Eric Covener <covener@xxxxxxxxx> Sent: Tuesday, December 11, 2018 2:38 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: RE: [EXTERNAL] Re: [users@httpd] Help Creating Test HTTP Server with SSL On Tue, Dec 11, 2018 at 2:28 PM Kathy S Durlacher <ksdurlacher@xxxxxxx> wrote: > > Wget downloaded and executed, and I'm receiving the following which looks to point to a possible problem with the recode of the uri to get to test SSL port 444: > > wget -r > https://urldefense.proofpoint.com/v2/url?u=http-3A__choiceportal-2Dd-3 > A8084&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrSug&r=S_61YgkDZJZT-cThGRSCt-9sxMcp > AKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZN86-K0yWidsrOWS4qo0a8tl0&s=Hn2sRZ > fbdwSFMpwQbtwzVP6C13LRSlP1neHVTdxEk_w&e= > SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = > c:/progra~1/wget/etc/wgetrc > --2018-12-11 14:15:52-- > https://urldefense.proofpoint.com/v2/url?u=http-3A__choiceportal-2Dd-3 > A8084_&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrSug&r=S_61YgkDZJZT-cThGRSCt-9sxMc > pAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZN86-K0yWidsrOWS4qo0a8tl0&s=Z1Ku4 > PNvTIRX8xS84CHU8OeLaiSyJ4TLEcKo-etjiOw&e= > Resolving choiceportal-d... 10.90.231.6, 10.90.227.36, 10.90.231.36, ... > Connecting to choiceportal-d|10.90.231.6|:8084... connected. > HTTP request sent, awaiting response... 302 Found > Location: > https://urldefense.proofpoint.com/v2/url?u=https-3A__choiceportal-2Dd- > 3A8084-25-3A444-257BREQUEST-5FURI-257D&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrS > ug&r=S_61YgkDZJZT-cThGRSCt-9sxMcpAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZ > N86-K0yWidsrOWS4qo0a8tl0&s=81zStjCRKeLJ2lVhmd-A2QZeU5Pnb5FRs3nvWZNrNHA > &e= [following] > https://urldefense.proofpoint.com/v2/url?u=https-3A__choiceportal-2Dd-3A8084-25-3A444-257BREQUEST-5FURI-257D&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrSug&r=S_61YgkDZJZT-cThGRSCt-9sxMcpAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZN86-K0yWidsrOWS4qo0a8tl0&s=81zStjCRKeLJ2lVhmd-A2QZeU5Pnb5FRs3nvWZNrNHA&e=: Bad port number. > RewriteRule (.*) > https://urldefense.proofpoint.com/v2/url?u=https-3A__-25-257BHTTP-5FHO > ST-257D-25-3A444-257BREQUEST-5FURI-257D&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCr > Sug&r=S_61YgkDZJZT-cThGRSCt-9sxMcpAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6R > ZN86-K0yWidsrOWS4qo0a8tl0&s=MZC41HKyztCxHZmWU7441g8Y5XAdfrvbGpORVfNRMF > o&e= The % should be after the :444. But more importantly, %{HTTP_HOST} will already contain the port if a non-standard port was used for HTTP. So tacking on :444 will not work. Here is one recipe to isolate the host and port and use the host in the redirect: RewriteEngine On RewriteCond %{HTTP_HOST} (.*?)(:\d+)?$ RewriteRule ^/(.*) https://urldefense.proofpoint.com/v2/url?u=https-3A__-251-3A444_-241&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrSug&r=S_61YgkDZJZT-cThGRSCt-9sxMcpAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZN86-K0yWidsrOWS4qo0a8tl0&s=ZAWVhJBD8g-6RVn5YlZIOKuNPRNxrmzGTxr9dFAcomg&e= %1 refers to the capture in the preceding condition. The other change to the RewriteRule is personal preference of having the / be outside the capture and explicit in the substitution for readability. RewriteCond %{HTTP_HOST} (.*):?\d*) RewriteRule (.*) https://urldefense.proofpoint.com/v2/url?u=https-3A__-251-3A444-257BREQUEST-5FURI-257D&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrSug&r=S_61YgkDZJZT-cThGRSCt-9sxMcpAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZN86-K0yWidsrOWS4qo0a8tl0&s=JXRuQwB0SDLrOBiiAleYS5yJ5Lup65CGzBp3YJjug3c&e= --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx