Archive for the ‘Apache’ Category
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
For security, you might wish to turn off the directory browsing capability on your Apache server. By doing so, you prevent users from browsing the directory structure in your web docs.
My basic httpd.conf had this entry:
<Directory "/u01/app/apache/htdocs"> Options Indexes FollowSymLinks ...
Posted in Apache | No Comments »
Tuesday, August 7th, 2007
Password Protecting a file or directory in Apache
************************************************************************
changes to the httpd.conf file:
-------------------------------
Default: This disables the processing of .htaccess files for the system.
AllowOverride None
or for a specified directory:
AllowOverride None
Change to and/or specify directory to protect:
AllowOverride All
OR
AllowOverride AuthConfig
-------------------------------
(AllowOverride parameters: AuthConfig FileInfo Indexes Limits Options)
Example httpd.conf entry for a password protected file:
-------------------------------------------------------
AuthType Basic
AuthName ...
Posted in Apache | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
in httpd.conf:
### Section 3: Virtual Hosts
#
# Use name-based virtual hosting.
#
NameVirtualHost 192.168.1.122
Listen 192.168.1.122:80
#
# VirtualHost example:
#
ServerName www.domain1.org
DocumentRoot /usr/local/apache2/domain1.org/htdocs
ServerAdmin admin@domain1.org
ErrorLog logs/domain1.error_log
CustomLog logs/domain1.access_log combined
ServerName www.domain2.net
DocumentRoot /usr/local/apache2/domain2.net/htdocs
ServerAdmin admin@domain2.net
ErrorLog logs/domain2.error_log
CustomLog logs/domain2.access_log combined
Posted in Apache | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
In httpd.conf
ProxyRequests Off <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /roller/ http://hostname:8080/roller/ ProxyPassReverse /roller/ http://hostname:8080/roller/ ProxyPass /roller http://hostname:8080/ ProxyPassReverse /roller http://hostname:8080/
Posted in Apache | No Comments »
Tuesday, August 7th, 2007
Tip courtesy of Kyle Reynolds at http://www.camelrichard.org
common Apache httpd command line options
httpd -l # shows which modules were compiled into Apache httpd -V ...
Posted in Apache | No Comments »