Tuesday, October 04, 2005

Apache Configuration

Key files in apache
/etc/rc.d/init.d/httpd start/stop/restart file
/etc/httpd/conf/httpd.conf Apache configuration file
/var/log/httpd Error and Access log files

Setting of multiple aliases in an apache server.

Code from the httpd.conf file

# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
# We include the /icons/ alias for FancyIndexed directory listings. If you
# do not use FancyIndexing, you may comment this out.
# destination Actual directory in system(this line is added by narendra)
Alias /icons/ "/var/www/icons/"

Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all

Note: If you put slash after destination than you have to put a slash after actual directory path also.

How to remove following error in postgres

# ERROR: language "plpgsql" does not exist

Solution: Issue the following command on console (command interpreter):

$ createlang plpgsql

ooooooooooooo End of the post oooooooooooooooo

No comments:

Post a Comment

Design thinking at work (Book summary)

Key things to keep in mind The essence of design thinking, in many ways, involves identifying problems by seeing things that other peo...