How to route to App page

Discussion in 'General' started by TheWakar, Aug 23, 2024.

  1. TheWakar

    TheWakar New Member

    Hi, I used ispconfig to my example.com and using shell to run the npx n8n and it shown localhost:5678 and press o to see the web page and now i open my example.com page its showing standard_index.html page which located in web folder and now i went to server via shell its not showing n8n folder but server occupaid 1.8GB and how to see my n8n in example.com page.
     
    Last edited: Aug 23, 2024
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What you are searching for is named a proxy, you can create a simple proxy on the redirect page of the website in ISPConfig. In case you need a more complex proxy configuration, then you can do that in ISPConfig as well using the Apache or Nginx directives field on the options tab of the website.
     
  3. TheWakar

    TheWakar New Member

    I used this
    nginx
    server {
    listen 80;
    server_name (myserver);

    location / {
    proxy_pass http//localhost:5678;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
    }
    }
    this for Nginx directives field on the options tab of the website. But not worked. Error refused to connect.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This can not work as you can not put a server { .... } section into a server section in Nginx. Try using just this part:

    Code:
    location / {
      proxy_pass http//localhost:5678;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection 'upgrade';
      proxy_set_header Host $host;
      proxy_cache_bypass $http_upgrade;
    }
     
    ahrasis likes this.
  5. TheWakar

    TheWakar New Member

    Woo-Hoo.. Thank you. Now its working. I am accessing in example.com:5678.
     
    till likes this.

Share This Page