homepage Welcome to WebmasterWorld Guest from 23.20.44.136
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Xammpp
Difficulty accessing localhost
kaymeis




msg:3262684
 3:43 pm on Feb 24, 2007 (gmt 0)

Hi,

I just downloades XAMMPP, the server software produced by Apachefriends. However, each time I try accessing localhost I'm told"Access to localhost was refused." What could be the cause?

 

spinnercee




msg:3264164
 2:30 pm on Feb 26, 2007 (gmt 0)

With XAMMPP a lot of stuff is done for you, so the problem could be in many places...

First, you can't use "localhost" as a name unless it appears in your hosts file, so check that first -- if you use 127.0.0.1 instead of localhost and it works, either use the IP or correct your hosts file.

Several Apache httpd.conf directives control interface binding, by default it will bind to all TCP/IP interfaces, but check if any of these directives have a value:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
#Listen 80
#Listen 12.34.56.78:80

or

#
# BindAddress: You can support virtual hosts with this option. This directive
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the <VirtualHost> and Listen directives.
#
#BindAddress *

The above directives are commented out to bind to all addresses (including 127.0.0.1) -- the listen port is specified with the Port directive:

#
# Port: The port to which the standalone server listens.
#
#Port 80

if Port is commented out it defaults to 80.

ServerName also impacts how the server responds:

# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., [123.45.67.89...]
# anyway, and this will make redirections work in a sensible way.
#
#ServerName new.host.name
ServerName *

ServerName should be "*" unless you understand how it works with any other value.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved