Home Man
Search
Today's Posts
Register

Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

Using Apache2 in Centos

Tags
apache2, centos

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 11-21-2010
Using Apache2 in Centos

I am using a centos linux and I have installed on it apache2.
When I used ubuntu I edited the file index.html in the library /var/www
However I have seen that this is not the case in centos, so how can I create my "index.html" in centos?
do I need to edit some configuration file and tell it where is the index.html or what file it should load when someone try to access the IP in port 80?
# 2  
Old 11-21-2010
Hi.

The default "DocumentRoot" in CentOS (like Redhat) is /var/www/html.

You can set this to whatever you like by changing the "DocumentRoot" in /etc/httpd/conf/httpd.conf
The Following User Says Thank You to Scott For This Useful Post:
programAngel (11-21-2010)
# 3  
Old 11-21-2010
Quote:
Originally Posted by scottn
Hi.

The default "DocumentRoot" in CentOS (like Redhat) is /var/www/html.

You can set this to whatever you like by changing the "DocumentRoot" in /etc/httpd/conf/httpd.conf
thanks.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help using XEN in CentOS 5.9 mccabec123 Red Hat 1 06-29-2013 07:53 AM
RH V Centos Duffs22 Red Hat 5 11-21-2012 12:34 PM
How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation Ananthcn Red Hat 2 08-20-2012 05:07 AM
2-cpu centos 5.7 ppchu99 UNIX Benchmarks 0 03-02-2012 09:35 PM
Red Hat or CentOS CMD bitlord Red Hat 11 08-12-2011 10:10 AM
RS 232, CentOS 5.6, gcc 3.4.9 alter_man Programming 0 06-24-2011 08:01 AM


All times are GMT -4. The time now is 05:21 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password