Welcome Guest, Not a member yet? Register   Sign In
Multiple Public Folders
#1

Is it possible to have multiple public folders with some sort of way to differentiate them to the database and stored files but they still use the 'app' folder?
Example:
Public_1 - Example.com
Public_2 - Sample.org
Public_3 - Website.net
Etc...
Any guidance would be greatly appreciated!
Reply
#2

Please read:
CodeIgniter 4 User Guide - Running Multiple Applications with one CodeIgniter Installation
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(08-14-2021, 01:24 AM)InsiteFX Wrote: Please read:
CodeIgniter 4 User Guide - Running Multiple Applications with one CodeIgniter Installation

Hello,
Thank you for the response but this does not answer my question. I have read this in the past. This is geared toward running off the same system installation. No multiple public folders using the same same code and appearing as a different website.

Do you have any suggestions for that?
Reply
#4

(This post was last modified: 08-15-2021, 09:26 AM by John_Betong.)

@jsurp2001,

With Linux Ubuntu you could possibly omit the "www." domain name configuration alias and create a separate Virtual Host Directory:

Code:
<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName ci4-strict.tk
    # ServerAlias www.ci4-strict.tk
    DocumentRoot /var/www/ci4-strict.tk/public_html
    <Directory /var/www/ci4-strict.tk/public_html/>
       Options +FollowSymlinks
   </Directory>
</VirtualHost>

And using the Alias to point towards public-www
Code:
<VirtualHost *:80>
    ServerAdmin [email protected]
    # ServerName ci4-strict.tk
    # ServerAlias www.ci4-strict.tk
    ServerName www.ci4-strict.tk
    DocumentRoot /var/www/ci4-strict.tk/public_www
    <Directory /var/www/ci4-strict.tk/public_www/>
       Options +FollowSymlinks
   </Directory>
</VirtualHost>
Reply
#5

Thank you.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB