Hello to everyone,
I am new to Apache 2.2 (win32) DAV/2 PHP 5.3.8 and have installed it on window 2008 server. I am trying to set up multiple sites to one static IP address. I have configured vhost file as follow:
<VirtualHost *:80>
ServerName www.IAEIsouthcarolina.org
ServerAdmin [email protected]
DocumentRoot "C:/webserver/Apache/htdocs/IAEIsouthcarolina"
ServerAlias iaeisouthcarolina.org
ErrorLog "logs/www.IAEIsouthcarolina.org-error.log"
CustomLog "logs/www.IAEIsouthcarolina.org-access.log" common
</VirtualHost>
<Directory "C:/webserver/Apache/htdocs/IAEIsouthcoarolina">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/webserver/Apache/htdocs/Inspectit"
ServerName www.1stsourcesolution.com
ServerAlias 1stsourcesolution.com
ErrorLog "logs/www.1stsourcesolution.com-error.log"
CustomLog "logs/www.1stsourcesolution.com-access.log" common
</VirtualHost>
and the http.conf as follow:
ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 64.138.193.106:80
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/webserver/Apache/htdocs"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/webserver/Apache/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes Includes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
If any one can help me figure this out I would appreciate it so much.
Jon
Well, you do not mention the problem, so I'm going to take a wild guess:
# Per docs, first vhost must be a partial duplicate of main host in httpd.conf
# It will act as the default host. Any requests to your IP not matching a
# configured hostname will land here.
<VirtualHost _default_:80>
DocumentRoot "C:/webserver/Apache/htdocs"
</VirtualHost>
# Now you can add as many vhosts as you wish below
<VirtualHost *:80>
ServerName www.IAEIsouthcarolina.org
ServerAdmin [email protected]
DocumentRoot "C:/webserver/Apache/htdocs/IAEIsouthcarolina"
ServerAlias iaeisouthcarolina.org
ErrorLog "logs/www.IAEIsouthcarolina.org-error.log"
CustomLog "logs/www.IAEIsouthcarolina.org-access.log" common
</VirtualHost>
<Directory "C:/webserver/Apache/htdocs/IAEIsouthcoarolina">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/webserver/Apache/htdocs/Inspectit"
ServerName www.1stsourcesolution.com
ServerAlias 1stsourcesolution.com
ErrorLog "logs/www.1stsourcesolution.com-error.log"
CustomLog "logs/www.1stsourcesolution.com-access.log" common
</VirtualHost>
<Directory "C:/webserver/Apache/htdocs/IAEIsouthcoarolina">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>