Error 403 forbidden after new installation

Discussion in 'Installation/Configuration' started by aarce, Nov 4, 2024.

  1. aarce

    aarce New Member

    Hello!!

    I just finishes a new ISPConfig 3 on an Ubuntu 22.04 server on a subdomain
    I )followed the procedure mentioned at howtoforge. I installed nginx version
    The process at step 4 finished ok. I got admin and mysql passwords
    When I try to complete step 5 (setting up the firewall) using the UI and navigating the the subdomain, I get a 403 forbidden error
    What is wrong?
    Should I configure something else via ssh console?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    We have many different install guides. Which one exactly did you use and if you used the auto-installer, which exact parameters do you use.

    maybe your subdomain poínts to a wrong server or you run an external firewall which blocks access.

    SSH console is not needed to create a website in ISPConfig.
     
  3. remkoh

    remkoh Active Member HowtoForge Supporter

    403 shouldn't be a firewall issue.
    A firewall blocks or passes traffic, leaving you with or without a connection to the website.
    403 is a webserver responce, so there seems to be a connection to that (assuming it's the right server).
    And 403 means "Forbidden". Check the logs as there should be an entry on why the error is given.
     
    till likes this.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, you are right. Maybe he deleted the default index page and did not upload a new one yet. or he redirected the site to an empty folder.
     
    remkoh likes this.
  5. aarce

    aarce New Member

    Hi Till, thanks for your answer
    Hi
     
  6. aarce

    aarce New Member


    Hi Remkah thanks for ypur amswer
    This is a brand new VPS, nothing installed yet, just the Ubuntu OS. No firewall configured beforehand
     
  7. remkoh

    remkoh Active Member HowtoForge Supporter

    Maybe not post your reply inside the quote? ;)

    What do the webserver/website logs say?
     
  8. aarce

    aarce New Member

    GNU nano 6.2 error.log
    2024/11/04 00:02:22 [error] 198294#198294: *6837 open() "/var/www/apps/favicon.ico" failed (2: No such file or directory)>
    2024/11/04 00:25:20 [error] 198294#198294: *6852 open() "/usr/local/ispconfig/interface/web/cgi-bin/luci/;stok=/locale" f>
    2024/11/04 01:08:50 [error] 198294#198294: *6889 open() "/var/www/apps/cgi-bin/luci/;stok=/locale" failed (2: No such fil>
    2024/11/04 01:41:49 [error] 198294#198294: *6921 directory index of "/var/www/apps/" is forbidden, client: 45.156.128.49,>
    2024/11/04 02:36:07 [error] 198294#198294: *6965 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (2: No su>
    2024/11/04 03:09:55 [error] 198294#198294: *7008 directory index of "/var/www/apps/" is forbidden, client: 167.94.138.125>
    2024/11/04 04:34:58 [error] 198294#198294: *7063 open() "/var/www/apps/jars" failed (2: No such file or directory), clien>
    2024/11/04 05:51:56 [error] 198294#198294: *7114 directory index of "/var/www/apps/" is forbidden, client: 64.62.197.186,>
    2024/11/04 07:48:43 [error] 198294#198294: *7215 directory index of "/var/www/apps/" is forbidden, client: 74.82.47.4, se>
    2024/11/04 08:28:54 [error] 198294#198294: *7260 access forbidden by rule, client: 181.91.85.239, server: ispconfig.ingen>
    2024/11/04 08:28:55 [error] 198294#198294: *7261 access forbidden by rule, client: 181.91.85.239, server: ispconfig.ingen>
    2024/11/04 08:35:20 [error] 198294#198294: *7270 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (2: No su>
    2024/11/04 08:35:21 [error] 198294#198294: *7273 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (2: No su>
    2024/11/04 09:13:31 [error] 198294#198294: *7314 open() "/usr/local/ispconfig/interface/web/cgi-bin/login.cgi" failed (2:>
    2024/11/04 09:17:07 [error] 198294#198294: *7318 open() "/usr/local/ispconfig/interface/web/login.jsp" failed (2: No such>
    2024/11/04 09:18:43 [error] 198294#198294: *7320 open() "/usr/local/ispconfig/interface/web/doc/index.html" failed (2: No>
    2024/11/04 09:40:39 [error] 198294#198294: *7335 access forbidden by rule, client: 87.236.176.109, server: ispconfig.inge>
    2024/11/04 10:26:33 [error] 198294#198294: *7379 open() "/usr/local/ispconfig/interface/web/favicon.ico" failed (2: No su>
    2024/11/04 11:37:50 [error] 971551#971551: *2 access forbidden by rule, client: 181.91.85.239, server: ispconfig.ingeniva>
    2024/11/04 11:37:50 [error] 971551#971551: *3 access forbidden by rule, client: 181.91.85.239, server: ispconfig.ingeniva>


    What should be the correct path for the root directory of ISPConig?
    I found at sites-enabled an nginx config file calles ispconfig.vhost (ispconfig is the name I selected for ISPConfig at installation time).
    In this file, the installation script configured root as /usr/local/ispconfig/interface/web/ is that correct?







    ^G Help ^O Write Out ^W Where Is ^K Cut ^T Execute ^C Location M-U Undo M-A Set Mark
    ^X Exit ^R Read File ^\ Replace ^U Paste ^J Justify ^/ Go To Line M-E Redo M-6 Copy
     
  9. remkoh

    remkoh Active Member HowtoForge Supporter

    Those log lines are all incomplete so fital info is missing.
     
  10. aarce

    aarce New Member

    Hello!!
    I finally found the issue, it was a bad nginx site configuration
    Thankyou for your time!!
     
    remkoh likes this.

Share This Page