Hi guys, sorry to disturb, but i'm quite new to configuring apache. I need to have sub-domains on localhost which is on 127.0.0.1
I need to acces sites like nocrapes.localhost, stavinvest.localhost and so on....
my vhost file is
- Code: Select all
#
# 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 127.0.0.1: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 127.0.0.1:80>
DocumentRoot C:\xampp\htdocs
ServerName localhost
<Directory "C:\xampp\htdocs">
Options Indexes FollowSymLinks
AllowOverrice All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot D:\www\develop
ServerName develop.localhost
<Directory "D:\www\develop">
Options Indexes FollowSymLinks
AllowOverrice All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot D:\www\stavinvestjk
ServerName stavinvest.localhost
<Directory "D:\www\stavinvestjk">
Options Indexes FollowSymLinks
AllowOverrice All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.1:80>
DocumentRoot D:\www\nocrapes
ServerName nocrapes.localhost
<Directory "D:\www\nocrapes">
Options Indexes FollowSymLinks
AllowOverrice All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
but with this apache won't start... where do I have mistake???
Thanks for all help