Moderator: severin
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost localhost2 localhost3
255.255.255.255 broadcasthost
::1 localhost
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# 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 *>
DocumentRoot "/Applications/MAMP/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Applications/MAMP/htdocs2"
ServerName localhost2
</VirtualHost>
<VirtualHost *>
DocumentRoot "/Applications/MAMP/htdocs3"
ServerName localhost3
</VirtualHost>
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost www.test.site
255.255.255.255 broadcasthost
::1 localhost
I am afraid to rock the boat with my database. I am new to all of this. So would it be safer to instead of creating an htdocs2, htdocs3, etc, to just address the folders within the original htdocs folder.
Also, was ther purpose of creating the htdocs2, htdocs3, etc so I can develope multiple sites locally while using virtual hosts?
#
# Use name-based virtual hosting.
#
NameVirtualHost *
#
# 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 *>
DocumentRoot "/Applications/MAMP/htdocs/digisolve"
ServerName SITEITRYING.com
</VirtualHost>
127.0.0.1 localhost xxxxx.com yyyyy.com SITEITRYING.com
chazilla wrote:I've seen several references to editing /etc/hosts, but I don't see an /etc/hosts on my installation.
OS X 10.4.3
what am I missing?
Users browsing this forum: Google [Bot] and 4 guests