I am currently working on hosting my own website on my laptop which is running on Ubuntu 9.10 and I have only just tried out XAMPP and I done so by following the steps mentioned at this URL http://www.apachefriends.org/en/xampp-linux.html and I also followed these steps to creating virtual hosting with my own domain from here: http://aminesoft.wordpress.com/tag/how- ... or-domain/
...but the problem is, I want anyone on the internet to view the website I have made but when somebody tries, they always see a webpage saying either website or server not found and I don't know what I have done wrong.
Here is my /etc/hosts file:
- Code: Select all
root@server:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 server.nox server
127.0.2.1 www.my-website.net
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
This is the extra-httpd.conf file:
- Code: Select all
root@server:/home/nox/SFN# cat extra-httpd.conf
<VirtualHost 127.0.2.1>
ServerName www.noxed.net
DocumentRoot /home/nox/my-website.net
<Directory /home/nox/my-website.net>
AllowOverride All
Options All
</Directory>
</VirtualHost>
I was just wondering if somebody could see if I have done something wrong somewhere? Another thing is, while I'm doing this do I need to setup a DNS server on my laptop?
Thanks in advanced