MyBB Community Forums

Full Version: Run multiple Websites on same Server via Virtualhosts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, so i want to run 2 different mybb forums on the same linux vps via apache2 Virtualhosts.

The current issue i have is, that when i want to visit forum2 (which runs on port 8082) it always redirects me to forum1 (which runs on port 8081)

I already checked the .htaccess file from forum1 and renamed it but sadly it's still redirecting...

Hopefully anyone here is able to help me, below is my vhosts.conf file for refrence:
Listen 8081
<VirtualHost *:8081>
    ServerAdmin [email protected]
    ServerName thevault.net.ru
    ServerAlias www.thevault.net.ru
    DocumentRoot /var/www/admin/data/www/ftp.thevault.net.ru/recreate_tables

    <Directory /var/www/admin/data/www/ftp.thevault.net.ru/recreate_tables/>
        Options Indexes FollowSymLinks
        # AllowOverride All
        AllowOverride None
        Require all granted
    </Directory>


    <Directory "/var/www/admin/data/www/ftp.thevault.net.ru/.well-known/acme-challenge/">
        Options None
        AllowOverride None
        ForceType text/plain
        Require all granted
    </Directory>


    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    <IfModule mod_dir.c>
        DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
    </IfModule>
</VirtualHost>


Listen 8082
<VirtualHost *:8082>
    ServerAdmin [email protected]
    ServerName genefit.to
    ServerAlias www.genefit.to
    DocumentRoot /var/www/admin/data/www/genefit.to

    <Directory /var/www/admin/data/www/genefit.to/>
        Options Indexes FollowSymLinks
        AllowOverride All
        #AllowOverride None
        Require all granted
    </Directory>


    <Directory "/var/www/admin/data/www/genefit.to/.well-known/acme-challenge/">
        Options None
        AllowOverride All
        #AllowOverride None
        ForceType text/plain
        Require all granted
    </Directory>


    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    <IfModule mod_dir.c>
        DirectoryIndex index.php index.pl index.cgi index.html index.xhtml index.htm
    </IfModule>
</VirtualHost>
This may be a daft question but have you given each forum a different cookie pre-fix?