You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by pa...@co-operativebank.co.uk on 2004/02/27 15:50:46 UTC
[users@httpd] Directive explanations
Before acting on this e-mail or opening any attachment, you are advised to read the disclaimer at the end of this mail.
Hi,
I am using Apache on the iSeries (AS400), there is a GUI that generates the
httpd.conf file. I am trying to get a better understanding of what the Apache
directives mean and how they work in the generated httpd.conf file. I have found
some directive explanations on the Apache site, I am wondering if there are any
recommended websites/books?
Some of the questions I have are:
Q1. What are these LogFormat directives and what are the various parameters here
e.g. %h, %>s, {Referer} etc.
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common
Q2. Where can I get the details on what goes into the access_log created by this
CustomLog directive? I can see there is loads of useful info in the logs. There
are error_log files created also.
CustomLog logs/access_log combined
How are these logs normally administered? Are there programs that look through
these logs and sent alerts based on the content etc..?
Q3. What do these directives do?
SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
Q4. I read the following protects the server:
<Directory />
Order Deny,Allow
Deny From all
</Directory>
I read that the Order statement says Allow all access to the Server Root
directory by default. Then the Deny seems to say, override the Allow and Deny
all users access to the Server Root directory? How do Order and Deny/Allow work?
Do the directories below the Server Root inherit from the Server Root?
There is a further <Directory> tag that sets Allow From all for the Document
Root directory.
Thanks in advance,
Pat
**********************************************************************
This e-mail is intended solely for the addressee and is strictly confidential. If you are not the addressee, please do not read, print, re-transmit, store or act in reliance on it or any attachments. Instead please e-mail it back to the sender and delete the message from your computer.
E-mail transmission cannot be guaranteed to be secure or error free and The Co-operative Bank accepts no liability for changes made to this e-mail (and any attachments) after it was sent or for viruses arising as a result of this e-mail transmission.
Any unauthorised reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message is strictly prohibited.
The Co-operative Bank reserves the right to intercept any e - mails or other communication for permitted purposes in accordance with the current legislation which you send to, or receive from, any of the employees or agents of the Bank via Bank telecommunication systems. By so corresponding you also give your consent to the Bank monitoring and recording of any correspondence using these systems.
The Co-operative Bank p.l.c. is registered in England and Wales, number 990937. The registered office is at PO Box 101, 1, Balloon Street, Manchester, M60 4EP.
**********************************************************************
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Directive explanations
Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 27 Feb 2004 patrick.odowd@co-operativebank.co.uk wrote:
> Some of the questions I have are:
> Q1. What are these LogFormat directives and what are the various parameters here
> e.g. %h, %>s, {Referer} etc.
> Q2. Where can I get the details on what goes into the access_log created
> by this CustomLog directive? I can see there is loads of useful info in
> the logs. There are error_log files created also.
http://httpd.apache.org/docs-2.0/logs.html#accesslog
http://httpd.apache.org/docs-2.0/mod/mod_log_config.html#formats
> Q3. What do these directives do?
http://httpd.apache.org/docs-2.0/env.html#special
>
> Q4. I read the following protects the server:
>
> <Directory />
> Order Deny,Allow
> Deny From all
> </Directory>
>
> I read that the Order statement says Allow all access to the Server Root
> directory by default. Then the Deny seems to say, override the Allow and
> Deny all users access to the Server Root directory? How do Order and
> Deny/Allow work? Do the directories below the Server Root inherit from
> the Server Root?
This is not the ServerRoot. It is the root of the filesystem.
There are some examples here:
http://httpd.apache.org/docs-2.0/mod/mod_access.html#order
http://httpd.apache.org/docs-2.0/howto/auth.html#whatotherneatstuffcanido
http://www.linuxplanet.com/linuxplanet/tutorials/1527/5/
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org