can't get website to work using Nginx

Discussion in 'Installation/Configuration' started by foxpc, Feb 22, 2017.

  1. foxpc

    foxpc New Member

    i am new to ISPConfig 3. i can't make the website work!
    i have install ISPConfig autoinstaller for Debian 8 using
    github com/servisys/ispconfig_setup
    i have select to use Nginx as my other server use it.
    then i have create new website and move all the website file to "web" folder.
    in my pc i have add my server ip point to domains to check if all working well but see that Nginx show me the
    Welcome to nginx on Debian! page
    the vhost exists and looks fine.
    my website using ssl so i need to add https myip

    from the log i see 2 errors:
    irectory index of "/var/www/clients/client1/web1/web/" is forbidden, client: ::1, server: _, request: "GET / HTTP/1.1", host: "localhost"

    [error] 23177#0: *9 FastCGI sent in stderr: "PHP message: PHP Warning: is_file(): open_basedir restriction in effect. File(/var/www/clients/client1/web1/.env) is not within the allowed path(s): (/var/www/clients/cli$

    how to fix them to make the website work?
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you have a index.php or index.html file in the folder /var/www/clients/client1/web1/web/ ?

    Not sure which software you installed into that website, the software tres to break out of the website directory and read files down its path, so the open_basedir warning must be raised here. But I doubt that this warning is related to the 403 error that you get.
  3. foxpc

    foxpc New Member

    i have reinstall all the server.
    now i don't see any errors but php files not working.
    i have add ssl to my website.
    when i enter my site with https:// www mysite com
    i get Welcome to nginx on Debian! page.
    if i enter my site with http:// www mysite com
    i get Welcome to your website!
    i have deleted the default nginx vhost
    in my web folder this is index html of Welcome to your website!
    if i change the html i see the changes but if i put some index.php there and remove the index.html i don't see any php output.

    so from where the nginx take the Welcome to nginx on Debian! ?

    i want that my website will work with https and take all the website data from my web folder as in my

    * my website use Codeigniter php framework
  4. foxpc

    foxpc New Member

    can you help me?

Share This Page