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.
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.
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.
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; }
E.g.: Code: # Exclude ACME challenge from proxy <Location "/.well-known/acme-challenge/"> ProxyPass ! </Location> # Proxy everything else ProxyPreserveHost On ProxyPass / http://localhost:8088/ ProxyPassReverse / http://localhost:8088/
No, you create a website for the subdomain and then add the above snippet in the Apache directives field of that website. Just change the port in the snippet to match the port of your app.