Welcome! Log In Create A New Profile

Advanced

Folders in same level (Joomla + HRM)

Posted by fabiofbra 
Folders in same level (Joomla + HRM)
July 30, 2014 01:16AM
Hello Everyone,

I have:
..public_html\abc - Joomla (mais website)
..public_html\hrm - OragemHRM
..public_html\test - generic php folder

Nginx Conf
server{
....
root /home/public_html/abc;
index index.php index.html index.htm default.html default.htm;

location / {
try_files $uri $uri/ /index.php?q=$request_uri;
}

location /test {
root /home/public_html;
}

# Config form OrangeHRM
location /hrm {
root /home/public_html;
}

location /sf/ {
root /home/public_html/hrm/symphony/lib/vendor/symfony/data/web/;
}


Using this configuration, Joomla works fine (location /) but the others locations (folders) doesn't.
if i change the server root from:
root /home/public_html/abc;
to
root /home/public_html;

All folders (hrm and generic php) works fine, but joomla doesn't!
How can I control root's config for different locations?

In my old nginx server I had every folder inside joomla folder (like public_html\abc\hrm) - and everything worked great but for administration it was complicated.

Very thanks
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready