Peter
Peter

Reputation: 771

Laravel on server with ip

I have to install a laravel application on a customer server. Local with homestead and on my test server, the application runs without any problems. The customer url is only a ip. On the customer server, there is 403 on login. 57.6.7.37/login. When i put on top in the index.php the following code, the browser shows the text "test" correctly:

<?php

echo "Test";
exit;
//The rest of the index.php code

It isn't possible to run a laravel application only with an ip address? Or does someone have an idea where i have to search? Thanks

Upvotes: 0

Views: 1236

Answers (1)

Saurabh Mistry
Saurabh Mistry

Reputation: 13669

in side your config/app.php set this :

'url' => env('APP_URL', 'http://57.6.7.37'),

in your .env file :

APP_URL=http://57.6.7.37

Upvotes: 1

Related Questions