Vhost Headache

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

Vhost Headache

Postby spyk3z » 31. May 2009 23:33

Well I had it working for awhile then It just randomly stopped.
I'm currently using Xampp 1.7.1

This is my Vhost.conf:
Code: Select all
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# 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 all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
##    ServerAdmin webmaster@dummy-host.example.com
##    DocumentRoot /www/docs/dummy-host.example.com
##    ServerName dummy-host.example.com
##    ServerAlias www.dummy-host.example.com
##    ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>

##<VirtualHost *:80>
##    ServerAdmin webmaster@dummy-host2.example.com
##    DocumentRoot /www/docs/dummy-host2.example.com
##    ServerName dummy-host2.example.com
##    ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>

NameVirtualHost *:80

# Localhost
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost:80
</VirtualHost>

# Shinu
<VirtualHost *:80>
ServerName shinuot.com
ServerAlias www.shinuot.com
DocumentRoot "C:/domain2/"
<Directory "C:/domain2/">
Options Indexes +FollowSymLinks Includes ExecCGI
AllowOverride All
Order Allow,Deny
Allow From All
</Directory>
CustomLog "C:/domain2/xx_access.log" combined
ErrorLog "C:/domain2/xx_error.log"
LogLevel error
</VirtualHost>


My Host File:
Code: Select all
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# 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       shinuot.com
127.0.0.1       www.shinuot.com



My Domains DNS are n1.shinuot.com and n2.shinuot.com both point to my servers ip. There hosted through Godaddy.com
spyk3z
 
Posts: 2
Joined: 31. May 2009 23:29

Re: Vhost Headache

Postby Sharley » 01. June 2009 01:33

Minor edits:

ServerName localhost:80

Change the above line to this:
ServerName localhost

DocumentRoot "C:/domain2/"
<Directory "C:/domain2/">


Drop the trailing slashes so they looks like this:
DocumentRoot "C:/domain2"
<Directory "C:/domain2">




I take it that you can access your web site and the XAMPP Welcome Page locally from your PC...
... but others can't access your web site from the Internet?
(I tested from the Internet but due to a DNS issue your web site is not available).

You have a problem with an IP address for your domain name to be found via the Internet:
http://hexillion.com/co/DomainDossier.aspx
Type in your shinuot.com address and tick all the boxes for a complete set of detailed info.

You can compare a known good web site's domain name details (apachefriends.org for example) with those returned for your shinuot.com domain name and you will surely see the difference and the missing links in the chain.

spyk3z wrote:My Domains DNS are n1.shinuot.com and n2.shinuot.com both point to my servers ip. There hosted through Godaddy.com
DNS records wrote:DNS query for shinuot.com failed
DNS QUERY TOOLS

It would appear to me that you do not have a Zone file associated with your domain name and so the nameservers you have setup at GoDaddy are nonexistent - you do not have a name server like the Unix bind for NS1.SHINUOT.COM or NS2.SHINUOT.COM so you have to enable a third party supplied name server, as GoDaddy only provides nameservers if you host your web site at GoDaddy.

Use a reliable and free Zone File service like zoneedit.com and edit the nameservers that ZoneEdit supply you with in to your NS1 and NS2 configuration at GoDaddy - wait a while for your GoDaddy edits to propagate the Internet's DNS, which used to be several hours but nowadays it has been reduced quite considerably, then you and I will be able to access your web site from the Internet.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Vhost Headache

Postby spyk3z » 01. June 2009 22:13

Thank you so very very much. :D
spyk3z
 
Posts: 2
Joined: 31. May 2009 23:29


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 148 guests