Page 1 of 1

/webmail is showing 404 error

Posted: Mon Oct 04, 2021 9:23 am
by vestavpsuser
Hi guys
I am using Vesta cpanel on an Ubuntu 18.0 with PHP 7.4
I am running Apache2+nginx
I recently realized the roundcube stopped working on webmail. Then I tried to re-install the roundcube but no luck.
What I have done:
command:

Code: Select all

 apt-get install roundcube
then followed the installation steps.Everything ran as expected during the installation.
then I added:
/etc/apache2/sites-available/roundcube.conf

Code: Select all


<VirtualHost *:443>
     ServerAdmin [email protected]
     DocumentRoot /usr/share/roundcube
     ServerName mydomain.com/webmail

     <Directory /usr/share/roundcube/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>


and NginX config:
located at: /etc/nginx/conf.d/webmail.inc

Code: Select all


location /webmail {
    alias /usr/share/roundcube/;

    location ~ /(config|temp|logs) {
        return 404;
    }

    location ~ ^/webmail/(.*\.php)$ {
        alias /usr/share/roundcube/$1;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $request_filename;
    }
}


After all of above installation Im facing 404 error when opening the https://mydomain.com/webmail

Can you guys please help?

Re: /webmail is showing 404 error

Posted: Sat Oct 09, 2021 3:08 am
by singamda
+1 Not working after clean install on centos showing 404 error