Why is my Filemanager in the host not working?
In localhost
In site
Related
I have a Laravel app in Virtualbox in the localhost aka 127.0.0.1:8000 and I want to connect from my host to the server.
Also, it will be great that anyone with the same network can connect to my localhost.
How can this be done?
You can pass the host while running the php artisan serve command.
For example, your network IP is 192.168.1.2
Then run the command like this
php artisan serve --host=192.168.1.2
Hope this will work for you.
I always used Laravel valet for developing Laravel projects, but i was curios and wanted to try docker for the first time. After a lot of struggle i decided to ga back to Laravel valet, only to find out that the url i used with valet redirects to 0.0.0.0:8080.
0.0.0.0:8080 was the url docker exposed outside the container.
I removed docker completely from my mac. Stil got the same problem.
I've tried to run php artisan serve, but 127.0.0.1:8000 also redirects to 0.0.0.0:8080.
I've tried access other Laravel applications with valet, no problem.
With my host file is nothing wrong, and so is my network settings.
Here is my host file
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
I'm developing and application on forge.laravel.com and I need to use GuzzleHttp.
The problem is that I haven't registered the domain myapplication.dev yet.
When I navigate on website from client I solved it putting this in my windows hosts file:
myapplication.dev X.XX.XX.XXX
but obliviously this doesn't work for requests from server.
This is how I call GuzzleHttp:
$client = new Client([
'base_uri' => request()->getSchemeAndhttpHost(),
'headers' => request()->header()
]);
$name = $client->get('/example.getName?id=1')->getBody()->getContents();
Can I force to redirect myapplication.dev to my application with Forge?
Thanks
Sure , you can setup the ip address of your server in the config of nginx.
listen 80;
server_name THE_IP;
root /var/www/html; #the location of your root dir...
https://www.linode.com/docs/web-servers/nginx/how-to-configure-nginx/
Take a look at server blocks.
then in your guzzle client point to an ip instead of a domain.
The requested URL /myapp/welcome/login was not found on this server.
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80
codeigniter not found my site on local host
First check your site directory, if it has a .htaccess you need to activate mod_rewrite on your wamp server.
For this follow this picture and open httpd.conf file, search just "rewrite" and remove "#" from start of this. save your file and restart your server by clicking "Restart All Services".
How Can i setup virtual host for laravel-4 ?
Previously I wrote some code and routes looked like -
Route::get('/', 'PageController#home');
Route::get('/home', 'PageController#about');
when I gave the url - "http://localhost/laravel-master/public/" I can see the home page but when tired "http://localhost/laravel-master/public/about" i got error saying url not found.
I tired configuring virtual host but ended up with the error - You don't have permission to access"url" on this server.
What is the correct way to do this ??
the path to my laravel folder is "C:\wamp\www\laravel-master"
and instead of using "http://localhost/laravel-master/public/" i wish to use url like "myapp" or so, So that when i use myapp I can see the home page and when I use "myapp/about" I can see the about page.
You need to add your virtualhost and host file.Make your apache listen to your Url.
Something like in your virtualhost file
<VirtualHost laravel>
DocumentRoot "C:/wamp/www/laravel-master/public"
ServerName laravel
</VirtualHost>
And in your host file:
127.0.0.2 laravel
make apache restart and your clean URL will work.