Hello,

I have this hostname: mail.openmbox.net
when access it as http, it will be rewrited to https (rewrite and certs setup 
by certbot automatically).

this works fine in chrome browser.

but when I access http://mail.openmbox.net in firefox, it will show the default 
site.

That's to say,

http://mail.openmbox.net/ works correctly on chrome (show the correct site and 
rewrite to https).
but it shows the default site (ubuntu default html) on firefox as you can test 
it as well.

I am totally confused. can you help? 

Thanks.

Additional info:

The version:
# apache2 -v
Server version: Apache/2.4.41 (Ubuntu)
Server built:   2022-06-14T13:30:55

The config:
<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        ServerName mail.openmbox.net
        DocumentRoot /var/www/snappy


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

  <Directory />
    Options +Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Order deny,allow
    Allow from all
    Require all granted
  </Directory>

  <Directory /var/www/snappy/data>
     Require all denied
  </Directory>

RewriteEngine on
RewriteCond %{SERVER_NAME} =mail.openmbox.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to