[users@httpd] Re: Serve /var/www and public_html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Joshua Slive" <joshua@xxxxxxxx> writes:

[...]

>> Adding that directory specifally (..htdocs/exp) in another `Directory'
>> statement does make cgi work there but that shuold just happen with
>> the above Directory statement right?
>
> Assuming you had *no other options directives*, then yes.  Your
> problem is that you have another options directive someplace applying
> to that directory and not including execcgi.

OK, sorry to be such a pest here but let me make sure I got this
right.

There is a sort of generic default allow nothing Directory statement
over '/'.

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

So does that then mean that setting execCGI on
/var/www/localhost/htdocs will not cover 
/var/www/localhost/htdocs/subdir?

So then I'd need to edit httpd.conf for any added directories?

If that is true its sort of surprising to me.... I don't recall having
this trouble in previous setups but then I haven't ever configured for 
public_html to be active before.  I've just done all my shenanigans
right in doc_root. /var/www/localhost/htdocs

I've mentioned earlier that my purpose here is to move possibly
damaging expermentation from /var/www/localhost/htdocs to 
~/public_html because I now have need of a reliable local lan page for
the family network and don't want to disrupt it with something
misguided like. `rm -rf $htdoc/*'  and have forgotten to define
$htdocs.

Yup, I've done it at least once.

For clarity here is there really any reason not to just add everything
I need at  .. like stick a bunch of permissive stuff in there.

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

This is a single user machine.  It is on a network but there is no
chance barring a household takeover by terrorists or something that
any malicious things would be done thru the apache server.

It is shielded from the internet by a settop router/firewall.

Now some sort of mistaken action on the part of a local client could
happen but is that a real problem if I were to set:

<Directory />
    Options All execCGI
    AllowOverride All
</Directory>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux