[mdlug] Apache and Config for files outside of www dir
Brian
fativi at gmail.com
Wed Aug 25 09:03:47 EDT 2010
NFS to replace symlinks? That's a bit like swatting a fly with a scud missle
:) Honestly there shouldn't be any problems with using symlinks so long as
the apache config allows it and the user that runs apache has access to your
projects folder.
On Aug 25, 2010 8:35 AM, "Evan Carew" <elcarew at sbcglobal.net> wrote:
> -----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-----
>
> _______________________________________________
> mdlug mailing list
> mdlug at mdlug.org
> http://mdlug.org/mailman/listinfo/mdlug
More information about the mdlug
mailing list