Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch with proxy server and with alias #203

Open
wawanUnic opened this issue Jan 17, 2025 · 1 comment
Open

Launch with proxy server and with alias #203

wawanUnic opened this issue Jan 17, 2025 · 1 comment

Comments

@wawanUnic
Copy link

Hi.
Is there a way to run this program using an alias?
I need the website address: my.site.com/dash/
I redirect the proxy server like this:

server {
    server_name my.site.com;
    location /dash/ {
        proxy_pass http://localhost:3030;
    }

But it doesn't work. I get the error:
https://my.site.com/dash/

Drats! That Dashboard doesn't exist.
You may have mistyped the address or the page may have moved.

What am I doing wrong?

@kinow
Copy link
Member

kinow commented Jan 19, 2025

Hi,

It should work, and I used it in the past (both DNS subdomain dashboard.site.com, and nginx/httpd sites like site.com/dashboard).

What am I doing wrong?

It looks like your redirect is passing that to Smashing, but maybe the dashboard part is missing? Do you have a default dashboard that loads correctly going to localhost:3030 from a machine with access to that server? I think localhost:3030 might redirect to your dashboard in Smashing, and you may need to handle that in nginx too?

Sorry I don't have any fresh examples, and it has been a while since the last time I set it up from scratch. Maybe something in our Wiki will help you too, e.g. https://github.com/Smashing/smashing/wiki/How-To%3A-Run-smashing-on-a-sub-path?

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants