Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Yet another Virtual Hosts issue thread |
|
Author |
|
given2fly
Joined: 08 Feb 2013 Posts: 1
|
Posted: Fri 08 Feb '13 20:40 Post subject: Yet another Virtual Hosts issue thread |
|
|
Hi guys. I'm new here, I've been trying to create some virtual hosts at work and I can't, I even used almost the same httpd-vhosts.conf settings that others that could do it. I don't know what else to try.
I have these in my httpd.conf:
Listen to 80
Ive already uncommented the line of the httpd-vhosts.conf.
Here's my httpd-vhosts.conf, I would appreciate some help with this:
#
# 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
# <URL: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 *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *>
DocumentRoot C:/wamp/www
</VirtualHost>
<VirtualHost *>
ServerName framework
SetEnv ENVIRONMENT development
DocumentRoot "F:/trabajos/"
<Directory "F:/trabajos/">
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
|
Back to top |
|
covener
Joined: 23 Nov 2008 Posts: 59
|
Posted: Sat 09 Feb '13 4:32 Post subject: Re: Yet another Virtual Hosts issue thread |
|
|
given2fly wrote: |
NameVirtualHost *:80
<VirtualHost *>
DocumentRoot C:/wamp/www
</VirtualHost>
<VirtualHost *>
ServerName framework
|
The argument to VH and NVH should be identical. Without that, Apache won't look past the match of * on the incoming connection.
You probably get a startup warning about the overlap of virtual hosts. httpd.exe -S would tell you the *:80 had no virtual hosts in it. |
|
Back to top |
|
|
|
|
|
|