Jump to content
The Uniform Server Community

UniserverZ: I have to update Windows hosts file manually.


newuni
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...