Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: dot conf- linux to slaved-win-drive's htdcs virtual dir? |
|
Author |
|
jsabarese
Joined: 19 May 2006 Posts: 10 Location: USA, State College
|
Posted: Fri 16 Feb '07 21:36 Post subject: dot conf- linux to slaved-win-drive's htdcs virtual dir? |
|
|
hi there.
as a convenience for programming in both environments (well, not windows-back-to-linux, but...), if i can make [ /home/user-name ] work as an "extension of" /var/www/html/ ... then how can i make /mnt/windows/apache2/apache2/htdocs/ work in a similar fashion from here in Fedora Core 5?
thanks so much!
(i'm assuming it will work in much the same way as my "home" directory, but it's been a while since i've posted here, and it's always nice to hear some commentary from "those who know")
thank you very much for your help!
|
|
Back to top |
|
jsabarese
Joined: 19 May 2006 Posts: 10 Location: USA, State College
|
Posted: Sun 18 Feb '07 5:44 Post subject: Serve Slave Windows Apache Root From Linux - Home System |
|
|
hi there. the following is what i was attempting to describe above.
it was pretty easy to achieve succuss. after a bit of trial and error, fine-tooth-comb examination of my existing
httpd.conf file ( /etc/httpd/conf/httpd.conf - Fedora Core 5), and cursory review of the docs for my specific server version (Apache 2.0), including the section which led me finally to the working version:
http://httpd.apache.org/docs/2.0/mod/core.html#directory
i came up w/ the following which works beautifully. It is my estimation that any Fedora Core / Linux user who seeks to "serve web site folders" from a "Slaved Windows Drive" might add the following to his or her httpd.conf file, restart the server, and thereafter enjoy the ability to view the "old" windows server files while working from Linux
Code: | Alias /winroot/ "/mnt/windows/Apache2/Apache2/htdocs/"
<Directory "/mnt/windows/Apache2/Apache2/htdocs">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory> |
NOTE the trailing slash is NOT used in the attribute of the <Directory> directive, but it should be consistent in the alias according to Apache documentation |
|
Back to top |
|
|
|
|
|
|