Reputation: 374
I have migrated my laravel based web app to a desktop app using phpdesktop. Everything is working fine when I am running it on my local. The problem arises when I tried to run it on the other machine using my machine as the server. Here's the code where I had made changes:-
"web_server": {
"listen_on": ["XXX.XXX.X.XXX", XXXXX],
"www_directory": "public",
"index_files": ["index.html", "index.php"],
"cgi_interpreter": "php/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": "",
"404_handler": "/pretty-urls.php",
"hide_files": []
}
In the above code I have mentioned my machine ip address and port number (in listen_on), but I was unable to run it on any other machine.
Upvotes: 2
Views: 401
Reputation: 374
I have managed to fix this issue by making index.php file in www directory and writing a particular set of code in it
header('location:http://example.com/codeit/blackbolt/public/login')
Upvotes: 3