[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [users@httpd] RE: [EXTERNAL] Re: [users@httpd] Help Creating Test HTTP Server with SSL

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: [users@httpd] 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 
> 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--  
> A8084_&d=DwIBaQ&c=gMbiD-Q9WoaRgoXZKCrSug&r=S_61YgkDZJZT-cThGRSCt-9sxMc
> pAKVXN1DxEm4Z5Qk&m=gOJXDRuKVpX7vvZI6RZN86-K0yWidsrOWS4qo0a8tl0&s=Z1Ku4
> PNvTIRX8xS84CHU8OeLaiSyJ4TLEcKo-etjiOw&e=
> Resolving choiceportal-d...,,, ...
> Connecting to choiceportal-d||:8084... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: 
> 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]
> Bad port number.

>     RewriteRule (.*) 
> 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 ^/(.*)

%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 (.*)

To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx