RE: script alias / directory woes

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

 



>> From: Jeff Fulmer [mailto:jeff@xxxxxxxxxx]
>> Sent: Wednesday, July 18, 2007 9:10 AM
>> >> From: Jeff Fulmer [mailto:jeff@xxxxxxxxxx]
>> >> Sent: Wednesday, July 18, 2007 7:03 AM
> <snip>
>> >> ScriptAlias /bin "/usr/local/data/redirect/bin"
>> >> <Directory "/usr/local/data/redirect/bin">
>> >>   AllowOverride None
>> >>   Options ExecCGI
>> >>   Order allow,deny
>> >>   Allow from all
>> >> </Directory>
>> >>
>> >> My problem lies in the execution of scripts in subdirectories. In
>> >> other words,
>> >>
>> >> /bin/haha executes just fine.
>> >>
>> >> But /bin/papa/haha does not. In fact, I get a 404 error that
>> >
>> > I *think* you need +ExecCGI
>
> Wait - I'm reading this more closely this time. Did you mean
> /bin/haha/whatsit.cgi
> works, but that
> /bin/haha/papa/whatsit.cgi
> doesn't? From what I've just read, <url>/bin/papa/whatsit.cgi should
> work.
>
> Also - is the directory you've aliased as /bin (cgi-bin would be a
> better name) under the doc root? According to apache docs, it must not
> be.
>

Here's the directive:

ScriptAlias /bin "/usr/local/data/redirect/bin"
<Directory "/usr/local/data/redirect/bin">
   AllowOverride None
   Options ExecCGI
   Order allow,deny
   Allow from all
</Directory>

It is NOT under the doc root. Your summary is not quite correct. I'll add
extentions to the script names so that it's clear:

/bin/haha.cgi executes correctly.
/bin/papa/haha.cgi returns a 404 error.

Jeff


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