Ispconfig Ngnix

Discussion in 'Installation/Configuration' started by abintipl, Mar 5, 2022.

  1. abintipl

    abintipl Member

    HI,
    I have successfully installed a VPS with Nginx as per instructions provided for auto Install script (https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/)
    I have a couple of questions
    Q1: When I run command nginx -t
    output
    root@abi:~# nginx -t
    nginx: [warn] conflicting server name "server.example.com" on 0.0.0.0:80, ignored
    nginx: [warn] conflicting server name "server.example.com" on [::]:80, ignored
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

    Q2: Since the Installation is using Nginx Why am I seeing the following paths
    /var/www/clients/client1/web1/web
    in addition to
    /var/www/html
    To my understanding, Nginx websites path is always /var/www/html

    Please advise!

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not from ISPConfig auto-installer. You probably started with an unclean system that contained already websites. nginx-t result from a setup installed by auto-installer starting with a clean system:

    root@server1:~# nginx -t
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful

    The folder /var/www/html is the apache and nginx default vhost folder, it is never used for hosting any websites.
     
    abintipl likes this.
  3. abintipl

    abintipl Member

    Sir,
    Thank you for your reply.
    I installed on the clean server, anyways, I will try reinstalling & post my comments
    Thanks & regards
     
  4. abintipl

    abintipl Member

    It works now!
    Thanks
     
    till likes this.

Share This Page