Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-18-2005, 04:22 PM   #1
Registered: Apr 2004
Posts: 668

Rep: Reputation: 45
Changing Apache DocumentRoot

This is for a small home intranet.

I run windows and linux on the same system. Most of my drive is a big fat32 partition where I keep data for both systems.

I use xampp to install apache on both OSes. I would like other PCs on the intranet to have access the same files from apache, whether I am booted to windows, or linux.

In the windows httpd.conf file, there is section that reads:

# This should be changed to whatever you set DocumentRoot to.
<Directory "C:/Program Files/xampp/htdocs">

That is obviously on the windows side, the linux side is similar. Can I change this one line to read:

<Directory "D:/htdocs">

And have Apache access my html files there? Or are there other changes that I need to make in the httpd.conf file?
Old 10-18-2005, 04:30 PM   #2
Registered: Nov 2004
Distribution: Slackware 11, Ubuntu 6.06 LTS
Posts: 700

Rep: Reputation: 30
AFAIK, that is the only change you should need to make to alter the DocumentRoot directory. Make sure you set it as <Directory "hdx1/Program Files/blah..."> on the Linux one though.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache DocumentRoot problem elliottsb Linux - Software 6 02-24-2005 10:40 PM
Apache httpd DocumentRoot question orange400 Linux - General 7 05-24-2004 04:41 AM
how to change apache documentroot tr3s Red Hat 6 08-31-2003 11:34 AM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 06:39 PM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 01:04 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration