# Joomla and zend

**URL:** <https://www.ruby-forum.com/t/joomla-and-zend/223348>\
**Category:** NGINX\
**Created:** [October 1, 2012, 9:30am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348 "2012-10-01T09:30:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 1, 2012, 9:30am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348/1 "2012-10-01T09:30:15Z")

</div>

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/](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

---

<div class="post-metadata">

**Author:** ![Sander\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@Sander\_K](https://www.ruby-forum.com/u/Sander_K)\
**Post date:** [October 8, 2012, 10:08am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348/2 "2012-10-08T10:08:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sander\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@Sander\_K](https://www.ruby-forum.com/u/Sander_K)\
**Post date:** [October 8, 2012, 10:16am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348/3 "2012-10-08T10:16:26Z")

</div>

On Mon, Oct 8, 2012 at 3:07 PM, Sander K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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$ {  
  
}  
}

---

<div class="post-metadata">

**Author:** ![Sander\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@Sander\_K](https://www.ruby-forum.com/u/Sander_K)\
**Post date:** [October 8, 2012, 10:50am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348/4 "2012-10-08T10:50:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sander\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@Sander\_K](https://www.ruby-forum.com/u/Sander_K)\
**Post date:** [October 8, 2012, 11:07am UTC](https://www.ruby-forum.com/t/joomla-and-zend/223348/5 "2012-10-08T11:07:51Z")

</div>

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](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/](http://some.website.xx/) you get the joomla site, but if  
you go to [http://some.website.xx/webapp/](http://some.website.xx/webapp/) you need to get the webapp. I  
just don’t know how to get that working.

Sander
