Cake php changes url domain to localhost - cakephp

I have a cakephp app that I have to move to a new site. I am running the host of an IP without a domain name. My application after I login the user redirects to a localhost address. There is obviously nothing there, since the installation is on a remote machine. Anyone has any suggestions what I should look for?

Related

HttpOnlyCookie not being set after I added domain to my website

I'm trying to upload my first website which consists of frontend(react) and backend(django).
So when I use it on development, all works just fine, it also works fine when I search for the IP of my VPS, but the problem comes when I try to login with the domain instead of the ip, for some reason the cookie isn't set after I login, but in with the IP it does, fyi both of them use the exact same backend and frontend.
Here is the web: website with domain and here is the one without domain/IP website without domain
It seems that if you visit the site using the domain name, the react backend is still pointing to the ip address. And because you have debug on I can see that your login url is something like <your-ip>/api/login, even though the login link should be domain.com/api/login.
Cookies only work for the domain you logged in from, so that's your ip. You need to configure react to change the url depending on the website's hostname.
Also you have some CORS problems because you API is on port 8080 instead of 80.

How to add hosting for Gen.xyz websites

i want to change the hosting of samplewebname.xyz registered at gen.xyz website into godaddy host. I added the domain in godaddy but still the website showing weebly.com web profile.when i open the account in gen.xyz in the hosting field it showing "launch weebly free". there is no way to change the host.
first you have to add your domain in godaddy host and note down the ip address then go to your gen.xyz account
Go to my domain section and click on manage
Then go to Nameservers section and open DNS Management
Change the IP Address to your Godaddy host IP
wait for few mins

Custom domain with Google App Engine app

I have setup my GAE app with my registered domain. And from the Admin page:
Your users can access myapp at:
https://myapp.appspot.com
http://www.myapp.com
*Note: app name is not actual
However the problem is when www.myapp.com is accessed the URL changes to myapp.appspot.com
What could be missing?
Did you have a previous setup with your domain?
I suspect that your DNS cache is redirecting you.
Do curl -i http://www.myapp.com
See if it's a redirect and what kind
Also check at your domain provider to check to point the GAE DNS servers and not use a redirect
Also you can try with wifi off on your mobile to see if it helps with the intermediate DNS caches.

Apache server configuration for virtual domains

I have created a website and hosted it on apache.
I add users to my website and what i want is that each user gets his/her subdomain as userA.mysite.com, userB.mysite.com and so on. I know that blogspot.com works like this but i am not able to get proper configuration.
I had used wilcard domain configuration but upon the second page again redirects to the main domain. e.g. i logged in using userA.mysite.com but after login i am redirected to my profile on mysite.com
Can someone guide on what configurations i make to get this work?
Any help appreciated.

Silverlight on client only works as local admin

I have client who has installed our Silverlight app. The app works fine when running from the IIS server. It also works from a client machine - but only if the user is logged in as local admin. If they log in with a non-admin account, they get a blank screen where the silverlight app should be.
When I look in the server logs I see that the XAP is being blocked, getting 401 response code.
Any suggestions? It feels like this has to do with accounts, which I am no expert in.
There is probably something wrong in the IIS security settings.
Is Anonymous authentication activated in IIS?

Resources