Page 1 of 1
virtual hosts do not work
Posted:
19. October 2010 17:43
by ChristoMonte11
Hi,
Learning Zend Framework I have created three virtual hosts according to the latest Zend Quickstart tutorial. Some days it worked, but today I tried to add a 4th one and ( having worked 6 hours non stop at this problem but ) xampp does not recognize any vhost any more.
If I type "localhost" it goes "http://localhost/xampp/", like it should. If " 127.0.0.1 zendquick" is an entry in .../drivers/ect/hosts and I type "zendquick" it goes "http://zendquick/xampp/" wherever my real Directory is for my Zend Quickstart public folder.
Does anyone know about this behavior?
Yours, M.
Re: virtual hosts do not work
Posted:
22. October 2010 07:29
by meows
Zend Quickstart tutorial is that on line and what is the content of your hosts file// using a tool "Zend Quickstart tutorial" most ppl will advise you to ask the supplier of the tool what the problem is.
Re: virtual hosts do not work
Posted:
23. October 2010 23:19
by Dariusc123456
You should make sure you add the virtual host to your apache server and the correct path for it to go in.
Re: virtual hosts do not work
Posted:
16. November 2010 21:40
by turnhofer
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
Re: virtual hosts do not work
Posted:
16. November 2010 22:04
by WilliL
have a look to:
DocumentRoot D:\www\develop
ServerName develop.localhost
<Directory "D:\www\idevelop">
perhaps its the reason, i'm not sure
Re: virtual hosts do not work
Posted:
16. November 2010 22:27
by turnhofer
thanx - fixed, but still not working
any other ideas???
Re: virtual hosts do not work
Posted:
16. November 2010 23:53
by Nobbie
turnhofer wrote:thanx - fixed, but still not working
any other ideas???
Look into the error_log, it tells you precisely whats wrong.
Re: virtual hosts do not work
Posted:
17. November 2010 10:51
by JonB
Did you amend your hosts file?
Re: virtual hosts do not work
Posted:
17. November 2010 13:21
by turnhofer
ye - the host file is correct...
Re: virtual hosts do not work
Posted:
17. November 2010 13:37
by Altrea
Nobbie wrote:turnhofer wrote:thanx - fixed, but still not working
any other ideas???
Look into the error_log, it tells you precisely whats wrong.
Re: virtual hosts do not work
Posted:
17. November 2010 14:35
by turnhofer
there is nothing in apache log - maybe is there something in some system log - trying to find it...
Re: virtual hosts do not work
Posted:
17. November 2010 14:43
by turnhofer
solved.... i'm blind...