You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with this setup, i am able to login, signup, so everything works as expected from localhost.
http://192.168.1.22:5678/auth/login
or
http://localhost:5678/auth/login
However, when i am trying to proxy pass to make it public with apache from the host machine (210.50.87.220) with the following setup
ServerName 210.50.87.220
ProxyRequests Off
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "http"
RequestHeader set X-Forwarded-Port "8000"
RequestHeader set X-Forwarded-Host "210.50.87.220"
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
ProxyPass /api http://192.168.1.22:8000/
ProxyPassReverse /api http://192.168.1.22:8000/
ProxyPassReverseCookieDomain 192.168.1.22 210.50.87.220
ProxyPassReverseCookiePath / /
ProxyPass / http://192.168.1.22:5678/
ProxyPassReverse / http://192.168.1.22:5678/
and try to access http://210.50.87.220/api shows -> Congratulations 🎉 If you're seeing this Hi.Events API is running
However, http://210.50.87.220/auth/login
reports 'Please check your email and password and try again'
and in the browser console, i get
GET http://localhost:8000/users/me net::ERR_CONNECTION_REFUSED
POST http://localhost:8000/auth/login net::ERR_CONNECTION_REFUSED
It also doesn't work , if i replace the front end .env as well as backend .env with ip 210.50.87.220
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Support,
I was trying install local container (e.g lxc debian container [192.168.1.22]) instead of docker and following this guideline
my front end .env
yarn start --host 0.0.0.0and back end .env
php artisan serve --host=0.0.0.0with this setup, i am able to login, signup, so everything works as expected from localhost.
However, when i am trying to proxy pass to make it public with apache from the host machine (210.50.87.220) with the following setup
and try to access
http://210.50.87.220/apishows -> Congratulations 🎉 If you're seeing this Hi.Events API is runningHowever,
http://210.50.87.220/auth/loginreports 'Please check your email and password and try again'
and in the browser console, i get
It also doesn't work , if i replace the front end .env as well as backend .env with ip 210.50.87.220
What can i do to accept the proxy along with localhost?
Beta Was this translation helpful? Give feedback.
All reactions