[mdlug] Apache and Config for files outside of www dir
Evan Carew
elcarew at sbcglobal.net
Wed Aug 25 08:28:42 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You know, I'm interested in this topic as well. Professionally, I do web
development for FRY and Grandriver of Ann Arbor, and I had trouble
getting my new FC11 laptop config to work in an office environment the
way I wanted it to. A rather frustrating experience for someone who has
used Linux for the last 10 years. Much like the originator of this
thread, I wanted to do web development outside of /var/www, in this
case, my /home/me/Projects directory. I was under the impression that I
could use soft links, or aliases, but nothing worked. There was always
some security complaint from Apache. Out of frustration I eventually
ended up using NFS with the squash all parameter. That fixed it, but at
a performance cost I'm still not happy about. If anyone is currently
using an alternative method which actually works (example httpd.conf
would be appreciated) I think we could all benifit.
On 08/10/2010 11:52 AM, Wojtak, Greg wrote:
> Instead of creating a soft link, you could, in your httpd.conf, do
>
> Alias /mystuff/ /media/mydrivename/mystuff/
>
> Then you might need a Directory entry for /mystuff/
>
> <Directory /media/mydrivename/mystuff>
> Options Indexes
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> You may need to tweak some of the directives in the
<Directory></Directory> block, but that should be a relatively
straightforward method of doing what you are trying to do.
>
> Greg
>
> -----Original Message-----
> From: mdlug-bounces at mdlug.org [mailto:mdlug-bounces at mdlug.org] On
Behalf Of gib at juno.com
> Sent: Tuesday, August 10, 2010 10:28 AM
> To: mdlug at mdlug.org
> Subject: [mdlug] Apache and Config for files outside of www dir
>
> I'm trying to set up my web server to allow me to have the files on my
large drive assessable. I'm running into what, I assume, is a security
issue that someone would be able help with.
>
[snip]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEUEARECAAYFAkx1DHcACgkQpxCQXwV2bJCoaQCbBKPXHMMhMiXG0l4YFZKHX/r1
QKcAmNeenJX3pmGm8k/oH4BFXklMd/8=
=2DOm
-----END PGP SIGNATURE-----
More information about the mdlug
mailing list