Moderator: severin
Holger Meyer wrote:
You can access the hosts now with:
http://localhost:8888
http://localhost2:8888
http://localhost3:8888
martincreative wrote:I followed all the steps with the whole virtual host thing. When I changed my httpd.conf - my apache serve ceased launching. Why is this?
127.0.0.1 localhost javascript.devNameVirtualHost *
<VirtualHost *.80>
DocumentRoot "/Applications/MAMP/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *80>
DocumentRoot "/Applications/MAMP/htdocs/javascript"
ServerName javascript.dev
</VirtualHost>Seeing this instead of the website you expected?
This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.
##
# 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 beautybytara.local
255.255.255.255 broadcasthost
::1 localhost
### Section 3: Virtual Hosts
#
# VirtualHost: 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.0/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 *
<VirtualHost *>
DocumentRoot /Users/Lee/Sites
ServerName localhost
</VirtualHost>
<VirtualHost *>
DocumentRoot /Users/Lee/Sites/beautybytara
ServerName beautybytara.local
</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
255.255.255.255 broadcasthost
127.0.0.1 test.dev<VirtualHost *80>
DocumentRoot /Applications/MAMP/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *80>
DocumentRoot /Users/clintonia/Sites/test
ServerName test.dev
</VirtualHost><VirtualHost test.dev>
ServerName test.dev
DocumentRoot "/Users/clintonia/Sites/test"
</VirtualHost>The virtual host was set up successfully.
If you can see this page, your new virtual host was set up successfully. Now, web contents can be added and this placeholder page1 should be replaced or deleted.
Users browsing this forum: No registered users and 7 guests