Hi guys,
I want to access my virtual domain from another computer on same network by typing www.site1.com or site1.com without using IP at the beginning of URL.
Currently it works this way:
Server computer where Apache is running: www.site1.com AND site1.com works fine as I want.
Another desktop computer on same LAN : http://192.168.31.28/site1.com/htdocs works only this way.
What should I do to remove that IP from URL and htdosc bit?
I added my configuraton so you know what I did. I use Ubuntu 10.10
Thanks in advance
/etc/apache2/sites-availabe/site1.com.conf
<VirtualHost *:80>
ServerName site1.com
ServerAlias www.site1.com
DocumentRoot /var/www/site1.com/htdocs
ServerAdmin admin@site1.com
ErrorLog /var/log/apache2/site1.com_error-log
CustomLog /var/log/apache2/site1.com_custom-log common
</VirtualHost>
/etc/hosts
192.168.31.28 ubuntu # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
::1 ubuntu localhost6.localdomain6 localhost6
10.0.0.2 #ubuntu
127.0.0.1 site1.com www.site1.com
I created link in /etc/apache2/sites-enabled
I did sudo a2ensite site1.com.conf
I have bind9 installed, if it helps.
Extra information:
myname@ubuntu:~$ sudo ifconfig eth0
eth0 Link encap:Ethernet HWaddr 54:42:49:87:10:e6
inet addr:192.168.31.28 Bcast:192.168.31.255 Mask:255.255.255.0
inet6 addr: fe80::5642:49ff:fe87:10e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:45807 errors:0 dropped:0 overruns:0 frame:0
TX packets:4279 errors:0 dropped:0 overruns:0 carrier:7
collisions:0 txqueuelen:1000
RX bytes:4439887 (4.4 MB) TX bytes:609477 (609.4 KB)
Interrupt:49