Thanks. So I know that it's due to 000-default.conf was using the system
hostname as its default virtual server.
And my system hostname is just same as web domain name.
# hostname
mail.openmbox.net
After I removed 000-default.conf the site does work.
Thanks a lot.
November 11, 2022 at 9:27 P
On Fri, Nov 11, 2022 at 8:27 AM wrote:
>
> Hello
>
> # rm -f 000-default.conf
> # service apache2 restart
>
> After I removed 000-default.conf the site http://mail.openmbox.net just works.
> so the reason is due to 000-default.conf? we should remove this file in a
> regular webserver?
If the sys
Hello
# rm -f 000-default.conf
# service apache2 restart
After I removed 000-default.conf the site http://mail.openmbox.net just works.
so the reason is due to 000-default.conf? we should remove this file in a
regular webserver?
Thanks.
November 11, 2022 at 9:19 PM, "Eric Covener" wrote:
> As you see, these two lines of output are quite strange:
> default server mail.openmbox.net
> (/etc/apache2/sites-enabled/000-default.conf:1)
> port 80 namevhost mail.openmbox.net
> (/etc/apache2/sites-enabled/000-default.conf:1)
this is normal
--
sure, here are the content.
root@mail:/etc/apache2/sites-enabled# cat 000-default.conf |grep -v '#'
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
root@mail:/et
> 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?
I suggest turning on `loglevel trace8` and noting the time of your
test request with firefox.
Is a request traced? Does the Host: header or anything else traced
Can you show us the output of the apachectl -S command ?
> On Nov 11, 2022, at 22:05, supp...@openmbox.net wrote:
>
> Hello
>
> I just created config files under /etc/apache2/sites-enabled directly.
>
> $ ls /etc/apache2/sites-enabled
> lrwxrwxrwx 1 root root 35 Oct 20 14:42 000-default.conf
SpiceMan,
I follow your suggestions to set up as follows.
webmail.conf:
ServerAdmin webmaster@localhost
ServerName mail.openmbox.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAM
Thanks Daniel for pointting out these.
While i changed the config to follows:
ServerAdmin webmaster@localhost
ServerName mail.openmbox.net
DocumentRoot /var/www/snappy
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Delete all that Rewrite voodoo and just redirect.
ServerName example.com
ServerAlias www.example.com
Redirect permanent / https://example.com/
IMPORTANT NOTE:
Also you are configuring all that access to your SYSTEM root directory.
is the whole filesystem path there, not an url path.
Allow me to step aside from your question for a moment, I believe if
you don't get the basics right you should just stop, this is very
important:
Directory directive specifies a directory in your filesystem, ***do
not ever allow anything in /***, even less the execution of cgi
scripts.
You are al
> 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.
For what it’
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
13 matches
Mail list logo