OS: Debian 11
Flarum: 1.5.0
PHP: 8.0.15
MySQL: 10.5.15-MariaDB
For reverse proxy servers nginx, I have prepared the domain www.example.com with ssl. I have an apache2 web server with many websites behind a reverse proxy.
I installed flarum today.
Installation procedure:
I created a DB for flarum in mySQL.
Next
curl -sS https://getcomposer.org/installer -o composer-setup.php
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
cd /var/www/www.example.com
sudo composer create-project flarum/flarum . --stability=beta
sudo chown -R www-data:www-data /var/www/www.example.com/
sudo chmod -R 755 /var/www/www.example.com/
When I open in the browser
https://www.example.com
so I see directory: public, storage, vedor and files: config.php, nginx.conf, site.php etc ... Next I moved to directory public
https://www.example.com/public
everything works there.
I want the forum to work in https://www.example.com
I tried various possibilities
I modified the config file for apache2
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/www.example.com/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RemoteIPHeader X-Real-IP
RemoteIPInternalProxy 192.168.20.10
<Directory "/var/www/www.example.com/public">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I will write in the browser so I see
Flarum forum
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
All Discussions
According to https://discuss.flarum.org/d/17977-forum-public-why-not-just-forum/8
I tried it too, old school and uncommon but great but it never works.
I don't know where I'm doing wrong. I want the forum to work on www.example.com