locked
Modification RRS feed

  • Question

  • The statement below was made elsewhere regarding modifying this.  The server is 64bit isn't it? Ihave a Mediasmart 485. Is it performed on the server or the client?
    How do you do it?  I am sure it's unsupported. What potential problems could this cause if done?

    "A workaround would be to add an entry into the local hosts file for your home server so you could call it by the correct dns name.  Host file is located in %SYSTEMROOT%\system32\drivers\etc (on 32 bit guest). 

    Just add a new line with the local IP of the server and the full DNS name for the cert - <name>.homeserver.com  Then you'll be able to browse https://<name>.homeserver.com from your home system without hitting the outside interface of your firewall."
    Tuesday, October 13, 2009 5:30 PM

Answers

  • The short answer before my explanation is, it's probably C:\Windows\system32\drivers\etc, but you may want to read the explanation anyway for future reference. ;-)

    %systemroot% is a system variable.  These can be used to point to directories that may not be the same on every computer.  For example, the Windows directory, which is what the %systemroot% variable points to on XP/Vista/7, could be on the D:\ drive, or even somewhere else.  Also, in previous versions of Windows, like Windows NT and 2000, this directory was actually "WINNT", but that variable would work there as well.

    If you are running Vista or Win7, you can copy and paste that string (%SYSTEMROOT%\system32\drivers\etc) in the search field when you click on the Window Orb (or what used to be referred to as the Start Menu.  If running XP or something older, you can paste that in the Start->Run window.

    Hope this helps.
    • Marked as answer by JSHollis Wednesday, October 14, 2009 11:29 PM
    Tuesday, October 13, 2009 5:56 PM

All replies

  • Modifying what?  The "hosts" file?  If so, then this will work on 32 or 64 bit systems (and the path is the same), and the modification is performed at the client PC, not the server.  You are essentially creating a (local to that specific PC) static "DNS like" entry for your server's IP to resolve to whatever name you want to give it in the "hosts" file.

    Also, make sure you do not save that file with a .txt extension, and you may need to first start "notepad.exe" as an administrator and then open that file depending on what OS you are running on the client PC (e.g., Vista or Win7 with User Access Control enabled)
    • Proposed as answer by St00pidChicken Tuesday, October 13, 2009 6:03 PM
    Tuesday, October 13, 2009 5:42 PM
  • Where is this file? C drive? Seems I looked and did not see %systemroot%.
    Tuesday, October 13, 2009 5:51 PM
  • The short answer before my explanation is, it's probably C:\Windows\system32\drivers\etc, but you may want to read the explanation anyway for future reference. ;-)

    %systemroot% is a system variable.  These can be used to point to directories that may not be the same on every computer.  For example, the Windows directory, which is what the %systemroot% variable points to on XP/Vista/7, could be on the D:\ drive, or even somewhere else.  Also, in previous versions of Windows, like Windows NT and 2000, this directory was actually "WINNT", but that variable would work there as well.

    If you are running Vista or Win7, you can copy and paste that string (%SYSTEMROOT%\system32\drivers\etc) in the search field when you click on the Window Orb (or what used to be referred to as the Start Menu.  If running XP or something older, you can paste that in the Start->Run window.

    Hope this helps.
    • Marked as answer by JSHollis Wednesday, October 14, 2009 11:29 PM
    Tuesday, October 13, 2009 5:56 PM
  • The statement below was made elsewhere regarding modifying this.  The server is 64bit isn't it? Ihave a Mediasmart 485. Is it performed on the server or the client?
    How do you do it?  I am sure it's unsupported. What potential problems could this cause if done?

    "A workaround would be to add an entry into the local hosts file for your home server so you could call it by the correct dns name.  Host file is located in %SYSTEMROOT%\system32\drivers\etc (on 32 bit guest). 

    Just add a new line with the local IP of the server and the full DNS name for the cert - <name>.homeserver.com  Then you'll be able to browse https://<name>.homeserver.com from your home system without hitting the outside interface of your firewall."


    A
    Wednesday, October 14, 2009 3:48 PM
  • The statement below was made elsewhere regarding modifying this.  The server is 64bit isn't it? Ihave a Mediasmart 485. Is it performed on the server or the client?
    How do you do it?  I am sure it's unsupported. What potential problems could this cause if done?

    "A workaround would be to add an entry into the local hosts file for your home server so you could call it by the correct dns name.  Host file is located in %SYSTEMROOT%\system32\drivers\etc (on 32 bit guest). 

    Just add a new line with the local IP of the server and the full DNS name for the cert - <name>.homeserver.com  Then you'll be able to browse https://<name>.homeserver.com from your home system without hitting the outside interface of your firewall."


    A

    A
    Wednesday, October 14, 2009 3:50 PM