I finally use this config:
ServerAdmin webmaster@localhost
ServerName mail.openmbox.net
DocumentRoot /var/www/snappy
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Options None
AllowOverride None
Requ
That config snippet has no effect on php; that being said, you many two
issues so far:
1) You don't need to use mod_rewrite to redirect, mod_alias with Redirect
suffices
2) You do not want to mix 2.2 and 2.4 authz directives. Remove the 2.2
directives, and unload the mod_access_compat module
On F
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
I think I need to read httpd's doc carefully.
Before doing that can you help check my this config (for php primarily) are
going without issue?
Thanks in advance.
root@mail:/etc/apache2/sites-enabled# cat webmail.conf |grep -v '#'
ServerAdmin webmaster@localhost
ServerName mail.
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:
Hi,
Just a thought, but can you show the output from: apache2ctl -S
Ed
On Fri, 11 Nov 2022 at 13:06, 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 ->
>
> 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
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 ->
../sites-available/000-default.conf
-rw-r--r-- 1 root root 1850 Nov 11 03:58 webmail-le-ssl.conf
-rw-r--r-- 1 root root 1469 N
On 11/11/2022 12:05, supp...@openmbox.net wrote:
And apache2 restarted without error.
but http://mail.openmbox.net still go to default site.
any idea?
regards.
Can I just ask a simple but obvious question. Have you enabled the site?
A simple command such as "sudo a2ensite openmbox.conf"
Hi apache heroes,
I have an atypical behavior on my setup.
I installed and enabled the GeoIP module.
I'm using the MaxMind CSV files
(https://dev.maxmind.com/geoip/updating-databases?lang=en#directly-downloading-databases)
to generate a geoip.dat file using the tool geolite2legacy
(https://githu
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
20 matches
Mail list logo