Re: [users@httpd] Help check my config for server section

2022-11-11 Thread support
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

Re: [users@httpd] Help check my config for server section

2022-11-11 Thread Frank Gingras
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread support
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

[users@httpd] Help check my config for server section

2022-11-11 Thread support
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.

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread Eric Covener
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread support
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:

Re: [users@httpd] Re: firefox shows default site page

2022-11-11 Thread Edward St Pierre
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 -> >

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread Eric Covener
> 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 --

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread support
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread Eric Covener
> 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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread SpiceMan
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

Re: [users@httpd] Re: firefox shows default site page

2022-11-11 Thread support
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

[users@httpd] Re: firefox shows default site page

2022-11-11 Thread πŸ˜‰ Good Guy πŸ˜‰
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"

[users@httpd] GeoIP module problem

2022-11-11 Thread Marc Serra
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread support
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread support
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread SpiceMan
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.

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread Daniel Ferradal
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

Re: [users@httpd] firefox shows default site page

2022-11-11 Thread Walter Hop
> 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’

[users@httpd] firefox shows default site page

2022-11-11 Thread support
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