Re: internal redirects error

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

 



* Igor Cicimov <icicimov@xxxxxxxxx> [101110 15:41]:
> "AllowOverride all" so maybe some redirection in .htaccess file in that
> directory causing infinite loop?
> 
> Try setting it to None instead and see if the problem goes away. Then you'll
> know the problem is in the .htaccess file for sure.
  Yes, that solves that problem, but creates another: now a
  ScriptAlias directive fails. 
  So now I have the following in total:
    ScriptAlias /reg/ /home/http/py/
    <Directory "/home/http/py">
        <IfModule mod_dir.c>
            DirectoryIndex pyindex.py
        </IfModule>
        #AllowOverride all
        ## Scriptalias will not work with AllowOverride set to 'None'
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>
  Now if I point the browser to http://localhost/py, pyindex.py executes,
  but if I point the browser to http://localhost/reg I get
"You don't have permission to access /reg/ on this server."
.htaccess is as follows:
# begin
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ ./pyindex.py/$1 [L,QSA]
# end

  *However* I really don't need the ScriptAlias. But this is a learning
  experience for me.
  Thank you. 

-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

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