[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Apache v1.3 configuration
|
I can help with the last part regarding the logging of which virthost.
You can create a single virthost entry (foo.com), then use ServerAlias
for all the additional domains that also point to it (foo2.com,
foo3.com, and so on).
By default, you probably have something like this in main config for
the "combined" log format:
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
Well, there is a log format variable for the virthost being requested,
Its %V. So change the LogFormat for "combined" to:
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
Then in your virthost directive, you just have:
CustomLog /home/user/logs/access.log combined
And thats it!
-John Von Essn
On Sep 7, 2005, at 3:49 PM, Jim Kelly wrote:
I have a couple questions about Apache v1.3 configuration:
1. What's the best way to redirect all domain calls from domain1.com
to domain2.com?
I've read the docs at
<http://httpd.apache.org/docs/1.3/misc/rewriteguide.html> and what I'm
doing seems to be canonical hostname, but I'm hesitant to enter the
example as shown because I don't understand all the symbols used. I
need like a guide to the user guide! (Pointers to web site
documentation or good books to decipher this stuff are greatly
appreciated! I haven't found an "Apache Administration for Dummies"
book yet.)
2. I want to use AWstats to analyze the log files. Are you using the
common log file, combined log file format, or something else? While
we're at it, are you using AW Stats or something else?
3. With virtual hosts, I've got a friend with 8 domains that he wants
to point to the same set of web pages. Of course, he wants to see in
the log file which domain is the most popular of the 8. Should I make
vhost entries for each of them or is there an easier way?
Thanks a bunch for your help!
Jim (the newbie)
_______________________________________________________________________
____
Philadelphia Linux Users Group --
http://www.phillylinux.org
Announcements -
http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion --
http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|