modoboa / modoboa-installer

An installer for Modoboa
MIT License
264 stars 138 forks source link

Fresh install keeps opening "welcome to nginx" web page #527

Closed mocallins closed 7 months ago

mocallins commented 1 year ago

Impacted versions

Steps to reproduce

Install

Full trace using --debug option or current behaviour

Expected behavior

Video/Screenshot link (optional)

No matter if i open the web page via FQDN or the ip ddress, just shows the welcome page. I'm pretty sure its got to do with the nginx sites-available/default, point to /var/www/html, but don't know what to change it to. Surely the installer should have configured this correctly, or at least put the correct config in there, and comment it out, so its obvious what needs to change.

tonioo commented 1 year ago

@mocallins Did you try to install on a fresh server?

mocallins commented 1 year ago

Yes this install is fresh.

On Thursday, November 23, 2023 at 02:11:38 AM CST, Antoine Nguyen ***@***.***> wrote:  

@mocallins Did you try to install on a fresh server?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

mocallins commented 11 months ago

Yes this install is fresh. On Thursday, November 23, 2023 at 02:11:38 AM CST, Antoine Nguyen @.> wrote: @mocallins Did you try to install on a fresh server? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.>

Yes this install is on a new server.

Spitfireap commented 10 months ago

Could you post the output of ls -Rla /etc/nginx please ?

mocallins commented 10 months ago

[mail]:</home/mike/> ls -Rla /etc/nginx
/etc/nginx:
total 88K
drwxr-xr-x   8 root root 4.0K Nov  1 17:53 .
drwxr-xr-x 152 root root  12K Jan  3 11:52 ..
drwxr-xr-x   2 root root 4.0K Mar 14  2023 conf.d
-rw-r--r--   1 root root 1.5K Nov  1 10:53 dhparam.pem
-rw-r--r--   1 root root 1.1K Mar 14  2023 fastcgi.conf
-rw-r--r--   1 root root 1.1K Mar 14  2023 fastcgi_params
-rw-r--r--   1 root root 2.8K Mar 14  2023 koi-utf
-rw-r--r--   1 root root 2.2K Mar 14  2023 koi-win
-rw-r--r--   1 root root 4.3K Mar 14  2023 mime.types
drwxr-xr-x   2 root root 4.0K Mar 14  2023 modules-available
drwxr-xr-x   2 root root 4.0K Mar 14  2023 modules-enabled
-rw-r--r--   1 root root 1.5K Mar 14  2023 nginx.conf
-rw-r--r--   1 root root  180 Mar 14  2023 proxy_params
-rw-r--r--   1 root root  636 Mar 14  2023 scgi_params
drwxr-xr-x   2 root root 4.0K Nov  3 01:10 sites-available
drwxr-xr-x   2 root root 4.0K Nov  1 10:53 sites-enabled
drwxr-xr-x   2 root root 4.0K Nov  1 10:53 snippets
-rw-r--r--   1 root root  664 Mar 14  2023 uwsgi_params
-rw-r--r--   1 root root 3.0K Mar 14  2023 win-utf

/etc/nginx/conf.d:
total 8.0K
drwxr-xr-x 2 root root 4.0K Mar 14  2023 .
drwxr-xr-x 8 root root 4.0K Nov  1 17:53 ..

/etc/nginx/modules-available:
total 8.0K
drwxr-xr-x 2 root root 4.0K Mar 14  2023 .
drwxr-xr-x 8 root root 4.0K Nov  1 17:53 ..

/etc/nginx/modules-enabled:
total 8.0K
drwxr-xr-x 2 root root 4.0K Mar 14  2023 .
drwxr-xr-x 8 root root 4.0K Nov  1 17:53 ..

/etc/nginx/sites-available:
total 20K
drwxr-xr-x 2 root root 4.0K Nov  3 01:10 .
drwxr-xr-x 8 root root 4.0K Nov  1 17:53 ..
-rw-r--r-- 1 root root  532 Nov  1 10:53 autoconfig.collinsinfotech.com.conf
-rw-r--r-- 1 root root 2.4K Nov  3 01:10 default
-rw-r--r-- 1 root root 2.1K Nov  1 10:53 mail.collinsinfotech.com.conf

/etc/nginx/sites-enabled:
total 12K
drwxr-xr-x 2 root root 4.0K Nov  1 10:53 .
drwxr-xr-x 8 root root 4.0K Nov  1 17:53 ..
lrwxrwxrwx 1 root root   62 Nov  1 10:53 autoconfig.collinsinfotech.com.conf -> /etc/nginx/sites-available/autoconfig.collinsinfotech.com.conf
lrwxrwxrwx 1 root root   34 Nov  1 10:53 default -> /etc/nginx/sites-available/default
lrwxrwxrwx 1 root root   56 Nov  1 10:53 mail.collinsinfotech.com.conf -> /etc/nginx/sites-available/mail.collinsinfotech.com.conf

/etc/nginx/snippets:
total 16K
drwxr-xr-x 2 root root 4.0K Nov  1 10:53 .
drwxr-xr-x 8 root root 4.0K Nov  1 17:53 ..
-rw-r--r-- 1 root root  423 Mar 14  2023 fastcgi-php.conf
-rw-r--r-- 1 root root  217 Mar 14  2023 snakeoil.conf
[mail]:</home/mike/>```
aleczdr commented 8 months ago

mine does this too, but only with http. try using https