joomla and zend
Sander Klein
roedie at roedie.nl
Mon Oct 1 07:29:33 UTC 2012
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
More information about the nginx
mailing list