Unix/Linux Go Back    


Red Hat 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

Red Hat


Tags
apache2, centos

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-21-2010   -   Original Discussion by programAngel
programAngel's Unix or Linux Image
programAngel programAngel is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 19 November 2016, 1:55 AM EST
Posts: 105
Thanks: 47
Thanked 0 Times in 0 Posts
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?
Sponsored Links
    #2  
Old Unix and Linux 11-21-2010   -   Original Discussion by programAngel
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 9 December 2017, 8:47 PM EST
Posts: 8,945
Thanks: 380
Thanked 1,238 Times in 1,052 Posts
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)
Sponsored Links
    #3  
Old Unix and Linux 11-21-2010   -   Original Discussion by programAngel
programAngel's Unix or Linux Image
programAngel programAngel is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 19 November 2016, 1:55 AM EST
Posts: 105
Thanks: 47
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by scottn View Post
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.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
apache2 ldap hassan1 SuSE 0 01-29-2006 01:02 PM



All times are GMT -4. The time now is 09:49 AM.