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? |
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. |