You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Blomstrom <da...@yahoo.com> on 2004/01/15 14:05:24 UTC

[users@httpd] Getting Started With Virtual Hosts

I'm just starting to learn about virtual hosting and
would like to ask a few questions. It looks like it
might be pretty simple, but I'd like to make sure I'm
pointed in the right direction.

I'm using Dreamweaver on a Windows XP Pro platform,
and here are some relevant paths:

C:/xampp/apache/
C:/xampp/apache/conf/
C:/xampp/htdocs/
C:/sites/

For example, here are where two of my websites reside:

C:/sites/geobop/
C:/sites/geoworld/

Please note that I am NOT planning on hosting online
websites; I merely test my websites on my computer
before I publish them online to my ISP.

I glanced at a couple online tutorials and
Apache.org's instructions at
http://httpd.apache.org/docs-2.0/vhosts/examples.html

It appears to me that I want to set up a NAME-BASED
system.

Apache.org's server configuration instructions have
apparently already been set up in the httpd.conf file:

#<VirtualHost *>
#    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>

Below is my first guess towards applying this to two
of my websites, C:/sites/geobop/ and
C:/sites/geoworld/

#<VirtualHost *>
#    ServerAdmin [My e-mail address]
#    DocumentRoot C:/sites/geobop
#    ServerName geobop
#    ErrorLog logs/C:/sites/geobop-error_log
#    CustomLog logs/C:/sites/geobop-access_log common
#</VirtualHost>

#<VirtualHost *>
#    ServerAdmin [My e-mail address]
#    DocumentRoot C:/sites/geoworld
#    ServerName geoworld
#    ErrorLog logs/C:/sites/geoworld-error_log
#    CustomLog logs/C:/sites/geoworld-access_log
common
#</VirtualHost>

Am I on the right track? And am I also correct in
guessing that I don't need error logs or custom logs,
as long I'm only hosting websites on my own computer?

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004, David Blomstrom wrote:
> But I don't want to move all my websites into the
> htdocs folder. I'd rather leave right where they are -
> C:/sites - but be able to preview them by typing in
> http://localhost/geobop, http://localhost/geoworld,
> etc.

> So is that a virtual host function, or an alias
> function?

Alias.

Again, read the doc I pointed you to.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Matthew Shannon <ma...@paycom.net> wrote:
> This is an alias function. Virtual hosting would
> involve different
> servernames as in http://localhost1, . . .
> 
> Alias /geoworld c:/sites/geoworld
> Alias /othersite c:/sites othersite
> 
> -m
 
OK, thanks - I just wanted to make sure I'm on the
right track.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Matthew Shannon <ma...@paycom.net>.
This is an alias function. Virtual hosting would involve different
servernames as in http://localhost1, http://localhost2, etc., each with
it's own document root ( c:/sites/localhost1, c:/sites/localhost2 ). If
you would like to pull up different sites under one servername, you need
to discriminate via directory structure, either under the one doc root
or by using the alias as was said before;

Alias /geoworld c:/sites/geoworld
Alias /othersite c:/sites othersite

-m

On Thu, 2004-01-15 at 09:34, David Blomstrom wrote:
> --- Joshua Slive <jo...@slive.ca> wrote:
> 
> > Most likely what you want is simply an Alias, as in
> > 
> > Alias /geoworld c:/sites/geoworld
> 
> * * * * * * * * * *
> 
> This is what I'm trying to do...
> 
> All of my websites are in the following directory:
> 
> C:/sites
> 
> I recently installed Apache and was trying to learn
> how to preview my websites in it. Someone told me to
> just paste my sites into apache/htdocs. (Actually,
> it's xampp/htdocs in my system.)
> 
> It worked beautifully - I type in
> http://localhost/geobop/ and I can view my site.
> 
> But I don't want to move all my websites into the
> htdocs folder. I'd rather leave right where they are -
> C:/sites - but be able to preview them by typing in
> http://localhost/geobop, http://localhost/geoworld,
> etc.
> 
> I can view them, by typing in something messy, like
> file///c:sites, or whateve. But if I open a page in
> Dreamweaver, then click "preview," it doesn't work
> (except for the site in the htdocs folder).
> 
> So is that a virtual host function, or an alias
> function?
> 
> Thanks.
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
> http://hotjobs.sweepstakes.yahoo.com/signingbonus
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Going Back to Square One

Posted by Robert Andersson <ro...@profundis.nu>.
David Blomstrom wrote:
> I just didn't know I had to reboot my computer after altering
> apache/conf/httpd.

You don't need to reboot. When you change Apache's configuration, you need
to instruct it to reread it. If you have Apache Service Monitor runing,
instruct it to restart Apache and you're done.

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Going Back to Square One

Posted by David Blomstrom <da...@yahoo.com>.
Please disregard my first post. It turns out I was
doing it right after all; I just didn't know I had to
reboot my computer after altering apache/conf/httpd.

Whew!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Going Back to Square One

Posted by David Blomstrom <da...@yahoo.com>.
Can someone help me untie this knot?

Several days ago, I installed a preconfigured package
from "Apache Friends" (XAMPP) and began learning about
Apache, PHP and MySQL. The folder is installed at
C:/xampp/, with Apache at C:/xampp/apache/ and htdocs
at C:/xampp/htdocs/

The program is set up so that typing http://localhost/
into your browser brings up XAMPP's home page, which
includes test pages for Apache, PHP and MySQL.

One of my first challenges was to change localhost to
the folder with my Dreamweaver websites - C:/sites/  I
tried several methods, but I think the strategy that
finally worked was the tip I got from this list to
"change your document root to c:/sites instead of the
htdocs directory." I can't remember what file I did
that in, but I presume it was in conf/httpd. Anyway,
it worked beautifully.

To regain contact with XAMPP's home page (which is in
the htdocs folder), I simply made a copy of the htdocs
folder and pasted it into C:/sites/htdocs/. Then I
could view it at http://localhost/htdocs/xampp/, or
something like that.

Things fell apart when I was trying to learn MySQL,
specifically when I created a password for MySQL. I
decided to delete the entire XAMPP folder and
reinstall it (though I left the htdocs folder copy in
my sites folder).

Now I'm in limbo, with things working just partially.
I thought typing http://localhost/ into my browser
would bring up XAMPP's home page, but it brings up the
home page in my C:/sites/ folder. However, I can't
preview any other Dreamweaver websites, such as
http:/localhost/geobop/  If I navigate to XAMPP's home
page - either the original, or the copy I placed into
the C:/sites/htdocs/ folder - and double click on it,
my browser opens at one of the following URL's:

file:///C:/xampp/htdocs/index.html
file:///C:/sites/htdocs/index.html

Both pages display, but the test pages don't work.

Although this is confusing to me, I think the problem
(and the solution) is fairly simple - I'm must not
sure what it is. Since my problems began when I
created a MySQL username and password, I wanted to ask
if that could screw up Apache somehow. Also, shouldn't
that password be eliminated when I deleted the XAMPP
and MySQL folders? Or would it still be in my
computer, and I have to figure out how to delte it?

Again, my ultimate goal is to simply get Apache, PHP
and MySQL up and running at C:/xampp/ and preview my
websites at C:/sites/

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Getting Started With Virtual Hosts

Posted by Ben Yau <by...@cardcommerce.com>.
>
> C:/sites
>
> I recently installed Apache and was trying to learn
> how to preview my websites in it. Someone told me to
> just paste my sites into apache/htdocs. (Actually,
> it's xampp/htdocs in my system.)
>
> It worked beautifully - I type in
> http://localhost/geobop/ and I can view my site.
>

You could also just change your document root to  c:/sites instead of the
htdocs directory
Do you use the htdocs directory for anything else?



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Joshua Slive <jo...@slive.ca> wrote:

> Most likely what you want is simply an Alias, as in
> 
> Alias /geoworld c:/sites/geoworld

* * * * * * * * * *

This is what I'm trying to do...

All of my websites are in the following directory:

C:/sites

I recently installed Apache and was trying to learn
how to preview my websites in it. Someone told me to
just paste my sites into apache/htdocs. (Actually,
it's xampp/htdocs in my system.)

It worked beautifully - I type in
http://localhost/geobop/ and I can view my site.

But I don't want to move all my websites into the
htdocs folder. I'd rather leave right where they are -
C:/sites - but be able to preview them by typing in
http://localhost/geobop, http://localhost/geoworld,
etc.

I can view them, by typing in something messy, like
file///c:sites, or whateve. But if I open a page in
Dreamweaver, then click "preview," it doesn't work
(except for the site in the htdocs folder).

So is that a virtual host function, or an alias
function?

Thanks.

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004, David Blomstrom wrote:

> --- Joshua Slive <jo...@slive.ca> wrote:
> >
> > The ServerName is what apache uses to choose the
> > site to serve.  It must
> > EXACTLY match what you type into the URL bar of your
> > web browser (which
> > must, in turn, be mapped to your webserver through
> > DNS or other means).
> >
> > Joshua.
>
> Hmmmmmm...
>
> To preview the website that's currently in my htdocs
> folder, I type in http://localhost/geobop/index.php
>
> Just to make sure I've got this right, does that make
> my server name
> "http://localhost/geobop/index.php" ?

Sorry, not THAT exact.  It meant exactly the hostname you type in the URL
bar.  But it seems there is some confusion about what you are trying to
accomplish...

> But after I get my virtual server set up, that will
> change to http://localhost/geoworld/index.php, right?
>
> Also, you wrote, "which must, in turn, be mapped to
> your webserver through DNS or other means."
>
> Is that something I have to do, or is automatically
> mapped by Apache or something else?

If you are accessing both "sites" under the hostname "localhost", then you
do not want to do virtual hosting.  Virtual hosting is for hosting
different hostnames on the same server.

Most likely what you want is simply an Alias, as in

Alias /geoworld c:/sites/geoworld

See:
http://httpd.apache.org/docs-2.0/urlmapping.html

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Joshua Slive <jo...@slive.ca> wrote:
> 
> The ServerName is what apache uses to choose the
> site to serve.  It must
> EXACTLY match what you type into the URL bar of your
> web browser (which
> must, in turn, be mapped to your webserver through
> DNS or other means).
> 
> Joshua.

Hmmmmmm...

To preview the website that's currently in my htdocs
folder, I type in http://localhost/geobop/index.php

Just to make sure I've got this right, does that make
my server name
"http://localhost/geobop/index.php" ?

To view a site in my C:/sites directory (where I want
all my websites to be), I type in
file:///C:/sites/geobop/index.php

But after I get my virtual server set up, that will
change to http://localhost/geoworld/index.php, right?

Also, you wrote, "which must, in turn, be mapped to
your webserver through DNS or other means."

Is that something I have to do, or is automatically
mapped by Apache or something else?

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 15 Jan 2004, David Blomstrom wrote:
> <VirtualHost *:80>
>   DocumentRoot C:/sites/geobop
>   ServerName geobop
> </VirtualHost>
>
> And can I just choose anything for a server name? Or
> would I just localhost as the servername for all the
> websites on my computer?

The ServerName is what apache uses to choose the site to serve.  It must
EXACTLY match what you type into the URL bar of your web browser (which
must, in turn, be mapped to your webserver through DNS or other means).

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Yakov Lerner <ya...@kavado.com> wrote:

> I think you need NameVirtualHost directive.
> The nice tutorial on VirtualHosts is at:
> 
>
http://www.onlamp.com/pub/a/apache/2004/01/08/apacheckbk.html
> 
> Yakov

* * * * * * * * * *

Thanks for the tip. He lists this is an example:

<VirtualHost *:80>
  DocumentRoot /home/bob/www
  ServerName bob.veggie.com
</VirtualHost>

If I was going to apply that to a site on a computer,
like C:/sites/geobop, how would I write it - like
this?

<VirtualHost *:80>
  DocumentRoot C:/sites/geobop
  ServerName geobop
</VirtualHost>
 
And can I just choose anything for a server name? Or
would I just localhost as the servername for all the
websites on my computer?


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Getting Started With Virtual Hosts

Posted by Yakov Lerner <ya...@kavado.com>.
David Blomstrom wrote:
> I'm just starting to learn about virtual hosting and
> would like to ask a few questions. It looks like it
> might be pretty simple, but I'd like to make sure I'm
> pointed in the right direction.

I think you need NameVirtualHost directive.
The nice tutorial on VirtualHosts is at:

http://www.onlamp.com/pub/a/apache/2004/01/08/apacheckbk.html

Yakov

> 
> I'm using Dreamweaver on a Windows XP Pro platform,
> and here are some relevant paths:
> 
> C:/xampp/apache/
> C:/xampp/apache/conf/
> C:/xampp/htdocs/
> C:/sites/
> 
> For example, here are where two of my websites reside:
> 
> C:/sites/geobop/
> C:/sites/geoworld/
> 
> Please note that I am NOT planning on hosting online
> websites; I merely test my websites on my computer
> before I publish them online to my ISP.
> 
> I glanced at a couple online tutorials and
> Apache.org's instructions at
> http://httpd.apache.org/docs-2.0/vhosts/examples.html
> 
> It appears to me that I want to set up a NAME-BASED
> system.
> 
> Apache.org's server configuration instructions have
> apparently already been set up in the httpd.conf file:
> 
> #<VirtualHost *>
> #    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>
> 
> Below is my first guess towards applying this to two
> of my websites, C:/sites/geobop/ and
> C:/sites/geoworld/
> 
> #<VirtualHost *>
> #    ServerAdmin [My e-mail address]
> #    DocumentRoot C:/sites/geobop
> #    ServerName geobop
> #    ErrorLog logs/C:/sites/geobop-error_log
> #    CustomLog logs/C:/sites/geobop-access_log common
> #</VirtualHost>
> 
> #<VirtualHost *>
> #    ServerAdmin [My e-mail address]
> #    DocumentRoot C:/sites/geoworld
> #    ServerName geoworld
> #    ErrorLog logs/C:/sites/geoworld-error_log
> #    CustomLog logs/C:/sites/geoworld-access_log
> common
> #</VirtualHost>
> 
> Am I on the right track? And am I also correct in
> guessing that I don't need error logs or custom logs,
> as long I'm only hosting websites on my own computer?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Getting Started With Virtual Hosts

Posted by David Blomstrom <da...@yahoo.com>.
--- Ben Yau <by...@cardcommerce.com> wrote:

> I'm just curious, but why do you need to set up
> virtual hosting at all.  I
> was reading some of the other thread messages and
> your responses.  It
> doesn't seem like you need it.  You just need to set
> up apache and then
> access it like
> http://localhost/geobop
> http://localhost/geoworld
> http://localhost/[someothersite]
> 
> In these examples, locahost is your one and only
> servername.  YOu set the
> DocumentRoot to be c:/sites.

Aha! I looked in the Apache/conf/httpd file and found
this:

DocumentRoot "C:/xampp/htdocs"

So I could fix everything if I just changed it to
C:/sites ? I could then view my hosts with URLs like
http://localhost/geobop/index.php and
http://locahost/geoworld/index.php, right?


You could also just change your document root to 
c:/sites instead of 
the
htdocs directory
Do you use the htdocs directory for anything else?


There is one catch. I'm using a really nice
preconfigured package that includes Apache, PHP, MySQL
and several other programs. After you install it, you
can access the index page, which is linked to a series
of pages that more or less confirm that everything's
working.

I may be able to part with it eventually, but right
now it's a very convenient crutch, as I'm just
beginning to learn about this stuff. So it looks like
I have the following choices:

1) Leave DocumentRoot "C:/xampp/htdocs" as it is and
set up aliases for my websites in C:/sites.

2) Change it to DocumentRoot "C:/sites" and set up
aliases for the webpages in C:/xampp/htdocs/

3) Change the document root to C:/sites, then figure
out a way to move all the webpages from
C:/xampp/htdocs/ into C:/sites


A couple other quick questions:

1. If I change my conf/httpd file, is it true that I
have to reboot my computer before the changes will
take effect? I think I read that in the documentation,
but I don't want to waste time rebooting my computer
every time I make a change if it isn't really
necessary.

2. Do you know if I can access a copy of the conf file
online? I think I might have messed mine up, as
something isn't working. I looked at
http://httpd.apache.org/docs-2.0/ but didn't see it
mentioned.

Thanks!

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Getting Started With Virtual Hosts

Posted by Ben Yau <by...@cardcommerce.com>.
> I'm just starting to learn about virtual hosting and
> would like to ask a few questions. It looks like it
> might be pretty simple, but I'd like to make sure I'm
> pointed in the right direction.
>
> I'm using Dreamweaver on a Windows XP Pro platform,
> and here are some relevant paths:
>
> C:/xampp/apache/
> C:/xampp/apache/conf/
> C:/xampp/htdocs/
> C:/sites/
>
> For example, here are where two of my websites reside:
>
> C:/sites/geobop/
> C:/sites/geoworld/
>
> Please note that I am NOT planning on hosting online
> websites; I merely test my websites on my computer
> before I publish them online to my ISP.
>
> I glanced at a couple online tutorials and
> Apache.org's instructions at
> http://httpd.apache.org/docs-2.0/vhosts/examples.html
>


I'm just curious, but why do you need to set up virtual hosting at all.  I
was reading some of the other thread messages and your responses.  It
doesn't seem like you need it.  You just need to set up apache and then
access it like
http://localhost/geobop
http://localhost/geoworld
http://localhost/[someothersite]

In these examples, locahost is your one and only servername.  YOu set the
DocumentRoot to be c:/sites.  Then geobop and geoworld are just
subdirctories within your one server.  You can preview all your sites you're
working on this way.  You don't need to set up virtual hosts to do that.
You would have to set it up if youwanted to view the sites using different
servernames like

http://geobop/
http://geoworld/
http://[someothersite]/

which from your responses to other posts doesn't seem to be what you're
going for.

Please correct me if I'm wrong.

Ben


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org