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
This User Gave Thanks to Scott For This 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

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tproxy CentOS 7 andreich_kms Linux 0 06-27-2018 10:42 AM
No internet on my CentOS 7 VM bluemind2005 UNIX for Beginners Questions & Answers 3 03-30-2017 10:30 AM
Sudoers in Centos shekar777 Linux 1 09-17-2015 09:45 AM
CENTOS - istat brjohnsmith Red Hat 10 11-24-2014 01:34 PM
Help using XEN in CentOS 5.9 mccabec123 Red Hat 1 06-29-2013 08:53 AM
Perfmon on centos PtaQ UNIX for Dummies Questions & Answers 2 02-13-2013 04:43 AM
RH V Centos Duffs22 Red Hat 5 11-21-2012 01:34 PM
How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation Ananthcn Red Hat 2 08-20-2012 06:07 AM
2-cpu centos 5.7 ppchu99 UNIX Benchmarks 0 03-02-2012 10:35 PM
phpmyadmin in CentOS RedLay Red Hat 2 03-09-2010 11:07 AM
CentOS 5.3 quota beaker457 Linux 1 08-30-2009 12:13 PM
All times are GMT -4. The time now is 09:03 PM.

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





Not a Forum Member?
Forgot Password?