Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fireball70's avatar

Valet secure on specific port

I have vue-spa app which runs in development on subdomain.domain.test using valet. domain.test is secured over HTTPS and when I access https://subdomain.domain.test everything is fine. But if I reach https://subdomain.domain.test:3000 with "vite serve" the browser gives me "Privacy error". When I "proceed unsafely" the app works fine but without HTTPS. How to secure with this specific port? Thanks in advance.

0 likes
2 replies
Tray2's avatar

HTTPS uses port 443.

Why do you want to use another port?

To make that work you need to configure nginx to serve both port 443 and port 3000.

1 like
fireball70's avatar

Thanks... I must read more for secure connections... The problem is not in Nginx or Valet. Just can't provide a secure connection for localhost.

Please or to participate in this conversation.