Closed GoogleCodeExporter closed 9 years ago
Sorry, but I don't quite understand the issue. Could you attach a conf snippet?
I'm
not seeing where does the directory -specified as root for the rule- get into
the game.
Original comment by tah...@gmail.com
on 24 Nov 2008 at 8:52
Lets say you have a web app you want to install in: /home/magento/public_html
You want to publish it as: http://servername.com/magento
Magento is a PHP application.
Now the problem is; what would be the configuration, that has able torun PHP
from
/home/magento/public_html.
Original comment by ste...@konink.de
on 24 Nov 2008 at 10:15
The rule "Directory /magento, Document Root = ~magento/public_html, Handler =
common" would do it.
Original comment by alobbs
on 24 Nov 2008 at 10:20
common = List & Send right?
Now that is not working; static files as .html no problem. PHP is not able to
figure
out where that file is. (see the above trace)
Original comment by ste...@konink.de
on 24 Nov 2008 at 10:27
I have just added a new QA entry (qa/193-PHP-documentroot.py) to test it out.
It works alright.
Stefan, could you please test if it works at your end?
Original comment by alobbs
on 30 Nov 2008 at 5:52
Still no go :(
It still tries to fetch the /magento/* php files in the servers document root.
Original comment by ste...@konink.de
on 30 Nov 2008 at 8:46
I haven't touched anything in the source code.. I wrote the QA to try to
reproduce the issue, but it worked just
fine for me. That's why I wanted you to run it at your end.
Could you please run it and let me know whether it success?
cd qa ; ./run-tests.py 193-PHP-documentroot.py
Original comment by alobbs
on 30 Nov 2008 at 9:32
Success.
Original comment by ste...@konink.de
on 30 Nov 2008 at 9:36
That's an issue: that QA implements the case you exposed here - as far I have
understood it.
Could you please that a look at it, and try to get it to fail. That's the best
way to allow me to reproduce the issue
(I didn't manage to do it by hand either).
Original comment by alobbs
on 30 Nov 2008 at 9:43
vserver!10!rule!600!encoder!gzip = 1
vserver!10!rule!600!handler = fcgi
vserver!10!rule!600!handler!balancer = round_robin
vserver!10!rule!600!handler!balancer!source!1 = 1
vserver!10!rule!600!match = extensions
vserver!10!rule!600!match!extensions = php
vserver!10!rule!600!match!final = 1
vserver!10!rule!500!document_root = /home/magento/public_html/magento
vserver!10!rule!500!encoder!deflate = 0
vserver!10!rule!500!encoder!gzip = 0
vserver!10!rule!500!handler = common
vserver!10!rule!500!handler!allow_dirlist = 1
vserver!10!rule!500!handler!allow_pathinfo = 0
vserver!10!rule!500!handler!date = 1
vserver!10!rule!500!handler!group = 0
vserver!10!rule!500!handler!iocache = 1
vserver!10!rule!500!handler!size = 1
vserver!10!rule!500!handler!symlinks = 1
vserver!10!rule!500!handler!theme = firefox3
vserver!10!rule!500!handler!user = 0
vserver!10!rule!500!match = directory
vserver!10!rule!500!match!directory = /magento
vserver!10!rule!500!match!final = 1
vserver!10!rule!500!only_secure = 0
vserver!10!rule!400!document_root = /opt/cherokee/lib/cgi-bin/
vserver!10!rule!400!handler = cgi
vserver!10!rule!400!match = directory
vserver!10!rule!400!match!directory = /cgi-bin
vserver!10!rule!400!match!final = 1
Original comment by ste...@konink.de
on 30 Nov 2008 at 9:43
So if I change the rule order I do get my php file served as 'downloadable'
script.
But the extension handler clearly doesn't want to get my php file from the
document_root...
Original comment by ste...@konink.de
on 30 Nov 2008 at 9:45
I can reproduce it.
Original comment by skar...@gmail.com
on 5 Jan 2009 at 9:34
Well, after some tests, I think that I have found the "problem" (a
misconfiguration)... Stefan, could you please test setting php rule as
no-final?.
vserver!10!rule!600!match!final = 0
It works for me.
Original comment by skar...@gmail.com
on 5 Jan 2009 at 4:09
I can confirm this indeed fixes the issue. We need to have some documentation
for
this imho.
Original comment by ste...@konink.de
on 20 Jan 2009 at 3:38
Stefan, patchs and additions to doc/* are more than welcome :-)
Original comment by alobbs
on 21 Jan 2009 at 8:45
Original issue reported on code.google.com by
ste...@konink.de
on 22 Nov 2008 at 11:22