Tuesday, July 14, 2009

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

# 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%26#039;t need to worry about



# IP addresses. This is indicated by the asterisks in the directives below.



#



# Please see the documentation at



# 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 %26#039;-S%26#039; 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%26#039;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%26#039;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).

No comments:

Post a Comment