Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access.log, apache won't start

Status
Not open for further replies.

maximos

Technical User
Sep 27, 2002
109
CA
Hi all, i'm using apache2, and i'm tring to have seperate access.log for each virtual hostname, here is what i tried but apache won't start

<VirtualHost *>
ServerName localhost
DocumentRoot &quot;C:/Apache2/htdocs&quot;
#CustomLog logs/access.log
ServerAdmin webmaster@mycompany.com
<Directory &quot;C:/Apache2/htdocs&quot; >
Options Indexes IncludesNOEXEC
Order allow,deny
Allow from all
TransferLog c:/apache2/logs/access.log
</Directory>
</VirtualHost>

Another silly questin, what is the difference between Cutomlog and transferlog ?

what am i doing wrong that make apache won't start with the transferlog line in, if i take it out, it will start with no problem,

Thanks alot in advance

Maximos Tadros
 
First move that TransferLog out of the Directory directive up into the VirtualHost directive then try again.

<VirtualHost *>
ServerName localhost
DocumentRoot &quot;C:/Apache2/htdocs&quot;
#CustomLog logs/access.log
TransferLog c:/apache2/logs/access.log
ServerAdmin webmaster@mycompany.com
<Directory &quot;C:/Apache2/htdocs&quot; >
Options Indexes IncludesNOEXEC
Order allow,deny
Allow from all
TransferLog c:/apache2/logs/access.log
</Directory>
</VirtualHost>

That will help things a bit

Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top