You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Octavian Rasnita <or...@home.ro> on 2002/05/25 10:07:12 UTC
Multiple virtualhosts
Hi all,
For testing purposes, I want to configure multiple virtualhosts on the
same computer.
I want all of them to listen to port 80. Just tell me if it is possible.
Note: I use Windows 2000 and under this OS, I can't use the IP address of my
computer (192.168.0.1) and I need to use the loopback address instead.
(127.0.0.1).
Under Win 2k I can use the IP address of my network card only if I connect
another computer.
Thank you.
Teddy,
orasnita@home.ro
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple virtualhosts
Posted by "Jose Eduardo M. Neves" <ed...@netcabo.pt>.
Hello,
yes ... it's possible configure multiple virtualhosts on the same computer
best regards,
Jose Eduardo
Octavian Rasnita wrote:
>Hi all,
>
>For testing purposes, I want to configure multiple virtualhosts on the
>same computer.
>I want all of them to listen to port 80. Just tell me if it is possible.
>
>Note: I use Windows 2000 and under this OS, I can't use the IP address of my
>computer (192.168.0.1) and I need to use the loopback address instead.
>(127.0.0.1).
>
>Under Win 2k I can use the IP address of my network card only if I connect
>another computer.
>
>Thank you.
>
>Teddy,
>orasnita@home.ro
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Re Apache and PHP
Posted by Rasmus Lerdorf <ra...@apache.org>.
You would probably be better off asking this on the
php-windows@lists.php.net mailing list. You do not need to be subscribed
to post the question.
-Rasmus
On Tue, 28 May 2002, Peter wrote:
> I am trying to install php with apache 1.3 on a win98 system and cannot get
> it to work
>
> The steps I followed are:
> 1. Unpack the zip file for 4.2.1. This unpacked to directory
> c:\php-4.21-Win32
> 2. Rename directory to c:\php
> 3. Copy php4ts.dll to C:\windows\system
> 4. Copy php4apache.dll to c:\windows\system
> 5. Edit the php.ini file
> � Copy php.ini-recommended to php.ini
> � Make following changes
> � Extension directory: extension_dir = C:\php\extensions
> � Doc_root: doc_root = "C:/usr/www/my-domain"
>
> 6. copied moved to c:\usr\mibs
> 7. Edit the apache.conf file
> � Add loadmodule: LoadModule php4_module c:/php/sapi/php4apache.dll
> � Addmodule: AddModule mod_php4.c - this was placed above AddModule
> mod_so.c
> � AddType: AddType application/x-httpd-php .php .phtml .htm
> � Script Alias:
> ScriptAlias /php/ "c:/php/"
> <Directory "c:/php/">
> Allowoverride None
> Options None
> Order Allow,deny
> Allow from all
> </directory>
> 8. Start apache
> 9. Use web browser to open file:
> <html
> <body
> <?php
> print "hello world.";
> ?>
> </body
> </html>
>
> I get a blank screen in the browser, but can view the script (view source).
> There are no messages in the error log.. When I start apache in a console
> window it says:
> Apache/1.3.24 (Win32) PHP/4.2.1 running ...
> Can anyone please tell me what I missed out or got wrong?
>
> Regards
>
> Peter Goggin
>
>
>
>
> Regards
>
> Peter Goggin
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/02
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re Apache and PHP
Posted by Peter <pg...@optusnet.com.au>.
I am trying to install php with apache 1.3 on a win98 system and cannot get
it to work
The steps I followed are:
1. Unpack the zip file for 4.2.1. This unpacked to directory
c:\php-4.21-Win32
2. Rename directory to c:\php
3. Copy php4ts.dll to C:\windows\system
4. Copy php4apache.dll to c:\windows\system
5. Edit the php.ini file
· Copy php.ini-recommended to php.ini
· Make following changes
· Extension directory: extension_dir = C:\php\extensions
· Doc_root: doc_root = "C:/usr/www/my-domain"
6. copied moved to c:\usr\mibs
7. Edit the apache.conf file
· Add loadmodule: LoadModule php4_module c:/php/sapi/php4apache.dll
· Addmodule: AddModule mod_php4.c - this was placed above AddModule
mod_so.c
· AddType: AddType application/x-httpd-php .php .phtml .htm
· Script Alias:
ScriptAlias /php/ "c:/php/"
<Directory "c:/php/">
Allowoverride None
Options None
Order Allow,deny
Allow from all
</directory>
8. Start apache
9. Use web browser to open file:
<html
<body
<?php
print "hello world.";
?>
</body
</html>
I get a blank screen in the browser, but can view the script (view source).
There are no messages in the error log.. When I start apache in a console
window it says:
Apache/1.3.24 (Win32) PHP/4.2.1 running ...
Can anyone please tell me what I missed out or got wrong?
Regards
Peter Goggin
Regards
Peter Goggin
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.363 / Virus Database: 201 - Release Date: 21/05/02
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple virtualhosts
Posted by The_RadiX <th...@hotkey.net.au>.
Anyway did you get yours working??
cos when I tried to setup vhosts on my win2000 adv. serv machine with
apache1.3.24 and apache2.0.36.. (on a network) it didn't work..
as in I can always access http://machinename (in my case http://apollo on my
LAN) and all's good.. but yeah same prob..
Catch is..
If I add in let's say:
127.0.0.1 apollo
127.0.0.1 dude2
127.0.0.1 otherone
I can then goto each one http://apollo, http://dude2 or http://otherone and
they all goto same server (i think anyway. I tried abt 2 weeks ago.. can't
remember but pretty sure that worked)
anyway thing was I couldn't get the rewrite stuff working right so I kinda
gave up.. but then I learnt vhosts are much better for this..
SO lemme know how you go..
Good luck...
:::::::::::::::::::::::::::::::::::::::::::
: Julien Bonastre [The-Spectrum.org CEO]
: A.K.A. The_RadiX
: the_radix@hotkey.net.au
: ABN: 64 235 749 494
: QUT Student #: 04475739
:::::::::::::::::::::::::::::::::::::::::::
----- Original Message -----
From: "Robert Andersson" <ro...@profundis.nu>
To: <us...@httpd.apache.org>
Sent: Monday, May 27, 2002 11:10 PM
Subject: Re: Multiple virtualhosts
>
> Octavian Rasnita wrote:
>
> > Thank you all.
> >
> > However, I've tried that (That's why I am asking) but it doesn't work in
> Win
> > 2k.
> >
> > If I use something else than "localhost" as a virtualhost name, it
prompts
> > me to connect to internet.
> >
>
> Does it work if you do connect to the internet?
> The problem isn't apache, it's Windows. I'm not sure if there is a way to
> access any host, unless windows is "on-line", but you should ask that to
> some Windows gurus (which I doubt you'll find here ;-).
>
> Regards,
> Robert Andersson
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple virtualhosts
Posted by Robert Andersson <ro...@profundis.nu>.
Octavian Rasnita wrote:
> Thank you all.
>
> However, I've tried that (That's why I am asking) but it doesn't work in
Win
> 2k.
>
> If I use something else than "localhost" as a virtualhost name, it prompts
> me to connect to internet.
>
Does it work if you do connect to the internet?
The problem isn't apache, it's Windows. I'm not sure if there is a way to
access any host, unless windows is "on-line", but you should ask that to
some Windows gurus (which I doubt you'll find here ;-).
Regards,
Robert Andersson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Log File questions
Posted by Joshua Slive <jo...@slive.ca>.
JMassengill wrote:
> I am running apache 2.0.36 on a Windows 2000 server
> I have a few questions about how to manipulate the apache logs. I have read
> the documentation that came with 2.0.36 and I have also searched online, but
> most of the questions on log files have to do with Linux installs of apache.
> (yes, i do run Linux some, but i have never used a web server with Linux)
>
> 1. Is there a way that I can make the logs NOT record my IP address if i am
> trying to run an inhouse security scan of the server?
> 2. Is there a way to make the log files change every 24 hours? (I have read
> the docs and i know there is a way to do this but I am having trouble
> understanding just what to do to make it happen)
Both of your questions are answered here:
http://httpd.apache.org/docs-2.0/logs.html
If that is what is confusing you, it would help if you say specifically
what you don't understand.
Conditional logging (omitting some entries) works exactly the same on
unix and windows. Log rotation is similar, but you may need to use
slightly different commands. In particular, the quoting convention for
piped logs is a little screwey on windows.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Log File questions
Posted by JMassengill <ma...@jlm.dns2go.com>.
I am running apache 2.0.36 on a Windows 2000 server
I have a few questions about how to manipulate the apache logs. I have read
the documentation that came with 2.0.36 and I have also searched online, but
most of the questions on log files have to do with Linux installs of apache.
(yes, i do run Linux some, but i have never used a web server with Linux)
1. Is there a way that I can make the logs NOT record my IP address if i am
trying to run an inhouse security scan of the server?
2. Is there a way to make the log files change every 24 hours? (I have read
the docs and i know there is a way to do this but I am having trouble
understanding just what to do to make it happen)
Thanks in advance. Forgive me if i am being a rock head!
Johnny Massengill
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Kaan <ka...@videotron.ca>.
Thank you very much for the responces..
We are probably going to switch the dns to dyndns and pay the 30$
donation(for MyCustomDynDNS with dynamic ip update) and then we'll do
cloaking for the port number(DynDNS does this) and go from there i guess.
Thanks again,
Kaan
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, May 28, 2002 10:29 PM
Subject: Re: Url Rewriting
> Kaan wrote:
> > What if i created a dns-server and moved the www.overflow.cc to that
one.
> > Will it be possible then?
>
> The problem isn't the DNS server, it is the webserver. You need to be
> able to control the webserver answering for www.overflow.cc, and since
> your ISP blocks port 80, this is impossible. Your best choice would be
> to find another ISP or a web hosting service where you could truly
> control your website.
>
> Joshua.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Joshua Slive <jo...@slive.ca>.
Kaan wrote:
> What if i created a dns-server and moved the www.overflow.cc to that one.
> Will it be possible then?
The problem isn't the DNS server, it is the webserver. You need to be
able to control the webserver answering for www.overflow.cc, and since
your ISP blocks port 80, this is impossible. Your best choice would be
to find another ISP or a web hosting service where you could truly
control your website.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Kaan <ka...@videotron.ca>.
What if i created a dns-server and moved the www.overflow.cc to that one.
Will it be possible then?
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, May 28, 2002 10:16 PM
Subject: Re: Url Rewriting
> Kaan wrote:
> > I understand.
> > I have the machine that is hosting www.overflow.cc It is the same one as
> > http://overflow.homelinux.org:8000
> > Are you talking about the DNS machine.??
>
> Doesn't look like it to me:
> > nslookup overflow.homelinux.org
> Name: overflow.homelinux.org
> Address: 24.203.228.204
>
> > nslookup www.overflow.cc
> Name: www.overflow.cc
> Address: 66.150.5.36
>
> Obviously you can't be hosting overflow.cc on the same machine, because
> you say that machine is blocked on port 80.
>
> > lynx -head -dump http://www.overflow.cc
> HTTP/1.1 302 Object moved
> Server: Microsoft-IIS/5.0
> Date: Wed, 29 May 2002 02:15:18 GMT
> Location: http://overflow.homelinux.org:8000
> Connection: Keep-Alive
> Content-Length: 155
> Content-Type: text/html
> Cache-control: private
>
> Yep, you have some third party hosting www.overflow.cc and providing a
> redirect to your machine. You aren't hosting it yourself, so you don't
> control it.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Joshua Slive <jo...@slive.ca>.
Kaan wrote:
> I understand.
> I have the machine that is hosting www.overflow.cc It is the same one as
> http://overflow.homelinux.org:8000
> Are you talking about the DNS machine.??
Doesn't look like it to me:
> nslookup overflow.homelinux.org
Name: overflow.homelinux.org
Address: 24.203.228.204
> nslookup www.overflow.cc
Name: www.overflow.cc
Address: 66.150.5.36
Obviously you can't be hosting overflow.cc on the same machine, because
you say that machine is blocked on port 80.
> lynx -head -dump http://www.overflow.cc
HTTP/1.1 302 Object moved
Server: Microsoft-IIS/5.0
Date: Wed, 29 May 2002 02:15:18 GMT
Location: http://overflow.homelinux.org:8000
Connection: Keep-Alive
Content-Length: 155
Content-Type: text/html
Cache-control: private
Yep, you have some third party hosting www.overflow.cc and providing a
redirect to your machine. You aren't hosting it yourself, so you don't
control it.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Kaan <ka...@videotron.ca>.
I am sorry i forgot to put some info.
I do not have static ip that is why i am using DynDNS...
----- Original Message -----
From: "Kaan" <ka...@videotron.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, May 28, 2002 10:11 PM
Subject: Re: Url Rewriting
> I understand.
> I have the machine that is hosting www.overflow.cc It is the same one as
> http://overflow.homelinux.org:8000
> Are you talking about the DNS machine.??
>
> ----- Original Message -----
> From: "Joshua Slive" <jo...@slive.ca>
> To: <us...@httpd.apache.org>
> Sent: Tuesday, May 28, 2002 10:09 PM
> Subject: Re: Url Rewriting
>
>
> > Kaan wrote:
> > > i have http://overflow.homelinux.org:8000 <-- this is from dyndns
> running
> > > the webserver(my isp blocks port 80)
> > > i own www.overflow.cc
> > > www.overflow.cc is redirected to http://overflow.homelinux.org:8000
> > > i do not want my users to see redirection address on their browser. I
> want
> > > them to see www.overflow.cc
> > >
> > > How could i do this?
> >
> > This can't be done unless you directly control the server that is
> > hosting www.overflow.cc. To understand why, consider what could happen
> > if you could arbitrarily change the address in client browsers: anybody
> > could claim to be www.microsoft.com just for starters.
> >
> > Joshua.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Kaan <ka...@videotron.ca>.
I understand.
I have the machine that is hosting www.overflow.cc It is the same one as
http://overflow.homelinux.org:8000
Are you talking about the DNS machine.??
----- Original Message -----
From: "Joshua Slive" <jo...@slive.ca>
To: <us...@httpd.apache.org>
Sent: Tuesday, May 28, 2002 10:09 PM
Subject: Re: Url Rewriting
> Kaan wrote:
> > i have http://overflow.homelinux.org:8000 <-- this is from dyndns
running
> > the webserver(my isp blocks port 80)
> > i own www.overflow.cc
> > www.overflow.cc is redirected to http://overflow.homelinux.org:8000
> > i do not want my users to see redirection address on their browser. I
want
> > them to see www.overflow.cc
> >
> > How could i do this?
>
> This can't be done unless you directly control the server that is
> hosting www.overflow.cc. To understand why, consider what could happen
> if you could arbitrarily change the address in client browsers: anybody
> could claim to be www.microsoft.com just for starters.
>
> Joshua.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Url Rewriting
Posted by Joshua Slive <jo...@slive.ca>.
Kaan wrote:
> i have http://overflow.homelinux.org:8000 <-- this is from dyndns running
> the webserver(my isp blocks port 80)
> i own www.overflow.cc
> www.overflow.cc is redirected to http://overflow.homelinux.org:8000
> i do not want my users to see redirection address on their browser. I want
> them to see www.overflow.cc
>
> How could i do this?
This can't be done unless you directly control the server that is
hosting www.overflow.cc. To understand why, consider what could happen
if you could arbitrarily change the address in client browsers: anybody
could claim to be www.microsoft.com just for starters.
Joshua.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Url Rewriting
Posted by Kaan <ka...@videotron.ca>.
Heloo Eveyone,
I am a newbie to the rewrite module. I am having a little trouble with it..
:-)
Here is my setup and what i want to do.
i have http://overflow.homelinux.org:8000 <-- this is from dyndns running
the webserver(my isp blocks port 80)
i own www.overflow.cc
www.overflow.cc is redirected to http://overflow.homelinux.org:8000
i do not want my users to see redirection address on their browser. I want
them to see www.overflow.cc
How could i do this?
Thanks in advance.
Kaan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple virtualhosts
Posted by The_RadiX <th...@hotkey.net.au>.
> > Note: I use Windows 2000 and under this OS, I can't use the IP
> > address of my
> > computer (192.168.0.1) and I need to use the loopback address instead.
> > (127.0.0.1).
> >
> > Under Win 2k I can use the IP address of my network card only
> > if I connect
> > another computer.
the reason for this is because if the network (lan) adapter is disconnected
(ie not plugged in or on a LAN) it basically means the network interface
won't exist.. this therefore means that the IP for that interface (most
probably 192.168.0.1 as you've said) won't be available..
Of course the loopback will always work as you've said.. but that's why it
does that..
Easy solution? Either a create a physical loop crossover (don't ask.. a
shoddy trick with a bit of "playing" on a cat5 cable in which you cross over
the cable on itself and the computer thinks it's looking at something.. may
not work anymore due to some changes in the way NIC's work in 2k.. dunno)
or.. just use the 127.0.0.1 one :)
Ok.. that's my 2c..
:::::::::::::::::::::::::::::::::::::::::::
: Julien Bonastre [The-Spectrum.org CEO]
: A.K.A. The_RadiX
: the_radix@hotkey.net.au
: ABN: 64 235 749 494
: QUT Student #: 04475739
:::::::::::::::::::::::::::::::::::::::::::
----- Original Message -----
From: "Octavian Rasnita" <or...@home.ro>
To: <us...@httpd.apache.org>
Sent: Monday, May 27, 2002 12:54 PM
Subject: Re: Multiple virtualhosts
> Thank you all.
>
> However, I've tried that (That's why I am asking) but it doesn't work in
Win
> 2k.
>
> If I use something else than "localhost" as a virtualhost name, it prompts
> me to connect to internet.
>
> I also tried to put in my hosts file:
>
> 127.0.0.1 localhost
> 127.0.0.1 ll
>
> If I define a virtualhost named localhost, it works, but if I create
another
> one named "ll" it doesn't.
>
> Any idea?
>
> Teddy,
> orasnita@home.ro
>
> ----- Original Message -----
> From: "Chris Wik" <ch...@anu.net>
> To: <us...@httpd.apache.org>
> Sent: Sunday, May 26, 2002 5:21 PM
> Subject: Re: Multiple virtualhosts
>
>
> > Just setup a NameVirtualHost with your loopback address, then
> > you can have as many vhosts as you like after that:
> >
> > ### Section 3: Virtual Hosts
> > NameVirtualHost 127.0.0.1
> > <VirtualHost 127.0.0.1>
> > DocumentRoot /Sites
> > ServerName skittle
> > ServerAlias www.skittle.org skittle.org
> > AddHandler lasso-handler html
> > ...
> > </VirtualHost>
> > <VirtualHost 127.0.0.1>
> > ...
> > </VirtualHost>
> >
> > HTH
> > Chris.
> >
> >
> >
> > On Saturday, May 25, 2002, at 09:07 AM, Octavian Rasnita wrote:
> >
> > > For testing purposes, I want to configure multiple
> > > virtualhosts on the
> > > same computer.
> > > I want all of them to listen to port 80. Just tell me if it is
> > > possible.
> > >
> > > Note: I use Windows 2000 and under this OS, I can't use the IP
> > > address of my
> > > computer (192.168.0.1) and I need to use the loopback address instead.
> > > (127.0.0.1).
> > >
> > > Under Win 2k I can use the IP address of my network card only
> > > if I connect
> > > another computer.
> >
> >
> > --
> > Chris Wik
> > Unix Systems Admin, ANU Internet Services
> > http://www.anu.net/
> > mailto:chris@anu.net
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple virtualhosts
Posted by Octavian Rasnita <or...@home.ro>.
Thank you all.
However, I've tried that (That's why I am asking) but it doesn't work in Win
2k.
If I use something else than "localhost" as a virtualhost name, it prompts
me to connect to internet.
I also tried to put in my hosts file:
127.0.0.1 localhost
127.0.0.1 ll
If I define a virtualhost named localhost, it works, but if I create another
one named "ll" it doesn't.
Any idea?
Teddy,
orasnita@home.ro
----- Original Message -----
From: "Chris Wik" <ch...@anu.net>
To: <us...@httpd.apache.org>
Sent: Sunday, May 26, 2002 5:21 PM
Subject: Re: Multiple virtualhosts
> Just setup a NameVirtualHost with your loopback address, then
> you can have as many vhosts as you like after that:
>
> ### Section 3: Virtual Hosts
> NameVirtualHost 127.0.0.1
> <VirtualHost 127.0.0.1>
> DocumentRoot /Sites
> ServerName skittle
> ServerAlias www.skittle.org skittle.org
> AddHandler lasso-handler html
> ...
> </VirtualHost>
> <VirtualHost 127.0.0.1>
> ...
> </VirtualHost>
>
> HTH
> Chris.
>
>
>
> On Saturday, May 25, 2002, at 09:07 AM, Octavian Rasnita wrote:
>
> > For testing purposes, I want to configure multiple
> > virtualhosts on the
> > same computer.
> > I want all of them to listen to port 80. Just tell me if it is
> > possible.
> >
> > Note: I use Windows 2000 and under this OS, I can't use the IP
> > address of my
> > computer (192.168.0.1) and I need to use the loopback address instead.
> > (127.0.0.1).
> >
> > Under Win 2k I can use the IP address of my network card only
> > if I connect
> > another computer.
>
>
> --
> Chris Wik
> Unix Systems Admin, ANU Internet Services
> http://www.anu.net/
> mailto:chris@anu.net
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Multiple virtualhosts
Posted by Chris Wik <ch...@anu.net>.
Just setup a NameVirtualHost with your loopback address, then
you can have as many vhosts as you like after that:
### Section 3: Virtual Hosts
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot /Sites
ServerName skittle
ServerAlias www.skittle.org skittle.org
AddHandler lasso-handler html
...
</VirtualHost>
<VirtualHost 127.0.0.1>
...
</VirtualHost>
HTH
Chris.
On Saturday, May 25, 2002, at 09:07 AM, Octavian Rasnita wrote:
> For testing purposes, I want to configure multiple
> virtualhosts on the
> same computer.
> I want all of them to listen to port 80. Just tell me if it is
> possible.
>
> Note: I use Windows 2000 and under this OS, I can't use the IP
> address of my
> computer (192.168.0.1) and I need to use the loopback address instead.
> (127.0.0.1).
>
> Under Win 2k I can use the IP address of my network card only
> if I connect
> another computer.
--
Chris Wik
Unix Systems Admin, ANU Internet Services
http://www.anu.net/
mailto:chris@anu.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org