Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Virtual Hosts :: logs

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Multiple SSL directives  
Author Message
jacobmarble

External


Since: Jul 01, 2003
Posts: 3



(Msg. 1) Posted: Tue Jul 01, 2003 2:21 pm
Post subject: Virtual Hosts :: logs
Archived from groups: alt>apache>configuration (more info?)

Hey all-
I have apache 2.0.46 running the following virtual hosts, plus a few
more:

<VirtualHost *>
ServerName www.awhc.org
DocumentRoot "/home/awhc/www/"
</VirtualHost>
<VirtualHost *>
ServerName awhc.org
DocumentRoot "/home/awhc/www/"
</VirtualHost>
<VirtualHost *>
ServerName www.americanwestcenter.org
DocumentRoot "/home/awhc/www/"
</VirtualHost>
<VirtualHost *>
ServerName americanwestcenter.org
DocumentRoot "/home/awhc/www/"
</VirtualHost>

I need to log the activity on these four virtual hosts _as_one_ log. Is
there a way to simply put four ServerName directives in one <VirtualHost>?
I have tried:

<VirtualHost *>
ServerName www.awhc.org
ServerName awhc.org
ServerName www.americanwestcenter.org
ServerName americanwestcenter.org
DocumentRoot "/home/awhc/www/"
</VirtualHost>

I doesn't give any errors, but simply doesn't work. Any ideas?

Thanks,

Jake

LandEZ

 >> Stay informed about: Virtual Hosts :: logs 
Back to top
Login to vote
jacobmarble

External


Since: Jul 01, 2003
Posts: 3



(Msg. 2) Posted: Tue Jul 01, 2003 6:46 pm
Post subject: Re: Virtual Hosts :: logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Nevermind this nonsense. I just learned how to use the ServerAlias
directive. New httpd.conf:
<VirtualHost *>
ServerName awhc.org
ServerAlias <a style='text-decoration: underline;' href="http://www.awhc.org" target="_blank">www.awhc.org</a> americanwestcenter.org
<a style='text-decoration: underline;' href="http://www.americanwestcenter.org" target="_blank">www.americanwestcenter.org</a>
DocumentRoot "/home/awhc/www/"
</VirtualHost>
Now I'll go and add the log directives. Have a nice day, all!

Jake

LandEZ

"Jacob Marble" <jacobmarble RemoveThis @landez.com> wrote in message
news:vg3gm6cijsi8bb@corp.supernews.com...
 > Hey all-
 > I have apache 2.0.46 running the following virtual hosts, plus a few
 > more:
 >
 > <VirtualHost *>
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.awhc.org</font" target="_blank">www.awhc.org</font</a>>
 > DocumentRoot "/home/awhc/www/"
 > </VirtualHost>
 > <VirtualHost *>
 > ServerName awhc.org
 > DocumentRoot "/home/awhc/www/"
 > </VirtualHost>
 > <VirtualHost *>
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.americanwestcenter.org</font" target="_blank">www.americanwestcenter.org</font</a>>
 > DocumentRoot "/home/awhc/www/"
 > </VirtualHost>
 > <VirtualHost *>
 > ServerName americanwestcenter.org
 > DocumentRoot "/home/awhc/www/"
 > </VirtualHost>
 >
 > I need to log the activity on these four virtual hosts _as_one_ log.
Is
 > there a way to simply put four ServerName directives in one <VirtualHost>?
 > I have tried:
 >
 > <VirtualHost *>
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.awhc.org</font" target="_blank">www.awhc.org</font</a>>
 > ServerName awhc.org
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.americanwestcenter.org</font" target="_blank">www.americanwestcenter.org</font</a>>
 > ServerName americanwestcenter.org
 > DocumentRoot "/home/awhc/www/"
 > </VirtualHost>
 >
 > I doesn't give any errors, but simply doesn't work. Any ideas?
 >
 > Thanks,
 >
 > Jake
 >
 > LandEZ
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Virtual Hosts :: logs 
Back to top
Login to vote
evilninja

External


Since: Jul 01, 2003
Posts: 4



(Msg. 3) Posted: Tue Jul 01, 2003 11:20 pm
Post subject: Re: Virtual Hosts :: logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Jacob Marble wrote:
 > Hey all-
 > I have apache 2.0.46 running the following virtual hosts, plus a few
 > more:
 >
[...]
 > I need to log the activity on these four virtual hosts _as_one_ log. Is
 > there a way to simply put four ServerName directives in one <VirtualHost>?
 > I have tried:
 >
 > <VirtualHost *>
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.awhc.org</font" target="_blank">www.awhc.org</font</a>>
 > ServerName awhc.org
<font color=purple> > ServerName <a style='text-decoration: underline;' href="http://www.americanwestcenter.org</font" target="_blank">www.americanwestcenter.org</font</a>>
 > ServerName americanwestcenter.org
 > DocumentRoot "/home/awhc/www/"
 > </VirtualHost>
 >
 > I doesn't give any errors, but simply doesn't work. Any ideas?

have you tried to give the same logile for every VirtualHost?
Apache should not complain, i it does, you could try symlinks, pointing
to the very same logile.

Christian.
--
BOFH excuse #443:

Zombie processess detected, machine is haunted.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual Hosts :: logs 
Back to top
Login to vote
jacobmarble

External


Since: Jul 01, 2003
Posts: 3



(Msg. 4) Posted: Tue Jul 01, 2003 11:20 pm
Post subject: Re: Virtual Hosts :: logs [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That's interesting, and it makes sense. I imagine that apache would
automatically see that I specified the same log file for the four virtual
hosts and then just open the one file and log to it. I think symbolic links
would cause problems, though. Apache opens a log file and locks it, doesn't
it?
Whatever... I'll just try using the same log file and see what it spits
back.

Jake

LandEZ

"Christian" <evilninja.TakeThisOut@gmx.net> wrote in message
news:2djsdb.9ct.ln@news.housecafe.de...
 > Jacob Marble wrote:
  > > Hey all-
  > > I have apache 2.0.46 running the following virtual hosts, plus a few
  > > more:
  > >
 > [...]
  > > I need to log the activity on these four virtual hosts _as_one_ log.
Is
  > > there a way to simply put four ServerName directives in one
<VirtualHost>?
  > > I have tried:
  > >
  > > <VirtualHost *>
<font color=green>  > > ServerName <a style='text-decoration: underline;' href="http://www.awhc.org</font" target="_blank">www.awhc.org</font</a>>
  > > ServerName awhc.org
<font color=green>  > > ServerName <a style='text-decoration: underline;' href="http://www.americanwestcenter.org</font" target="_blank">www.americanwestcenter.org</font</a>>
  > > ServerName americanwestcenter.org
  > > DocumentRoot "/home/awhc/www/"
  > > </VirtualHost>
  > >
  > > I doesn't give any errors, but simply doesn't work. Any ideas?
 >
 > have you tried to give the same logile for every VirtualHost?
 > Apache should not complain, i it does, you could try symlinks, pointing
 > to the very same logile.
 >
 > Christian.
 > --
 > BOFH excuse #443:
 >
 > Zombie processess detected, machine is haunted.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual Hosts :: logs 
Back to top
Login to vote
Display posts from previous:   
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 on seperate machines? - Hey Everyone, Simple question that I've not been able to figure out. I thought this was possible but now am about to accept it isn't. What I need to do is to set up a master machine with apache and then route traffic to other apache webserver based on..

virtual directories - What I'd like to do is have: {my site url} | | Folder A Folder B Where "Folder A" is "C:/Folder A", but Folder B is in C:/docs+settings/.../Folder B. Do I have to muck around in virtual hosts? How would the...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
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



[ Contact us | Terms of Service/Privacy Policy ]