Welcome! Log In Create A New Profile

Advanced

Re: Multiple sites under same domain with one app codebase

Francis Daly
July 18, 2014 10:52AM
On Fri, Jul 18, 2014 at 09:40:43AM -0400, martyparish wrote:

Hi there,

> I have many separate "sites" to run and they all use the same back end
> application(opencart). They also will be under the same domain, in folders.
> I don't want to duplicate the application code in each subdirectory.

It is not clear to me exactly what you have, and what you have working,
and what you have not working.

Could you give some specific examples?

So:

If I request /site1/img/file.png, what file on the filesystem should
nginx send me; or what file on the filesystem should nginx invite a
fastcgi server to process?

/usr/local/nginx/html/site1/img/file.png; or
/usr/local/nginx/html/img/file.png, or something else?

If I request /site2/dir/file.php -- same question?

And in each case: if that file does not exist, what should happen? 404
or other failure, or fall back to a specific other file?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Multiple sites under same domain with one app codebase

martyparish July 18, 2014 09:40AM

Re: Multiple sites under same domain with one app codebase

martyparish July 18, 2014 09:53AM

Re: Multiple sites under same domain with one app codebase

Francis Daly July 18, 2014 10:52AM

Re: Multiple sites under same domain with one app codebase

martyparish July 18, 2014 11:17AM

Re: Multiple sites under same domain with one app codebase

itpp2012 July 18, 2014 11:50AM

Re: Multiple sites under same domain with one app codebase

martyparish July 18, 2014 12:08PM

Re: Multiple sites under same domain with one app codebase

martyparish July 18, 2014 12:23PM

Re: Multiple sites under same domain with one app codebase

itpp2012 July 18, 2014 01:12PM

Re: Multiple sites under same domain with one app codebase

martyparish July 18, 2014 01:21PM

Re: Multiple sites under same domain with one app codebase

itpp2012 July 18, 2014 02:21PM

[SOLVED] Re: Multiple sites under same domain with one app codebase

martyparish July 19, 2014 10:32AM

Re: [SOLVED] Re: Multiple sites under same domain with one app codebase

martyparish July 19, 2014 10:34AM

Re: [SOLVED] Re: Multiple sites under same domain with one app codebase

Edho Arief July 19, 2014 10:42AM

Re: [SOLVED] Re: Multiple sites under same domain with one app codebase

martyparish July 19, 2014 10:51AM

Re: [SOLVED] Re: Multiple sites under same domain with one app codebase

Edho Arief July 19, 2014 10:58AM

Re: [SOLVED] Re: Multiple sites under same domain with one app codebase

martyparish July 20, 2014 02:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 278
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