LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-18-2005, 03:22 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
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, 03:30 PM   #2
J_K9
Member
 
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.

M.
 
  


Reply


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 09:40 PM
Apache httpd DocumentRoot question orange400 Linux - General 7 05-24-2004 03:41 AM
how to change apache documentroot tr3s Red Hat 6 08-31-2003 10:34 AM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 05:39 PM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 AM.

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