virtual hosts do not work

Problems with the Windows version of XAMPP, questions, comments, and anything related.

virtual hosts do not work

Postby ChristoMonte11 » 19. October 2010 17:43

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.
ChristoMonte11
 
Posts: 1
Joined: 19. October 2010 17:24

Re: virtual hosts do not work

Postby meows » 22. October 2010 07:29

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. :|
meows
 
Posts: 44
Joined: 31. January 2007 10:28

Re: virtual hosts do not work

Postby Dariusc123456 » 23. October 2010 23:19

You should make sure you add the virtual host to your apache server and the correct path for it to go in.
Dariusc123456
 
Posts: 22
Joined: 15. October 2010 15:18

Re: virtual hosts do not work

Postby turnhofer » 16. November 2010 21:40

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
Last edited by turnhofer on 16. November 2010 22:26, edited 1 time in total.
turnhofer
 
Posts: 5
Joined: 16. November 2010 21:33

Re: virtual hosts do not work

Postby WilliL » 16. November 2010 22:04

have a look to:
DocumentRoot D:\www\develop
ServerName develop.localhost
<Directory "D:\www\idevelop">
perhaps its the reason, i'm not sure
Willi
WilliL
 
Posts: 660
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: virtual hosts do not work

Postby turnhofer » 16. November 2010 22:27

thanx - fixed, but still not working
any other ideas???
turnhofer
 
Posts: 5
Joined: 16. November 2010 21:33

Re: virtual hosts do not work

Postby Nobbie » 16. November 2010 23:53

turnhofer wrote:thanx - fixed, but still not working
any other ideas???


Look into the error_log, it tells you precisely whats wrong.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: virtual hosts do not work

Postby JonB » 17. November 2010 10:51

Did you amend your hosts file?

:?:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: virtual hosts do not work

Postby turnhofer » 17. November 2010 13:21

ye - the host file is correct...
turnhofer
 
Posts: 5
Joined: 16. November 2010 21:33

Re: virtual hosts do not work

Postby Altrea » 17. November 2010 13:37

Nobbie wrote:
turnhofer wrote:thanx - fixed, but still not working
any other ideas???


Look into the error_log, it tells you precisely whats wrong.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: virtual hosts do not work

Postby turnhofer » 17. November 2010 14:35

there is nothing in apache log - maybe is there something in some system log - trying to find it...
turnhofer
 
Posts: 5
Joined: 16. November 2010 21:33

Re: virtual hosts do not work

Postby turnhofer » 17. November 2010 14:43

solved.... i'm blind...
turnhofer
 
Posts: 5
Joined: 16. November 2010 21:33


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 139 guests