Jump to content


Photo

UniserverZ: I have to update Windows hosts file manually.


  • Please log in to reply
3 replies to this topic

#1 newuni

newuni

    Newbie

  • Member
  • Pip
  • 3 posts
  • Main OS: Windows 7

Posted 25 December 2013 - 10:36 PM

Using UniServer Zero XI 1.0.3 on Win7.

 

When I create a new virtual host using the controller, I have to manually add a directive to my Windows hosts file. If I don't, my browser will not find the new virtual host. I've checked and the httpd-vhosts.conf and PAC files are being updated just fine. But not the Windows hosts file.

 

Yes, I've restarted the server.

 

[Coral 8.9.2 creates the hosts entry just fine.]

 

Should I have to manually add the directive?



#2 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 28 December 2013 - 05:45 AM

The Windows host file is subject to access control because of this to change its content requires admin privileges. An application that changes this file requires elevating to admin this is not consistent with portability hence the file requires manually updating.

 

After adding a new Vhost use the utility program EdHost.exe located in folder C:\UniServerZ\utils this forces elevation allowing you to change the host file content.

 

All the best

Ric



#3 newuni

newuni

    Newbie

  • Member
  • Pip
  • 3 posts
  • Main OS: Windows 7

Posted 28 December 2013 - 07:28 AM

Thanks, Ric.

 

Was that in the docs, or did I just miss it?

 

The Windows host file is subject to access control because of this to change its content requires admin privileges. An application that changes this file requires elevating to admin this is not consistent with portability hence the file requires manually updating.

 

After adding a new Vhost use the utility program EdHost.exe located in folder C:\UniServerZ\utils this forces elevation allowing you to change the host file content.

 

All the best

Ric



#4 Ric

Ric

    Project Manager

  • Admin
  • PipPipPipPipPip
  • 1,535 posts
  • Gender:Male
  • Location:Cambridge,UK
  • Interests:Electronics
    Internet in general
    Open source projects
  • SourceForge IDmpgcan
  • Wiki ID: Ric
  • Main OS: Windows XP

Posted 04 January 2014 - 05:22 AM

The above was an interim solution and not documented.

 

UniController has been updated to ZeroXI_controller_1_0_4 which now supports automatic update of the hosts file. This functionality is enabled by default, for portability provision is provided to disable it. In addition you can directly run the edit hosts file utility from UniController.

 

The documentation has been updated (ZeroXI_documentation_1_0_1.exe) to reflect the above modifications.

 

Uniform Server 11_0_4_ZeroXI has been released with the above incorporated.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users