vhosting on XP - just starting newbe

This is a discussion on vhosting on XP - just starting newbe within the Apache Web Server forums, part of the Web Server and Related Forums category; I have done the following: <VirtualHost *:80> ServerAdmin jwp@ont.com DocumentRoot c:\Program Files\Apache Group\Apache2\...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read

 

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2004
Gerald Preston
 
Posts: n/a
Default vhosting on XP - just starting newbe

I have done the following:

<VirtualHost *:80>
ServerAdmin jwp@ont.com
DocumentRoot c:\Program Files\Apache Group\Apache2\conf
ServerName www.gjwpp88.com
ErrorLog c:\MyWebs\logs\error
CustomLog c:\MyWebs\logs\access
</VirtualHost>

and

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
127.0.0.1 gjwpp88

and my Apache2 will not start! What have I messed up?

Thanks,

Jerry


  #2 (permalink)  
Old 11-07-2004
Gerald Preston
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

The following starts!

<VirtualHost *:80>
ServerAdmin jwp@ont.com
DocumentRoot C:\MyWebs
ServerName www.gjwpp88.com
ErrorLog C:\MyWebs\logs\error
# CustomLog C:\MyWebs\logs\access
</VirtualHost>

How do I access it from IE and what do I change to run Perl CGI?

Any ideas what is wrong with the following?

CustomLog C:\MyWebs\logs\access

Thanks,

Jerry

"Gerald Preston" <jwp@ont.com> wrote in message
news:10orbjhioetp105@corp.supernews.com...
> I have done the following:
>
> <VirtualHost *:80>
> ServerAdmin jwp@ont.com
> DocumentRoot c:\Program Files\Apache Group\Apache2\conf
> ServerName www.gjwpp88.com
> ErrorLog c:\MyWebs\logs\error
> CustomLog c:\MyWebs\logs\access
> </VirtualHost>
>
> and
>
> # Copyright (c) 1993-1999 Microsoft Corp.
> #
> # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
> #
> # This file contains the mappings of IP addresses to host names. Each
> # entry should be kept on an individual line. The IP address should
> # be placed in the first column followed by the corresponding host name.
> # The IP address and the host name should be separated by at least one
> # space.
> #
> # Additionally, comments (such as these) may be inserted on individual
> # lines or following the machine name denoted by a '#' symbol.
> #
> # For example:
> #
> # 102.54.94.97 rhino.acme.com # source server
> # 38.25.63.10 x.acme.com # x client host
>
> 127.0.0.1 localhost
> 127.0.0.1 gjwpp88
>
> and my Apache2 will not start! What have I messed up?
>
> Thanks,
>
> Jerry
>
>



  #3 (permalink)  
Old 11-07-2004
Gerald Preston
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

Ping gjwpp88 and every request times out.

Changed gjwpp88 to gjwpp88.com and ping returns data like onig localhost.

Jerry

"Gerald Preston" <jwp@ont.com> wrote in message
news:10orbjhioetp105@corp.supernews.com...
> I have done the following:
>
> <VirtualHost *:80>
> ServerAdmin jwp@ont.com
> DocumentRoot c:\Program Files\Apache Group\Apache2\conf
> ServerName www.gjwpp88.com
> ErrorLog c:\MyWebs\logs\error
> CustomLog c:\MyWebs\logs\access
> </VirtualHost>
>
> and
>
> # Copyright (c) 1993-1999 Microsoft Corp.
> #
> # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
> #
> # This file contains the mappings of IP addresses to host names. Each
> # entry should be kept on an individual line. The IP address should
> # be placed in the first column followed by the corresponding host name.
> # The IP address and the host name should be separated by at least one
> # space.
> #
> # Additionally, comments (such as these) may be inserted on individual
> # lines or following the machine name denoted by a '#' symbol.
> #
> # For example:
> #
> # 102.54.94.97 rhino.acme.com # source server
> # 38.25.63.10 x.acme.com # x client host
>
> 127.0.0.1 localhost
> 127.0.0.1 gjwpp88
>
> and my Apache2 will not start! What have I messed up?
>
> Thanks,
>
> Jerry
>
>



  #4 (permalink)  
Old 11-07-2004
HansH
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

"Gerald Preston" <jwp@ont.com> schreef in bericht
news:10orbjhioetp105@corp.supernews.com...
> I have done the following:
>
> <VirtualHost *:80>
> ServerAdmin jwp@ont.com
> DocumentRoot c:\Program Files\Apache Group\Apache2\conf

Quote the path to catch the space, like this
DocumentRoot "c:\Program Files\Apache Group\Apache2\conf"

Quite odd to have your root where the config is.

> ServerName www.gjwpp88.com
> ErrorLog c:\MyWebs\logs\error
> CustomLog c:\MyWebs\logs\access
> </VirtualHost>
>
> and
> 127.0.0.1 localhost
> 127.0.0.1 gjwpp88

Right hand side has to match the ServerName
127.0.0.1 www.gjwpp88.com

After changing run 'ipconfig /flushdns' to make your system forget any
obsolete values.

> and my Apache2 will not start!

Next time quote from your error log

> What have I messed up?

You ran into space ...

HansH


  #5 (permalink)  
Old 11-07-2004
Gerald Preston
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

HansH,

Here are the changes I made:

<VirtualHost *:80>
ServerAdmin jwp@ont.com
DocumentRoot "C:\MyWebs\htdocs"
ServerName www.gjwpp88.com
ErrorLog C:\MyWebs\logs\error.log
# CustomLog C:\MyWebs\logs\access.log
</VirtualHost>

and

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost
127.0.0.1 www.gjwpp88.com

Now I get:

Cannot find server or DNS Error
Internet Explorer

When I try http://localhost/

What is wrong with DNS?

Jerry

"HansH" <hans@niet.op.het.net> wrote in message
news:cmkv7j$oas$1@news.cistron.nl...
> "Gerald Preston" <jwp@ont.com> schreef in bericht
> news:10orbjhioetp105@corp.supernews.com...
> > I have done the following:
> >
> > <VirtualHost *:80>
> > ServerAdmin jwp@ont.com
> > DocumentRoot c:\Program Files\Apache Group\Apache2\conf

> Quote the path to catch the space, like this
> DocumentRoot "c:\Program Files\Apache Group\Apache2\conf"
>
> Quite odd to have your root where the config is.
>
> > ServerName www.gjwpp88.com
> > ErrorLog c:\MyWebs\logs\error
> > CustomLog c:\MyWebs\logs\access
> > </VirtualHost>
> >
> > and
> > 127.0.0.1 localhost
> > 127.0.0.1 gjwpp88

> Right hand side has to match the ServerName
> 127.0.0.1 www.gjwpp88.com
>
> After changing run 'ipconfig /flushdns' to make your system forget any
> obsolete values.
>
> > and my Apache2 will not start!

> Next time quote from your error log
>
> > What have I messed up?

> You ran into space ...
>
> HansH
>
>



  #6 (permalink)  
Old 11-07-2004
Gerald Preston
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

HansH,

error.log

[Sat Nov 06 05:08:29 2004] [notice] Parent: Created child process 700
[Sat Nov 06 05:08:29 2004] [notice] Child 700: Child process is running
[Sat Nov 06 05:08:29 2004] [notice] Child 700: Acquired the start mutex.
[Sat Nov 06 05:08:29 2004] [notice] Child 700: Starting 250 worker threads.
[Sat Nov 06 05:19:58 2004] [notice] Parent: Created child process 240
[Sat Nov 06 05:19:58 2004] [notice] Child 240: Child process is running
[Sat Nov 06 05:19:59 2004] [notice] Child 240: Acquired the start mutex.
[Sat Nov 06 05:19:59 2004] [notice] Child 240: Starting 250 worker threads.
[Sat Nov 06 21:29:29 2004] [notice] Parent: Created child process 1864
Warning: DocumentRoot [/www/docs/dummy-host.example.com] does not exist
[Sat Nov 06 21:29:30 2004] [notice] Child 1864: Child process is running
[Sat Nov 06 21:29:30 2004] [notice] Child 1864: Acquired the start mutex.
[Sat Nov 06 21:29:31 2004] [notice] Child 1864: Starting 250 worker threads.
[Sat Nov 06 22:39:38 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sat Nov 06 22:39:38 2004] [notice] Child 1864: Exit event signaled. Child
process is ending.
[Sat Nov 06 22:39:39 2004] [notice] Child 1864: Released the start mutex
[Sat Nov 06 22:39:40 2004] [notice] Child 1864: Waiting for 250 worker
threads to exit.
[Sat Nov 06 22:39:40 2004] [notice] Child 1864: All worker threads have
exited.
[Sat Nov 06 22:39:40 2004] [notice] Child 1864: Child process is exiting
[Sun Nov 07 02:07:47 2004] [notice] Parent: Created child process 2188
[Sun Nov 07 02:07:47 2004] [notice] Child 2188: Child process is running
[Sun Nov 07 02:07:47 2004] [notice] Child 2188: Acquired the start mutex.
[Sun Nov 07 02:07:47 2004] [notice] Child 2188: Starting 250 worker threads.
[Sun Nov 07 02:08:33 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:08:33 2004] [notice] Child 2188: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:08:34 2004] [notice] Child 2188: Released the start mutex
[Sun Nov 07 02:08:35 2004] [notice] Child 2188: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:08:35 2004] [notice] Child 2188: All worker threads have
exited.
[Sun Nov 07 02:08:35 2004] [notice] Child 2188: Child process is exiting
[Sun Nov 07 02:11:19 2004] [notice] Parent: Created child process 844
[Sun Nov 07 02:11:19 2004] [notice] Child 844: Child process is running
[Sun Nov 07 02:11:19 2004] [notice] Child 844: Acquired the start mutex.
[Sun Nov 07 02:11:19 2004] [notice] Child 844: Starting 250 worker threads.
[Sun Nov 07 02:11:39 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:11:39 2004] [notice] Child 844: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:11:40 2004] [notice] Child 844: Released the start mutex
[Sun Nov 07 02:11:41 2004] [notice] Child 844: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:11:41 2004] [notice] Child 844: All worker threads have
exited.
[Sun Nov 07 02:11:41 2004] [notice] Child 844: Child process is exiting
[Sun Nov 07 02:14:58 2004] [notice] Parent: Created child process 4008
[Sun Nov 07 02:14:58 2004] [notice] Child 4008: Child process is running
[Sun Nov 07 02:14:58 2004] [notice] Child 4008: Acquired the start mutex.
[Sun Nov 07 02:14:58 2004] [notice] Child 4008: Starting 250 worker threads.
[Sun Nov 07 02:15:14 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:15:14 2004] [notice] Child 4008: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:15:15 2004] [notice] Child 4008: Released the start mutex
[Sun Nov 07 02:15:16 2004] [notice] Child 4008: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:15:16 2004] [notice] Child 4008: All worker threads have
exited.
[Sun Nov 07 02:15:16 2004] [notice] Child 4008: Child process is exiting
[Sun Nov 07 02:20:41 2004] [notice] Parent: Created child process 284
[Sun Nov 07 02:20:41 2004] [notice] Child 284: Child process is running
[Sun Nov 07 02:20:41 2004] [notice] Child 284: Acquired the start mutex.
[Sun Nov 07 02:20:41 2004] [notice] Child 284: Starting 250 worker threads.
[Sun Nov 07 02:21:07 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:21:07 2004] [notice] Child 284: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:21:07 2004] [notice] Parent: Created child process 1828
[Sun Nov 07 02:21:07 2004] [notice] Child 1828: Child process is running
[Sun Nov 07 02:21:08 2004] [notice] Child 284: Released the start mutex
[Sun Nov 07 02:21:08 2004] [notice] Child 1828: Acquired the start mutex.
[Sun Nov 07 02:21:08 2004] [notice] Child 1828: Starting 250 worker threads.
[Sun Nov 07 02:21:09 2004] [notice] Child 284: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:21:09 2004] [notice] Child 284: All worker threads have
exited.
[Sun Nov 07 02:21:09 2004] [notice] Child 284: Child process is exiting
[Sun Nov 07 02:24:23 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:24:23 2004] [notice] Child 1828: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:24:24 2004] [notice] Child 1828: Released the start mutex
[Sun Nov 07 02:24:25 2004] [notice] Child 1828: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:24:25 2004] [notice] Child 1828: All worker threads have
exited.
[Sun Nov 07 02:24:25 2004] [notice] Child 1828: Child process is exiting
[Sun Nov 07 02:26:56 2004] [notice] Parent: Created child process 5188
[Sun Nov 07 02:26:56 2004] [notice] Child 5188: Child process is running
[Sun Nov 07 02:26:56 2004] [notice] Child 5188: Acquired the start mutex.
[Sun Nov 07 02:26:56 2004] [notice] Child 5188: Starting 250 worker threads.
[Sun Nov 07 02:27:26 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:27:26 2004] [notice] Child 5188: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:27:26 2004] [notice] Parent: Created child process 3428
[Sun Nov 07 02:27:26 2004] [notice] Child 3428: Child process is running
[Sun Nov 07 02:27:27 2004] [notice] Child 5188: Released the start mutex
[Sun Nov 07 02:27:27 2004] [notice] Child 3428: Acquired the start mutex.
[Sun Nov 07 02:27:27 2004] [notice] Child 3428: Starting 250 worker threads.
[Sun Nov 07 02:27:28 2004] [notice] Child 5188: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:27:28 2004] [notice] Child 5188: All worker threads have
exited.
[Sun Nov 07 02:27:28 2004] [notice] Child 5188: Child process is exiting
[Sun Nov 07 02:39:49 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:39:49 2004] [notice] Child 3428: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:39:50 2004] [notice] Parent: Created child process 256
[Sun Nov 07 02:39:50 2004] [notice] Child 3428: Released the start mutex
[Sun Nov 07 02:39:50 2004] [notice] Child 256: Child process is running
[Sun Nov 07 02:39:50 2004] [notice] Child 256: Acquired the start mutex.
[Sun Nov 07 02:39:50 2004] [notice] Child 256: Starting 250 worker threads.
[Sun Nov 07 02:39:51 2004] [notice] Child 3428: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:39:51 2004] [notice] Child 3428: All worker threads have
exited.
[Sun Nov 07 02:39:51 2004] [notice] Child 3428: Child process is exiting
[Sun Nov 07 02:40:35 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:40:35 2004] [notice] Child 256: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:40:35 2004] [notice] Parent: Created child process 5440
[Sun Nov 07 02:40:35 2004] [notice] Child 5440: Child process is running
[Sun Nov 07 02:40:36 2004] [notice] Child 256: Released the start mutex
[Sun Nov 07 02:40:36 2004] [notice] Child 5440: Acquired the start mutex.
[Sun Nov 07 02:40:36 2004] [notice] Child 5440: Starting 250 worker threads.
[Sun Nov 07 02:40:37 2004] [notice] Child 256: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:40:37 2004] [notice] Child 256: All worker threads have
exited.
[Sun Nov 07 02:40:37 2004] [notice] Child 256: Child process is exiting
[Sun Nov 07 02:56:34 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:56:34 2004] [notice] Child 5440: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:56:34 2004] [notice] Parent: Created child process 2468
[Sun Nov 07 02:56:35 2004] [notice] Child 2468: Child process is running
[Sun Nov 07 02:56:35 2004] [notice] Child 2468: Acquired the start mutex.
[Sun Nov 07 02:56:35 2004] [notice] Child 5440: Released the start mutex
[Sun Nov 07 02:56:35 2004] [notice] Child 2468: Starting 250 worker threads.
[Sun Nov 07 02:56:36 2004] [notice] Child 5440: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:56:36 2004] [notice] Child 5440: All worker threads have
exited.
[Sun Nov 07 02:56:36 2004] [notice] Child 5440: Child process is exiting
[Sun Nov 07 02:57:15 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 02:57:15 2004] [notice] Child 2468: Exit event signaled. Child
process is ending.
[Sun Nov 07 02:57:16 2004] [notice] Child 2468: Released the start mutex
[Sun Nov 07 02:57:17 2004] [notice] Child 2468: Waiting for 250 worker
threads to exit.
[Sun Nov 07 02:57:17 2004] [notice] Child 2468: All worker threads have
exited.
[Sun Nov 07 02:57:17 2004] [notice] Child 2468: Child process is exiting
[Sun Nov 07 02:57:24 2004] [notice] Parent: Created child process 4524
[Sun Nov 07 02:57:25 2004] [notice] Child 4524: Child process is running
[Sun Nov 07 02:57:25 2004] [notice] Child 4524: Acquired the start mutex.
[Sun Nov 07 02:57:25 2004] [notice] Child 4524: Starting 250 worker threads.
[Sun Nov 07 05:06:36 2004] [notice] Parent: Received restart signal --
Restarting the server.
[Sun Nov 07 05:06:36 2004] [notice] Child 4524: Exit event signaled. Child
process is ending.
[Sun Nov 07 05:06:37 2004] [notice] Parent: Created child process 4436
[Sun Nov 07 05:06:37 2004] [notice] Child 4436: Child process is running
[Sun Nov 07 05:06:37 2004] [notice] Child 4524: Released the start mutex
[Sun Nov 07 05:06:37 2004] [notice] Child 4436: Acquired the start mutex.
[Sun Nov 07 05:06:37 2004] [notice] Child 4436: Starting 250 worker threads.
[Sun Nov 07 05:06:38 2004] [notice] Child 4524: Waiting for 250 worker
threads to exit.
[Sun Nov 07 05:06:38 2004] [notice] Child 4524: All worker threads have
exited.
[Sun Nov 07 05:06:38 2004] [notice] Child 4524: Child process is exiting


Jerry
"HansH" <hans@niet.op.het.net> wrote in message
news:cmkv7j$oas$1@news.cistron.nl...
> "Gerald Preston" <jwp@ont.com> schreef in bericht
> news:10orbjhioetp105@corp.supernews.com...
> > I have done the following:
> >
> > <VirtualHost *:80>
> > ServerAdmin jwp@ont.com
> > DocumentRoot c:\Program Files\Apache Group\Apache2\conf

> Quote the path to catch the space, like this
> DocumentRoot "c:\Program Files\Apache Group\Apache2\conf"
>
> Quite odd to have your root where the config is.
>
> > ServerName www.gjwpp88.com
> > ErrorLog c:\MyWebs\logs\error
> > CustomLog c:\MyWebs\logs\access
> > </VirtualHost>
> >
> > and
> > 127.0.0.1 localhost
> > 127.0.0.1 gjwpp88

> Right hand side has to match the ServerName
> 127.0.0.1 www.gjwpp88.com
>
> After changing run 'ipconfig /flushdns' to make your system forget any
> obsolete values.
>
> > and my Apache2 will not start!

> Next time quote from your error log
>
> > What have I messed up?

> You ran into space ...
>
> HansH
>
>



  #7 (permalink)  
Old 11-07-2004
HansH
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

"Gerald Preston" <jwp@ont.com> schreef in bericht
news:10os0mlklae47c6@corp.supernews.com...
> Here are the changes I made:
> <VirtualHost *:80>
> ServerAdmin jwp@ont.com
> DocumentRoot "C:\MyWebs\htdocs"
> ServerName www.gjwpp88.com
> ErrorLog C:\MyWebs\logs\error.log
> # CustomLog C:\MyWebs\logs\access.log
> </VirtualHost>
>
> and
> 127.0.0.1 localhost
> 127.0.0.1 www.gjwpp88.com
>
> Now I get:
> Cannot find server or DNS Error
> Internet Explorer
>
> When I try http://localhost/
>
> What is wrong with DNS?

Cann't get much chocolate out of this ...
... looks like your browser is auto-appending .com
and as the request never reaches Apache, it's not in the error log.

Something came to mind ... close the editor of the host file, IIRC
DNS-thingy cann't read the open file!


HansH


  #8 (permalink)  
Old 11-07-2004
Gerald Preston
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

HansH,

Still not working. I am not sure what this means, but the log files under
MyWebs are not updating. Only the log files under Apache2.

Jerry


"HansH" <hans@niet.op.het.net> wrote in message
news:cmm287$u1a$1@news.cistron.nl...
> "Gerald Preston" <jwp@ont.com> schreef in bericht
> news:10os0mlklae47c6@corp.supernews.com...
> > Here are the changes I made:
> > <VirtualHost *:80>
> > ServerAdmin jwp@ont.com
> > DocumentRoot "C:\MyWebs\htdocs"
> > ServerName www.gjwpp88.com
> > ErrorLog C:\MyWebs\logs\error.log
> > # CustomLog C:\MyWebs\logs\access.log
> > </VirtualHost>
> >
> > and
> > 127.0.0.1 localhost
> > 127.0.0.1 www.gjwpp88.com
> >
> > Now I get:
> > Cannot find server or DNS Error
> > Internet Explorer
> >
> > When I try http://localhost/
> >
> > What is wrong with DNS?

> Cann't get much chocolate out of this ...
> .. looks like your browser is auto-appending .com
> and as the request never reaches Apache, it's not in the error log.
>
> Something came to mind ... close the editor of the host file, IIRC
> DNS-thingy cann't read the open file!
>
>
> HansH
>
>



  #9 (permalink)  
Old 11-08-2004
HansH
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

"Gerald Preston" <jwp@ont.com> schreef in bericht
news:10otcvarag1nm8d@corp.supernews.com...
> "HansH" <hans@niet.op.het.net> wrote in message
> news:cmm287$u1a$1@news.cistron.nl...
> > "Gerald Preston" <jwp@ont.com> schreef in bericht
> > news:10os0mlklae47c6@corp.supernews.com...
> > > Here are the changes I made:
> > > <VirtualHost *:80>
> > > ServerAdmin jwp@ont.com
> > > DocumentRoot "C:\MyWebs\htdocs"
> > > ServerName www.gjwpp88.com
> > > ErrorLog C:\MyWebs\logs\error.log
> > > # CustomLog C:\MyWebs\logs\access.log
> > > </VirtualHost>
> > >
> > > and
> > > 127.0.0.1 localhost
> > > 127.0.0.1 www.gjwpp88.com
> > >
> > > Now I get:
> > > Cannot find server or DNS Error
> > > Internet Explorer
> > >
> > > When I try http://localhost/
> > >
> > > What is wrong with DNS?

> > Cann't get much chocolate out of this ...
> > .. looks like your browser is auto-appending .com
> > and as the request never reaches Apache, it's not in the error log.
> >
> > Something came to mind ... close the editor of the host file, IIRC
> > DNS-thingy cann't read the open file!

> Still not working. I am not sure what this means, but the log files under
> MyWebs are not updating. Only the log files under Apache2.

The request do not get to the virtual host configuration and are handle by
the main server.

You do have a
NameVirtualHost *:80
in your config, do you?
( Best place is just above the first <VirtualHost *:80> )

HansH


  #10 (permalink)  
Old 11-08-2004
Gerald Preston
 
Posts: n/a
Default Re: vhosting on XP - just starting newbe

HansH,

This is what I have:

### Section 3: Virtual Hosts
#
# VirtualHost: 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.0/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 requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *:80>
ServerAdmin jwp@ont.com
DocumentRoot "C:\MyWebs\htdocs"
ServerName www.gjwpp88.com
ErrorLog C:\MyWebs\logs\error.log
# CustomLog C:\MyWebs\logs\access.log
</VirtualHost>

Jerry
"HansH" <hans@niet.op.het.net> wrote in message
news:cmmdbk$9qn$1@news.cistron.nl...
> "Gerald Preston" <jwp@ont.com> schreef in bericht
> news:10otcvarag1nm8d@corp.supernews.com...
> > "HansH" <hans@niet.op.het.net> wrote in message
> > news:cmm287$u1a$1@news.cistron.nl...
> > > "Gerald Preston" <jwp@ont.com> schreef in bericht
> > > news:10os0mlklae47c6@corp.supernews.com...
> > > > Here are the changes I made:
> > > > <VirtualHost *:80>
> > > > ServerAdmin jwp@ont.com
> > > > DocumentRoot "C:\MyWebs\htdocs"
> > > > ServerName www.gjwpp88.com
> > > > ErrorLog C:\MyWebs\logs\error.log
> > > > # CustomLog C:\MyWebs\logs\access.log
> > > > </VirtualHost>
> > > >
> > > > and
> > > > 127.0.0.1 localhost
> > > > 127.0.0.1 www.gjwpp88.com
> > > >
> > > > Now I get:
> > > > Cannot find server or DNS Error
> > > > Internet Explorer
> > > >
> > > > When I try http://localhost/
> > > >
> > > > What is wrong with DNS?
> > > Cann't get much chocolate out of this ...
> > > .. looks like your browser is auto-appending .com
> > > and as the request never reaches Apache, it's not in the error log.
> > >
> > > Something came to mind ... close the editor of the host file, IIRC
> > > DNS-thingy cann't read the open file!

> > Still not working. I am not sure what this means, but the log files

under
> > MyWebs are not updating. Only the log files under Apache2.

> The request do not get to the virtual host configuration and are handle by
> the main server.
>
> You do have a
> NameVirtualHost *:80
> in your config, do you?
> ( Best place is just above the first <VirtualHost *:80> )
>
> HansH
>
>



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0