user4006175
user4006175

Reputation: 399

apache, DNS, access name based virtual host on LAN without typing the IP and server name at the "hosts" file of every computer

Hello I have installed a minimal centos 6 web server on a VM with only httpd,mysql, php, ftp,DNS, and some other needed components, everything seems to be working fine, my problem is apache's name based virtual host or DNS?, I can access my testwebsite.com on the host machine and other computers connected to the LAN but I need to type the IP address and serverName on the "hosts" file on every computer before they can access it, how do I access my testwebsite.com through LAN without typing additionals on the "hosts" files, please help, thanks in advance

Upvotes: 0

Views: 671

Answers (1)

Parsa
Parsa

Reputation: 3236

The only way I can possibly think of achieving this is by changing settings with in the local router(s).

EDIT: You will have to look at the manual for the particular router you are working with. Firstly try to login to the router settings page using your browser and looking for the appropriate settings.

If that doesnt work I would probably try to root the router itself and modify the /etc/hosts file

Upvotes: 1

Related Questions