IMPORTANT!
This forum is now archived. Click here for the New Support Forum
Question about the conversion from version 2.8 to 3.0 HttpsRedirectionPort
Quote from Ingo on October 10, 2019, 1:36 pmHi,
In the web.config was added new.
<environmentVariables> <environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44350" /> <environmentVariable name="COMPLUS_ForceENC" value="1" /> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> </environmentVariables>Do I have to set this environment variable on the production server?
Hi,
In the web.config was added new.
<environmentVariables> <environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44350" /> <environmentVariable name="COMPLUS_ForceENC" value="1" /> <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" /> </environmentVariables>
Do I have to set this environment variable on the production server?
Quote from Eben Monney on October 11, 2019, 6:35 pmHello,
This block is an auto-generated field by IISExpress for development.
You can change them to match your Production environment during deployment or totally omit them as they are specified/overridden in other places.Regards,
Eben Monney
Hello,
This block is an auto-generated field by IISExpress for development.
You can change them to match your Production environment during deployment or totally omit them as they are specified/overridden in other places.
Regards,
Eben Monney
Quote from Ingo on October 12, 2019, 11:24 amHello Eben,
thanks for your anser. In the Version 2.8 in the appsettings.json you have the entry:
"HttpsRedirectionPort": 443, //Set this to enable https redirection in 3.0
"https_port": 5001, //Set this for https redirection (e.g. 443)
In version 2.8 you use this:
if (!_env.IsDevelopment() && !string.IsNullOrWhiteSpace(Configuration["HttpsRedirectionPort"])) { services.AddHttpsRedirection(options => { options.HttpsPort = int.Parse(Configuration["HttpsRedirectionPort"]); }); }In version 3.0 I can nowhere find where the entry "https_port" is used. Does the https port have to be specified in the "ApplicationUrl"?
regards Ingo
Hello Eben,
thanks for your anser. In the Version 2.8 in the appsettings.json you have the entry:
"HttpsRedirectionPort": 443, //Set this to enable https redirection in 3.0
"https_port": 5001, //Set this for https redirection (e.g. 443)
In version 2.8 you use this:
if (!_env.IsDevelopment() && !string.IsNullOrWhiteSpace(Configuration["HttpsRedirectionPort"])) { services.AddHttpsRedirection(options => { options.HttpsPort = int.Parse(Configuration["HttpsRedirectionPort"]); }); }
In version 3.0 I can nowhere find where the entry "https_port" is used. Does the https port have to be specified in the "ApplicationUrl"?
regards Ingo
IMPORTANT!
This forum is now archived. Click here for the New Support Forum