Saturday, May 22, 2010

What seems to be wrong with my apache hosts file... I want to host it on 127.0.0.1 and I can't get it up?

# 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


# %26lt;URL:%26gt;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 www.akak-rylan.com/rylan/index.html





#


# VirtualHost example:


# Almost any Apache directive may go into a VirtualHost container.


# The first VirtualHost section is used for all requests that do not





%26lt;VirtualHost 127.0.0.1%26gt;


ServerAdmin rynort@yahoo.ie.


DocumentRoot C:/Rylan/index.html


ServerName dummy-host.hsd1.nj.com

What seems to be wrong with my apache hosts file... I want to host it on 127.0.0.1 and I can't get it up?
Try using localhost instead of the loopback IP#. If you use port forwarding on your router, you can forward any web server traffic to your machine that hosts the server. Just reserve/assign an IP number to your machine so DHCP doesn't do it. That way you can access your server externally from the net using your IP# from the ISP, or access it internally by using http://localhost or http://192.168.1.2 (or whatever IP# your assign your server machine).

spring flowers

No comments:

Post a Comment