0

I have created virtual host example.local in ubuntu. I want to open it from another computer on the network. How can I do that? I can open websites in /var/www/html using my ip: http://11.22.33.4/example But how can I open http://example.local from another computer?

1

1 Answer 1

1

Create a DNS route to your server ...

In your hosts file:

11.22.33.4    example.local

You find your hosts file here:

Windows: %SystemRoot%\system32\drivers\etc\hosts

Linux / MAC: /etc/hosts

Sign up to request clarification or add additional context in comments.

1 Comment

You could add the DNS route to your DNS Server, too, that way you would be able to access example.local from every computer on your network

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.