I am facing problems when I try to implement a second separate frontend user. Right now, when I login for the different user model, I’m logged in as a regular frontend user as well.
I don’t want to use RBAC, because I want the two different kinds of users fully separate. Which means, different database tables, different session names, different login pages, and access to totally different parts and pages of the website.
I think of adding a separate "user2" entry in frontend/config/main.php, but I cannot find any similar guide on the internet. So I assume this is something not possible.
Would you consider as a good solution to add a second totally different frontend? Is it a valid solution? and if yes, is there any tutorial/how-to guide of what is needed to do this?
Unfortunately I think in the link above the instructions are not sufficient. I fully copied the frontend folder (ahead with environments/prod and environments/dev folders) to another one "frontend2", I replaced every occurence in uses/namespaces, and added the alias in common\config\bootstrap.php as mentioned in the link.
I configured my apache virtual host as well:
<VirtualHost *:2222>
DocumentRoot /var/www/mysite/frontend2/web
<Directory /var/www/mysite/frontend2/web/>
# Allow FollowSymlinks to enable RewriteRules
Options FollowSymLinks
# No option can be overwritten by .htaccess files
AllowOverride None
Order allow,deny
allow from all
# Use mod_rewrite for pretty URL support
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Unfortunately the localhost:2222 page is not working. The instructions in the above link are missing something.