Welcome! Log In Create A New Profile

Advanced

Re: joomla and zend

Edho Arief
October 08, 2012 04:16AM
On Mon, Oct 8, 2012 at 3:07 PM, Sander Klein <roedie@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@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

joomla and zend

Sander Klein October 01, 2012 03:30AM

Re: joomla and zend

Sander Klein October 08, 2012 04:10AM

Re: joomla and zend

Edho Arief October 08, 2012 04:16AM

Re: joomla and zend

Sander Klein October 08, 2012 04:50AM

Re: joomla and zend

Sander Klein October 08, 2012 05:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 306
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready