Sunday, June 29, 2008

If site is showing default apache page

1)pico /etc/httpd/conf/httpd.conf

search for that particular domain entry. if not found add it
e.g



ServerAlias www.domain name
ServerAdmin webmaster@domain name
DocumentRoot /home/user/public_html/
User user
Group user
ServerName domain name

User user
Group user
BytesLog /usr/local/apache/domlogs/domainname-bytes_log
CustomLog /usr/local/apache/domlogs/domainname combined
ScriptAlias /cgi-bin/ /home/username//public_html/cgi-bin/


then save and exit
# service httpd configtest
# service httpd restart

No comments: