Currently I am using modules to write multiple sites/applications on top of the same fuel instance. All my base dev setups are working fine, starting to run into issues as I try to setup to serve all apps together off same server(s) with nginx.
Right now I have the following applications/modules => admin, public, auth
Currently I have default route to go to auth/login, assuming people will be logging into the admin application.
I have a separate domain, lets call it puplicApp.com that I would like to map to the public module acting as a public facing website/app.
Here is a nginx config fragment which seems like it should work but still serves up the default _root_ value pointing to auth/login based on my routes.php config:
-------------------------
root /var/www/fuel_root_dir;
index index.php index.html index.htm;
charset utf-8;
server_name publicApp.com;
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
location / {
try_files $uri $uri/ /index.php?/public/$request_uri;
----------------------
Anyone setup multiple sites/domains to map to different modules? Is this an issue that has to be solved in routes.php config setup.. ie: do I need to have _root_ configs for each module?
What I have been trying to accomplish with my fuel usage is everything is shared and modules would be the separation between apps. Sounds like I have been approaching it wrong. Shared app/models/packages/ has been my goal.
With your suggestions above could I share my app/* between sites?
In my current application setup I have the following modules:
-admin
-partner
-api
-public
The way I am defining "site" is that each of those modules is one. I have admin, partner, and api setup as subdomains for my main domain. I have another domain that I would like to run as a main public website.
The sub-domain approach has worked well in my first attempts.., but attempting to pass the public module domain gets miss-directed by the _root_ route value.
I would like to avoid going the REST route just to share models and data. I might try to put some customization in that allows for work-around for the _root_ route config
It looks like you're new here. If you want to get involved, click one of these buttons!