 |
|
 |
|
Next: Large file upload/download using IIS
|
| Author |
Message |
External

Since: Jan 11, 2008 Posts: 10
|
(Msg. 1) Posted: Tue Feb 12, 2008 7:41 am
Post subject: Virtual Hosts Archived from groups: alt>apache>configuration (more info?)
|
|
|
Before I start I have little experience in apache and am in need of
your sound advice.
I have 2 websites pointing to my 1 ip. Now I understand that I need to
create a virtual host and I believe i have done so but get the
following error
[Tue Feb 12 15:34:00 2008] [warn] _default_ VirtualHost overlap on
port 80, the first has precedence
[Tue Feb 12 15:34:00 2008] [warn] _default_ VirtualHost overlap on
port 80, the first has precedence
Now I am trying to point my second website into a folder in my htdocs.
I have set up the virtual hosts but it still doesnt work. I am using a
windows machine with xampp. Please advise on how to fix this.
I have heard of editing a file namevirtualhosts. That doesnt exist on
my computer.
Thanks for reading and thanks if you can help.
Many Thanks
Paul >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2008 Posts: 10
|
(Msg. 2) Posted: Tue Feb 12, 2008 9:52 am
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Here is my current config
<VirtualHost *:80>
ServerName www.1website.co.uk
DocumentRoot /xampp/htdocs/
ServerAlias www.1website.co.uk
<Directory /xampp/htdocs/>
Options Indexes ExecCGI
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.2website.co.uk
DocumentRoot /xampp/htdocs/clancok/
ServerAlias www.2website.co.uk
<Directory /xampp/htdocs/2website/>
Options Indexes ExecCGI
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost> >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2008 Posts: 10
|
(Msg. 3) Posted: Tue Feb 12, 2008 9:53 am
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 12, 5:52 pm, pjg... DeleteThis @googlemail.com wrote:
> Here is my current config
> <VirtualHost *:80>
> ServerName www.1website.co.uk
> DocumentRoot /xampp/htdocs/
> ServerAliaswww.1website.co.uk
> <Directory /xampp/htdocs/>
> Options Indexes ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from All
> </Directory>
> </VirtualHost>
> <VirtualHost *:80>
> ServerName www.2website.co.uk
> DocumentRoot /xampp/htdocs/clancok/
> ServerAliaswww.2website.co.uk
> <Directory /xampp/htdocs/2website/>
> Options Indexes ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from All
> </Directory>
> </VirtualHost>
Sorry forgot to add this. That is my current config file. I dont know
what I am doing wrong maybe you can see something and help me >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2008 Posts: 10
|
(Msg. 4) Posted: Tue Feb 12, 2008 10:34 am
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 12, 6:27 pm, Luuk <L... RemoveThis @invalid.lan> wrote:
> pjg... RemoveThis @googlemail.com schreef:
>
>
>
>
>
> > Here is my current config
> > <VirtualHost *:80>
> > ServerName www.1website.co.uk
> > DocumentRoot /xampp/htdocs/
> > ServerAliaswww.1website.co.uk
> > <Directory /xampp/htdocs/>
> > Options Indexes ExecCGI
> > AllowOverride All
> > Order allow,deny
> > Allow from All
> > </Directory>
> > </VirtualHost>
> > <VirtualHost *:80>
> > ServerName www.2website.co.uk
> > DocumentRoot /xampp/htdocs/clancok/
> > ServerAliaswww.2website.co.uk
> > <Directory /xampp/htdocs/2website/>
> > Options Indexes ExecCGI
> > AllowOverride All
> > Order allow,deny
> > Allow from All
> > </Directory>
> > </VirtualHost>
>
> the line "NameVirtualHost *:80" is missing at the start.
>
> after changeing, try
>
> $ sudo apachectl -S
> to check if thing are OK
>
> --
> Luuk- Hide quoted text -
>
> - Show quoted text -
sorry to ask but it didnt seem to work could you add it to here please
<VirtualHost *:80>
ServerName www.1website.co.uk
DocumentRoot /xampp/htdocs/
ServerAlias www.1website.co.uk
<Directory /xampp/htdocs/>
Options Indexes ExecCGI
AllowOverride All
Order allow,deny
Allow from All
</Directory>
</VirtualHost>
That would be very much apreciated. >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2008 Posts: 10
|
(Msg. 5) Posted: Tue Feb 12, 2008 10:38 am
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 12, 6:27 pm, Luuk <L....RemoveThis@invalid.lan> wrote:
> pjg....RemoveThis@googlemail.com schreef:
>
>
>
>
>
> > Here is my current config
> > <VirtualHost *:80>
> > ServerName www.1website.co.uk
> > DocumentRoot /xampp/htdocs/
> > ServerAliaswww.1website.co.uk
> > <Directory /xampp/htdocs/>
> > Options Indexes ExecCGI
> > AllowOverride All
> > Order allow,deny
> > Allow from All
> > </Directory>
> > </VirtualHost>
> > <VirtualHost *:80>
> > ServerName www.2website.co.uk
> > DocumentRoot /xampp/htdocs/clancok/
> > ServerAliaswww.2website.co.uk
> > <Directory /xampp/htdocs/2website/>
> > Options Indexes ExecCGI
> > AllowOverride All
> > Order allow,deny
> > Allow from All
> > </Directory>
> > </VirtualHost>
>
> the line "NameVirtualHost *:80" is missing at the start.
>
> after changeing, try
>
> $ sudo apachectl -S
> to check if thing are OK
>
> --
> Luuk- Hide quoted text -
>
> - Show quoted text -
Actualy got it sounded a stupid question after i figured it out lol.
Now it says everything is ok but when i type in the two seperate web
addresses it still goes to the first one why would that be? >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Jan 11, 2008 Posts: 10
|
(Msg. 6) Posted: Tue Feb 12, 2008 10:51 am
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Feb 12, 6:40 pm, Luuk <L... DeleteThis @invalid.lan> wrote:
> pjg... DeleteThis @googlemail.com schreef:
>
>
>
>
>
> > On Feb 12, 6:27 pm, Luuk <L... DeleteThis @invalid.lan> wrote:
> >> pjg... DeleteThis @googlemail.com schreef:
>
> >>> Here is my current config
> >>> <VirtualHost *:80>
> >>> ServerName www.1website.co.uk
> >>> DocumentRoot /xampp/htdocs/
> >>> ServerAliaswww.1website.co.uk
> >>> <Directory /xampp/htdocs/>
> >>> Options Indexes ExecCGI
> >>> AllowOverride All
> >>> Order allow,deny
> >>> Allow from All
> >>> </Directory>
> >>> </VirtualHost>
> >>> <VirtualHost *:80>
> >>> ServerName www.2website.co.uk
> >>> DocumentRoot /xampp/htdocs/clancok/
> >>> ServerAliaswww.2website.co.uk
> >>> <Directory /xampp/htdocs/2website/>
> >>> Options Indexes ExecCGI
> >>> AllowOverride All
> >>> Order allow,deny
> >>> Allow from All
> >>> </Directory>
> >>> </VirtualHost>
> >> the line "NameVirtualHost *:80" is missing at the start.
>
> >> after changeing, try
>
> >> $ sudo apachectl -S
> >> to check if thing are OK
>
> >> --
> >> Luuk- Hide quoted text -
>
> >> - Show quoted text -
>
> > sorry to ask but it didnt seem to work could you add it to here please
>
> > <VirtualHost *:80>
> > ServerName www.1website.co.uk
> > DocumentRoot /xampp/htdocs/
> > ServerAliaswww.1website.co.uk
> > <Directory /xampp/htdocs/>
> > Options Indexes ExecCGI
> > AllowOverride All
> > Order allow,deny
> > Allow from All
> > </Directory>
> > </VirtualHost>
>
> > That would be very much apreciated.
>
> it should go before the first "<VirtualHost *:80>"
>
> for more info see:http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost
>
> --
> Luuk- Hide quoted text -
>
> - Show quoted text -
Yeah i put ut there. thank you very much. What i done was copied it
all to the bottom of httpd.conf restared (it crashed) then i took it
out restarted server and it worked. even though i had previously
restarted it. Many thanks for your help your all geniuses >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Nov 03, 2003 Posts: 2994
|
(Msg. 7) Posted: Tue Feb 12, 2008 2:06 pm
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Imported from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 23, 2007 Posts: 66
|
(Msg. 8) Posted: Tue Feb 12, 2008 2:06 pm
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
<pjg281.TakeThisOut@googlemail.com> wrote in message
news:cbc6913b-1ab1-42ba-a5e1-b29f7b5ac5d6@s12g2000prg.googlegroups.com...
> Before I start I have little experience in apache and am in need of
> your sound advice.
>
> I have 2 websites pointing to my 1 ip. Now I understand that I need to
> create a virtual host and I believe i have done so but get the
> following error
> [Tue Feb 12 15:34:00 2008] [warn] _default_ VirtualHost overlap on
> port 80, the first has precedence
> [Tue Feb 12 15:34:00 2008] [warn] _default_ VirtualHost overlap on
> port 80, the first has precedence
>
> Now I am trying to point my second website into a folder in my htdocs.
> I have set up the virtual hosts but it still doesnt work. I am using a
> windows machine with xampp. Please advise on how to fix this.
>
> I have heard of editing a file namevirtualhosts. That doesnt exist on
> my computer.
It is not a file, it is an apache directive and is required to avoid the
'overlap'.
The NameVirtualHost directive needs to match the info used in the
VirtualHost sections, it basically tells apache to look out for name based
virtual hosting on that IP/PORT combination.
NameVirtualHost <IP>:<PORT>
<VirtualHost <IP>:<PORT>>
example1:
NameVirtualHost 1.2.3.4:80
<VirtualHost 1.2.3.4:80>
ServerName server1
...
</VirtualHost>
<VirtualHost 1.2.3.4:80>
ServerName server2
...
</VirtualHost>
or example2 with wildcarded ip address:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName server1
...
</VirtualHost>
<VirtualHost *:80>
ServerName server2
...
</VirtualHost> >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2008 Posts: 9
|
(Msg. 9) Posted: Tue Feb 12, 2008 5:06 pm
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
pjg281 RemoveThis @googlemail.com schreef:
> Here is my current config
> <VirtualHost *:80>
> ServerName www.1website.co.uk
> DocumentRoot /xampp/htdocs/
> ServerAlias www.1website.co.uk
> <Directory /xampp/htdocs/>
> Options Indexes ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from All
> </Directory>
> </VirtualHost>
> <VirtualHost *:80>
> ServerName www.2website.co.uk
> DocumentRoot /xampp/htdocs/clancok/
> ServerAlias www.2website.co.uk
> <Directory /xampp/htdocs/2website/>
> Options Indexes ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from All
> </Directory>
> </VirtualHost>
>
the line "NameVirtualHost *:80" is missing at the start.
after changeing, try
$ sudo apachectl -S
to check if thing are OK
--
Luuk >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
External

Since: Feb 09, 2008 Posts: 9
|
(Msg. 10) Posted: Tue Feb 12, 2008 5:06 pm
Post subject: Re: Virtual Hosts [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
pjg281 RemoveThis @googlemail.com schreef:
> On Feb 12, 6:27 pm, Luuk <L... RemoveThis @invalid.lan> wrote:
>> pjg... RemoveThis @googlemail.com schreef:
>>
>>
>>
>>
>>
>>> Here is my current config
>>> <VirtualHost *:80>
>>> ServerName www.1website.co.uk
>>> DocumentRoot /xampp/htdocs/
>>> ServerAliaswww.1website.co.uk
>>> <Directory /xampp/htdocs/>
>>> Options Indexes ExecCGI
>>> AllowOverride All
>>> Order allow,deny
>>> Allow from All
>>> </Directory>
>>> </VirtualHost>
>>> <VirtualHost *:80>
>>> ServerName www.2website.co.uk
>>> DocumentRoot /xampp/htdocs/clancok/
>>> ServerAliaswww.2website.co.uk
>>> <Directory /xampp/htdocs/2website/>
>>> Options Indexes ExecCGI
>>> AllowOverride All
>>> Order allow,deny
>>> Allow from All
>>> </Directory>
>>> </VirtualHost>
>> the line "NameVirtualHost *:80" is missing at the start.
>>
>> after changeing, try
>>
>> $ sudo apachectl -S
>> to check if thing are OK
>>
>> --
>> Luuk- Hide quoted text -
>>
>> - Show quoted text -
>
> sorry to ask but it didnt seem to work could you add it to here please
>
> <VirtualHost *:80>
> ServerName www.1website.co.uk
> DocumentRoot /xampp/htdocs/
> ServerAlias www.1website.co.uk
> <Directory /xampp/htdocs/>
> Options Indexes ExecCGI
> AllowOverride All
> Order allow,deny
> Allow from All
> </Directory>
> </VirtualHost>
>
> That would be very much apreciated.
it should go before the first "<VirtualHost *:80>"
for more info see:
http://httpd.apache.org/docs/2.0/mod/core.html#namevirtualhost
--
Luuk >> Stay informed about: Virtual Hosts |
|
| Back to top |
|
 |  |
| Related Topics: | Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that "virtual hosts" are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apa...
Virtual hosts and SSL? - Hello I'm trying to setup this apache 1.3 server for virtual hosts, with ssl. I've got the normal port 80 working, but the SSL is a bit of a mess. If I have the SSL pages in the real part of the server, ie, https://www.example.com/fred/index.htm then....
virtual hosts... need help please - Hi NG. I'm having trouble configuring Apache to run with more than 1 host. I've read the config describtion ofcause but when I try to do what it says I can't seem to get it to work. If anyone could post the changes they have made to their httpd.conf to...
2 virtual hosts, 1 is only used - <virtualhost free-hosting.kicks-ass.net:80> servername *.free-hosting.kicks-ass.net serveralias free-hosting.kicks-ass.net ErrorDocument 500 "Server has an config error, mail the administrator! ErrorDocument 404 "File missing. virtua...
Virtual Hosts with (*) ? - HI there, I am searching for a way to access my intranet webserver like this: server.test.name server.moretest.name server.etc.name and so on. Therefore I tried: server.(*).name in httpd.conf but this does not work unfortunatelly. To access it on th... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|