Wednesday 26 May 2010

CentOS v5.4 web server setting

#yum -y install httpd
#yum -y install system-config-httpd <-- GUI mode configuration
#vi /etc/httpd/conf/httpd.conf
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
Listen 80
Include conf.d/*.conf
User apache
Group apache
ServerAdmin root@localhost
ServerName www.in234.lpi:80
UseCanonicalName Off
DocumentRoot "/var/www/html"
< Directory / >
Options FollowSymLinks
AllowOverride None
< /Directory >
< Directory "/var/www/html" >
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
< /Directory >

No comments:

Post a Comment