|
Related Topics:
| Problem of virtual host in apache. - Hi, all I have two website in my machine, so i want to use Virtual host of Apache. The document root of site 1 is and the site 2 is First in the file..
Virtual host help apache 1.3 and freeBSD - I have been trying to get the virtual host working on my server so far When I type in the browser I get find when I type any of the IPs' I get the Apache page too display, this is all I have..
Apache Name-based Virtual Host SSL - i want to set Virtual Host SSL now i can set Basic Virtual Host not SSL like and but i want to set and too . How can i do sir ? note : i has 1 ip address on 1 server computer . thank u..
apache virtual host issues - Hi, I'm trying to set up a simple virtual host in apache, but i'm having problems with it. My current setup is this. windows 2000 Apache 2.0.4 i'm using the free service i have a dynamic ip address i use a cable modem connected to a router..
Apache Virtual Host & TCP Rejecting - Hi. I would like to know if it would be possible to tcp reject (or drop) requests that don't have a domain name, but only an IP adress. I explain myself : I run a webserver which is through two domain names : &
|
|
|
Next: append / include footer to every html page that i..
|
| Author |
Message |
External

Since: Oct 10, 2007 Posts: 2
|
(Msg. 1) Posted: Wed Oct 10, 2007 2:56 am
Post subject: Configuring Virtual host in Apache Archived from groups: alt>apache>configuration (more info?)
|
|
|
Hello,
Can u please help me set up a virtual host in Apache that
points to two different directories on a single machine.
default machine
/usr/local/apache/htdocs
next directory : /usr/local/sunil/index.html
how can i configure my virtual host in Apache to enable me point to
two different directories or two different folders. >> Stay informed about: Configuring Virtual host in Apache |
|
| Back to top |
|
 |  |
External

Since: Oct 25, 2006 Posts: 14
|
(Msg. 2) Posted: Wed Oct 10, 2007 11:27 am
Post subject: Re: Configuring Virtual host in Apache [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 10 Oct 2007 05:42:34 -0000, Sunil Chandrasekharan
<sunilsushil DeleteThis @gmail.com> wrote:
>Hello,
>
> Can u please help me set up a virtual host in Apache that
>points to two different directories on a single machine.
>
>default machine
>
>/usr/local/apache/htdocs
>
>next directory : /usr/local/sunil/index.html
>
>
>how can i configure my virtual host in Apache to enable me point to
>two different directories or two different folders.
We can help, but hey, you decided to manage a webserver,
so shouldn't you try by yourself first?
http://httpd.apache.org/docs/2.2/vhosts/ and the pages it
refers to are quite clear and do contain examples.
If you search the history of this group you will find many
more examples.
If it doesn't work, you can come back here with the error
messages you got and concrete questions.
--
( Kees
)
c[_] My software never has bugs. It just develops random features. (#51) >> Stay informed about: Configuring Virtual host in Apache |
|
| Back to top |
|
 |  |
External

Since: Jul 18, 2007 Posts: 22
|
(Msg. 3) Posted: Thu Oct 11, 2007 4:20 pm
Post subject: Re: Configuring Virtual host in Apache [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Kees Nuyt wrote:
> On Wed, 10 Oct 2007 05:42:34 -0000, Sunil Chandrasekharan
> <sunilsushil.TakeThisOut@gmail.com> wrote:
>
>> Hello,
>>
>> Can u please help me set up a virtual host in Apache that
>> points to two different directories on a single machine.
>>
>> default machine
>>
>> /usr/local/apache/htdocs
>>
>> next directory : /usr/local/sunil/index.html
>>
>>
>> how can i configure my virtual host in Apache to enable me point to
>> two different directories or two different folders.
>
> We can help, but hey, you decided to manage a webserver,
> so shouldn't you try by yourself first?
>
> http://httpd.apache.org/docs/2.2/vhosts/ and the pages it
> refers to are quite clear and do contain examples.
> If you search the history of this group you will find many
> more examples.
>
> If it doesn't work, you can come back here with the error
> messages you got and concrete questions.
Don't you think after reading the fmanual, he should then Google? Usenet
is not a personalised Google.
Then again, perhaps I missed a memo.
--
DM davidm.TakeThisOut@cia.com.au
'It would go against respecting principles and truth if you have to
respect and accept anything just because it is the other side's view.'
- Kim Jung Ill >> Stay informed about: Configuring Virtual host in Apache |
|
| Back to top |
|
 |  |
External

Since: Oct 25, 2006 Posts: 14
|
(Msg. 4) Posted: Thu Oct 11, 2007 4:20 pm
Post subject: Re: Configuring Virtual host in Apache [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 11 Oct 2007 16:20:08 +1000, David McKenzie
<davidm.RemoveThis@cia.com.au> wrote:
>Kees Nuyt wrote:
>> On Wed, 10 Oct 2007 05:42:34 -0000, Sunil Chandrasekharan
>> <sunilsushil.RemoveThis@gmail.com> wrote:
>>
[snip]
>>> how can i configure my virtual host in Apache to enable me point to
>>> two different directories or two different folders.
>>
>> We can help, but hey, you decided to manage a webserver,
>> so shouldn't you try by yourself first?
>>
>> http://httpd.apache.org/docs/2.2/vhosts/ and the pages it
>> refers to are quite clear and do contain examples.
>> If you search the history of this group you will find many
>> more examples.
>>
>> If it doesn't work, you can come back here with the error
>> messages you got and concrete questions.
>
>Don't you think after reading the fmanual, he should then Google? Usenet
>is not a personalised Google.
Yes, you are right. That's why I said: "If you search the
history of this group you will find many more examples."
I meant, search Google groups.
>Then again, perhaps I missed a memo.
I didn't see more articles in this thread. You wrote the
third one
--
( Kees
)
c[_] Building Contractors, not to be confused with homemakers (#90) >> Stay informed about: Configuring Virtual host in Apache |
|
| Back to top |
|
 |  |
External

Since: Oct 23, 2007 Posts: 1
|
(Msg. 5) Posted: Tue Oct 23, 2007 5:05 pm
Post subject: Re: Configuring Virtual host in Apache [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Oct 9, 10:42 pm, Sunil Chandrasekharan <sunilsus... DeleteThis @gmail.com>
wrote:
> Hello,
>
> Can u please help me set up a virtual host in Apache that
> points to two different directories on a single machine.
>
> default machine
>
> /usr/local/apache/htdocs
>
> next directory : /usr/local/sunil/index.html
>
> how can i configure my virtual host in Apache to enable me point to
> two different directories or two different folders.
I also would like to know how its done. I have one IP address but
would like virtual hosts to be able to redirect the traffic to the
correct folder depending on the url. i have read the apache docs, but
the config still doesnt work
NameVirtualHost *:80
<Directory />
Options All -Indexes
</Directory>
<VirtualHost *:80 >
DocumentRoot /var/www/html/example.one.com
ServerName www.example.one.com
ErrorLog logs/error_log
CustomLog logs/access_log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin salma DeleteThis @wisecrack.ca
DocumentRoot /var/www/html/dev.example.one.com
ServerName dev.example.one.com
ErrorLog logs/dev_error_log
CustomLog logs/dev_access_log combined
</VirtualHost> >> Stay informed about: Configuring Virtual host in Apache |
|
| Back to top |
|
 |  |
External

Since: Oct 25, 2006 Posts: 14
|
(Msg. 6) Posted: Wed Oct 24, 2007 11:15 am
Post subject: Re: Configuring Virtual host in Apache [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Tue, 23 Oct 2007 17:05:57 -0700, salmalalji.RemoveThis@gmail.com
wrote:
>On Oct 9, 10:42 pm, Sunil Chandrasekharan <sunilsus....RemoveThis@gmail.com>
>wrote:
>> Hello,
>>
>> Can u please help me set up a virtual host in Apache that
>> points to two different directories on a single machine.
>>
>> default machine
>>
>> /usr/local/apache/htdocs
>>
>> next directory : /usr/local/sunil/index.html
That's not a directory.
>> how can i configure my virtual host in Apache to enable me point to
>> two different directories or two different folders.
>
>I also would like to know how its done. I have one IP address but
>would like virtual hosts to be able to redirect the traffic to the
>correct folder depending on the url. i have read the apache docs, but
>the config still doesnt work
>
>NameVirtualHost *:80
><Directory />
> Options All -Indexes
></Directory>
>
><VirtualHost *:80 >
>
> DocumentRoot /var/www/html/example.one.com
> ServerName www.example.one.com
> ErrorLog logs/error_log
> CustomLog logs/access_log combined
></VirtualHost>
>
><VirtualHost *:80>
> ServerAdmin salma.RemoveThis@wisecrack.ca
> DocumentRoot /var/www/html/dev.example.one.com
> ServerName dev.example.one.com
> ErrorLog logs/dev_error_log
> CustomLog logs/dev_access_log combined
></VirtualHost>
The config looks ok.
Anything in the logs?
Did you restart apache after the changes?
Does it run? Or does it refuse to start due to other
errors. Running httpd -t will check the correctness of
httpd.conf.
Do the directories actually contain a default document
(e.g. index.html or whatever you defined)?
Do the requests reach your box to begin with?
--
( Kees
)
c[_] Dyslexics of the World, Untie! (#457) >> Stay informed about: Configuring Virtual host in Apache |
|
| Back to top |
|
 |  |
|