joomla and zend
Edho Arief
edho at myconan.net
Mon Oct 8 08:15:16 UTC 2012
On Mon, Oct 8, 2012 at 3:07 PM, Sander Klein <roedie at roedie.nl> wrote:
> Just one more time,... nobody who can help me with the following?
>
I think you're not clear enough what problem you encountered.
Additionally, using alias is painful.
I'm not familiar enough with Zend but I guess something like this:
location ^~ /web-app/ {
alias /usr/local/share/web-app/public/;
<maybe a try_files?>
location ~ \.php$ {
<php fcgi directives here>
}
}
> On 01.10.2012 09:29, Sander Klein wrote:
>>
>> Hi,
>>
>> I'm trying to figure out how use a zend application within a joomla
>> website which is not in the document root of a website.
>>
>> The website is located in /www/customer/some.name and the zend
>> application is located in /usr/local/share/web-app (actually
>> /usr/local/share/web-app/public). Now what I want is the web-app to be
>> accessible using http://some.name/web-app/. I figures I should use
>> something like:
>>
>> location ~ ^/web-app/ {
>> alias /usr/local/share/web-app/public;
>> }
>>
>> But I cannot get this working. I tried using root instead of alias
>> within the location tags but that didn't seem to help. Can anyone give
>> me a push in the right direction? The config I use for the joomla site
>> is below.
>>
>> server {
>> listen 80;
>> listen [::]:80;
>>
>> server_name some.name;
>> root /www/customer/some.name;
>>
>> access_log /var/log/nginx/access_some.log pic buffer=32k;
>> error_log /var/log/nginx/error_some.log;
>>
>> location / {
>> try_files $uri $uri/ /index.php?$query_string;
>> }
>>
>> location ~ \.php {
>> include /etc/nginx/includes.d/php-fpm_www;
>> include /etc/nginx/includes.d/fastcgi_params;
>> fastcgi_param PHP_VALUE "include_path=.";
>> }
>> }
>>
>> greets,
>>
>> Sander
>>
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list