Vamsi Pavan’s Place

When curiousity outbursts …..

Apache configuration

August 5th, 2005 · No Comments · Linux

You need to make these changes to your /etc/httpd/conf/http.conf file in super user mode.
You need to comment off the line:

UserDir disable

and instead put

UserDir public_html

In addition, you need to add:

Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch Includes
Limit GET POST OPTIONS>
Order allow,deny
Allow from all
/Limit>
LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
/LimitExcept>
/Directory>

TO make cgi scripts work, you need the following:

Directory “/home/*/public_html/cgi-bin”>
AllowOverride None
Options execCGI
Order allow,deny
Allow from all
/Directory>

AddHandler cgi-script .cgi

Besides, the following are the min’m permissions required for the directories’ hierarcy:

711 /home/pavan
711 /home/pavan/public_html
711 /home/pavan/public_html/cgi-bin

I hope you can understand above permissions are for the user named ‘pavan’.

Bookmark it! These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Live
  • StumbleUpon
  • BlinkList
  • YahooMyWeb
  • NewsVine
  • blogtercimlap
  • Netvouz
  • Technorati
  • Slashdot
  • Print this article!

Tags:

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment