Virtual Host Domain Problem

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Virtual Host Domain Problem

Postby karasu-kun » 26. August 2005 04:08

OK- I have read and done eveything I could find on this issue, but its. not. working. If I type in www.animelook.net, I get my site. If a firend does: nothing. If they type in http://*my IP* they get a file tree of my site. Here is my virtualhost code:
Code: Select all
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:\xampp\xampp\htdocs
</VirtualHost>

<VirtualHost *:80>
ServerName www.animelook.net
DocumentRoot C:\xampp\xampp\htdocs\animelook
</VirtualHost>
#


Here is my C:\Windows\System 32\Drivers\etc\hosts stuff:
Code: Select all
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
127.0.0.1       www.animelook.net


I tried replacing 127.0.0.1 with my IP in this file, but it did nothing. What should I do?

K-kun
karasu-kun
 
Posts: 9
Joined: 24. August 2005 20:46

Postby Wiedmann » 26. August 2005 09:40

You have an existing thread with this issue before?

If I type in www.animelook.net, I get my site. If a firend does: nothing.

# nslookup www.animelook.net
Server: 192.168.255.1
Address: 192.168.255.1#53

** server can't find www.animelook.net: NXDOMAIN

--> There is something wrong with your domainname?

if they type in http://*my IP* they get a file tree of my site.

Accessing a namebeased virtual host server via the ip address, the first virtual host will be used.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby karasu-kun » 26. August 2005 19:24

I may have had a previous thread, but I think I deleted it... if not, sorry :?

# nslookup www.animelook.net
Server: 192.168.255.1
Address: 192.168.255.1#53

** server can't find www.animelook.net: NXDOMAIN


--> There is something wrong with your domainname?


I'm confused as to what you did there... sorry, I'm really a n00b at this server stuff.

Accessing a namebeased virtual host server via the ip address, the first virtual host will be used.


That explains that... [/quote]
karasu-kun
 
Posts: 9
Joined: 24. August 2005 20:46

Postby taustin » 26. August 2005 19:40

animelook.net has never been registered as a domain name, according to DNSStuff.
taustin
 
Posts: 150
Joined: 24. September 2004 00:23
Location: Huntington Beach CA

Postby karasu-kun » 26. August 2005 21:08

*dies* Alright... and how do I go about registering it?
karasu-kun
 
Posts: 9
Joined: 24. August 2005 20:46

Postby taustin » 26. August 2005 21:19

Pick a registrar, and follow their instructions. GoDaddy seems to be one of the cheapest and more reputable.

http://www.godaddy.com/

You'll also need domain name servers (at least two) to register it. There are free services, and free software, neither of which is especially simple.
taustin
 
Posts: 150
Joined: 24. September 2004 00:23
Location: Huntington Beach CA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 69 guests