Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RedHat and Web Server File Locations

Posted on 2012-04-02
2
Medium Priority
?
689 Views
Last Modified: 2012-04-02
I have a RedHat web server that is running a website.  How do i find the locate of the web site files?
0
Comment
Question by:deklinm
2 Comments
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 2000 total points
ID: 37797479
Hi,

By dedault the document root is located under  /var/www/html for RedHat servers. If you want to see the actual location you can query the contents of your /etc/httpd/conf/httpd.conf file for DocumentRoot variable. such as:


[root@xxxx ~]# grep DoscumentRoot /etc/httpd/conf/httpd.conf 

Open in new window


The output should be something similar to this:

# DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
# This should be changed to whatever you set DocumentRoot to.

Open in new window


Cheers,
K.
0
 
LVL 84

Expert Comment

by:Dave Baldwin
ID: 37797484
That depends on how the web server is set up.  The Virtual Hosts settings can place the web files almost anywhere and if you have user directory hosting enabled, then each user under /home could have their own web site, usually in /home/~user/public_html .  Some more info here:  http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/3/html/System_Administration_Guide/s1-httpd-virtualhosts-settings.html
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question