Joomla and zend

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

Just one more time,… nobody who can help me with the following?

On Mon, Oct 8, 2012 at 3:07 PM, Sander K. [email protected] 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$ {

}
}

On 08.10.2012 10:15, Edho A. wrote:

location ^~ /web-app/ {
alias /usr/local/share/web-app/public/;
<maybe a try_files?>
location ~ .php$ {

}
}

Thanks for your answer. I’m indeed not sure how to explain it clearly.

I do have an apache config which ‘just works’ ™ would that help so
somebody could translate that config over to an nginx conf?

Sander

Hi,

On 08.10.2012 10:49, Sander K. wrote:

location ^~ /web-app/ {
alias /usr/local/share/web-app/public/;
<maybe a try_files?>
location ~ .php$ {

}
}

the apache config I use is:

<VirtualHost *>
ServerName some.website.xx
DocumentRoot /some/path/to/site
Alias /webapp /other/path/to/webapp/public
SetEnv APPLICATION_ENV env_for_webapp

In the documentroot the is a joomla website which I got working with
the config used here: http://docs.joomla.org/Nginx

Now I only need to get the webapp working which is a zend application.

So, if you go http://some.website.xx/ you get the joomla site, but if
you go to http://some.website.xx/webapp/ you need to get the webapp. I
just don’t know how to get that working.

Sander

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs