Topic: Install and restrict access to myWebApp
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8 MARIADB edition.
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hi,
I'm trying to install 'mywebapp' onto my iRedMail server, but am having a number of issues:
1. I initially installed 'mywebapp' under /'var/www/html' but I couldn't get the server to actually serve it, until I found that iRedMail, etc is installed under '/opt/www/' - Tried that, still didn't work.
2. I then looked at '/var/log/nginx/error.log' and saw this: [error] 17700#17700: *21 "/opt/www/roundcubemail/mywebapp/index.php" is not found (2: No such file or directory),
Of course, moving 'mywebapp' under '/opt/www/roundcube/' worked, but that dosen't seem right - especially since I want to restrict access to it (e.g. just like Apache .htaccess).
3. Resigning myself to having to use that location I then tried to add directory access restriction to '/opt/www/roundcube/mywebapp', but still can't get that to work.
Questions:
1. Why is iRedMail (and RoundCube) installed under '/opt/www' instead of '/var/www'? Maybe to obfuscate?
2. Why won't 'mywebapp' work under '/opt/www'? Why do I have to use '/opt/www/roundcube/'?
3. How can I restrict access to 'mywebapp'? Been trying 'auth_basic_user_file', but no luck.
Ideally, I'd like to install 'mywebapp' in the root web server directory, but the above is confusing.
I've only just started using Nginx as a result of not having the option to use Apache after recently installing iRedMail (which I've read only provides Nginx now).
I'm fairly sure my above issues are down to my lack of Nginx experience, but I've read many articles / forum posts to the point where I now have to put up my hand and ask for help.
I'd really appreciate it if someone could please bullet the process to install 'mywebapp' (whatever web application one might choose).
Thanks,
Derrick
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.