none
Would setting "http_proxy" environment variable cause any problems on windows server 2012 RRS feed

  • Question

  • I have a application on a Windows 2012 server in our environment.
    I need to provide http/https connectivity to it to internet.
    It is written in Go which uses environment variables to get proxy information.
    The instructions from vendor are:-
    1) Open “Properties” under “This PC”.
    2) Select “Change Settings”.
    3) Go to Advanced Tab, “Environment Variables".
    4) Add a System variable called “HTTP_PROXY” and set the value to http://ipaddress:port
    E.G. http://10.1.1.1:128/

    The server has Azure AD connect on it as well.
    Would setting this variable cause any problems and any things to keep in mind before setting this?

    Thursday, July 4, 2019 8:41 PM

All replies

  • Since you're creating a new variable as opposed to editing existing it should not be a problem, but you can also ask here to confirm.

    https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=wavirtualmachinesforwindows

    https://social.msdn.microsoft.com/forums/azure/en-US/home?forum=windowsazuread

    In general its best to not install applications or other potentialy conflicting roles on a domain controller. Better option may be to stand up a new one for this application.

     

    (please don't forget to mark helpful replies as answer)

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.


    Thursday, July 4, 2019 8:51 PM

  • Would setting this variable cause any problems and any things to keep in mind before setting this?

    If you have any application that uses that variable and needs to make HTTP calls to your private network, you will likely have a problem because the call will be routed out to the internet.  

    In my "cheat sheet" of notes, I used this set of commands to set and reset the proxy for apps that used the WinHTTP API to make calls. 


    NetSH WinHTTP Show Proxy 
    NetSH WinHTTP Set Proxy proxy-server="10.1.1.1:128" bypass-list="<local>;*.yourprivatedomain.com;*.yourprivatedomain.net"
    NetSH WinHTTP Reset Proxy 

    If GO uses WinHTTP under the covers, then those commands should work for you. Otherwise you should ask the GO experts about setting a bypass list if you need to make calls to both private network and internet based addresses.  

     
    Friday, July 5, 2019 2:57 AM
  • Hi, 
    Was your issue solved?
    If yes, would you like to share your solution in order that other community members could find the helpful reply quickly.
    If no, please reply and tell us the current situation in order to provide further help. 
    Best Regards,

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, July 9, 2019 2:07 AM
    Moderator