I try to do my alias which set mail.example.com to open webmail.
Could you advise me how to fix it.
This is the configuration of the virtual host
Code
- <VirtualHost ip:80>
- ServerName mail.*
- ServerAlias mail.* webmail.*
- DocumentRoot /var/www/imscp/gui/public/tools/webmail
- LogLevel error
- ErrorLog /var/log/apache2/mail/error.log
- <Directory /var/www/imscp/gui/public>
- Options +FollowSymlinks
- AllowOverride All
- RewriteEngine On
- RewriteCond %{REQUEST_FILENAME} -s [OR]
- RewriteCond %{REQUEST_FILENAME} -l [OR]
- RewriteCond %{REQUEST_FILENAME} -d
- RewriteRule ^.*$ - [NC,L]
- RewriteRule ^.*$ plugins.php [NC,L]
- Allow from all
- </Directory>
- <Location /ispLogos>
- Allow from all
- </Location>
- <LocationMatch ^/themes/.*/assets/.*$>
- Allow from all
- </LocationMatch>
- <LocationMatch ^/.*/themes/.*/assets/.*$>
- Allow from all
- </LocationMatch>
- <LocationMatch ^/.*/themes/.*/assets/.*$>
- Allow from all
- </LocationMatch>
- # SECTION php_fpm BEGIN.
- # SECTION php_fpm BEGIN.
- Alias /php5-fcgi /var/lib/apache2/fastcgi/php5-fcgi-mail.*
- FastCGIExternalServer /var/lib/apache2/fastcgi/php5-fcgi-mail* \
- -socket /var/run/php5-fpm-mail*.socket \
- -idle-timeout 300 \
- -pass-header Authorization
- # SECTION php_fpm END.
- # SECTION php_enabled END.
- </VirtualHost>
Apache shows me the following error
The requested URL /php5-fcgi/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Where I'm wrong, just point me to fix it