LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Changing Apache DocumentRoot (https://www.linuxquestions.org/questions/linux-software-2/changing-apache-documentroot-374383/)

walterbyrd 10-18-2005 03:22 PM

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?

J_K9 10-18-2005 03:30 PM

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.


All times are GMT -5. The time now is 12:34 PM.