Ubuntu Laravel 404 Not Found
file config laravel (/etc/nginx/sites-available/laravel)
server
listen 97 ;
listen [::]:97 ;
root /var/www/TestLaravel/public;
index index.php index.html index.htm;
server_name localhost;
location /
try_files $uri $uri/ /index.php?$query_string;
location ~ .php$
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
file routes web.php
<?php
Route::get('/', function ()
return view('haha');
);
Route::get('/test', function ()
return "test";
);
when i run http://ip:97/test or http://ip:97/
result 404 Not Found
I tried the search results internet but could not change anything.
I use Php 7.3, Nginx 1.10.3, Laravel 5.7.13.
Any suggestions, tutorials or solutions, thanks
php laravel ubuntu nginx
add a comment |
file config laravel (/etc/nginx/sites-available/laravel)
server
listen 97 ;
listen [::]:97 ;
root /var/www/TestLaravel/public;
index index.php index.html index.htm;
server_name localhost;
location /
try_files $uri $uri/ /index.php?$query_string;
location ~ .php$
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
file routes web.php
<?php
Route::get('/', function ()
return view('haha');
);
Route::get('/test', function ()
return "test";
);
when i run http://ip:97/test or http://ip:97/
result 404 Not Found
I tried the search results internet but could not change anything.
I use Php 7.3, Nginx 1.10.3, Laravel 5.7.13.
Any suggestions, tutorials or solutions, thanks
php laravel ubuntu nginx
Never seen someone try to use port 97 for this kind of stuff before. Might try port 8000 or 80 instead.
– Ultimater
Nov 13 '18 at 5:07
i will try it, because port 80 i used to work on another
– Chanh
Nov 13 '18 at 6:38
I tried it and it does not working. The result is still 404 Not Found
– Chanh
Nov 13 '18 at 6:43
add a comment |
file config laravel (/etc/nginx/sites-available/laravel)
server
listen 97 ;
listen [::]:97 ;
root /var/www/TestLaravel/public;
index index.php index.html index.htm;
server_name localhost;
location /
try_files $uri $uri/ /index.php?$query_string;
location ~ .php$
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
file routes web.php
<?php
Route::get('/', function ()
return view('haha');
);
Route::get('/test', function ()
return "test";
);
when i run http://ip:97/test or http://ip:97/
result 404 Not Found
I tried the search results internet but could not change anything.
I use Php 7.3, Nginx 1.10.3, Laravel 5.7.13.
Any suggestions, tutorials or solutions, thanks
php laravel ubuntu nginx
file config laravel (/etc/nginx/sites-available/laravel)
server
listen 97 ;
listen [::]:97 ;
root /var/www/TestLaravel/public;
index index.php index.html index.htm;
server_name localhost;
location /
try_files $uri $uri/ /index.php?$query_string;
location ~ .php$
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
file routes web.php
<?php
Route::get('/', function ()
return view('haha');
);
Route::get('/test', function ()
return "test";
);
when i run http://ip:97/test or http://ip:97/
result 404 Not Found
I tried the search results internet but could not change anything.
I use Php 7.3, Nginx 1.10.3, Laravel 5.7.13.
Any suggestions, tutorials or solutions, thanks
php laravel ubuntu nginx
php laravel ubuntu nginx
edited Nov 13 '18 at 5:00
asked Nov 13 '18 at 4:43
Chanh
1178
1178
Never seen someone try to use port 97 for this kind of stuff before. Might try port 8000 or 80 instead.
– Ultimater
Nov 13 '18 at 5:07
i will try it, because port 80 i used to work on another
– Chanh
Nov 13 '18 at 6:38
I tried it and it does not working. The result is still 404 Not Found
– Chanh
Nov 13 '18 at 6:43
add a comment |
Never seen someone try to use port 97 for this kind of stuff before. Might try port 8000 or 80 instead.
– Ultimater
Nov 13 '18 at 5:07
i will try it, because port 80 i used to work on another
– Chanh
Nov 13 '18 at 6:38
I tried it and it does not working. The result is still 404 Not Found
– Chanh
Nov 13 '18 at 6:43
Never seen someone try to use port 97 for this kind of stuff before. Might try port 8000 or 80 instead.
– Ultimater
Nov 13 '18 at 5:07
Never seen someone try to use port 97 for this kind of stuff before. Might try port 8000 or 80 instead.
– Ultimater
Nov 13 '18 at 5:07
i will try it, because port 80 i used to work on another
– Chanh
Nov 13 '18 at 6:38
i will try it, because port 80 i used to work on another
– Chanh
Nov 13 '18 at 6:38
I tried it and it does not working. The result is still 404 Not Found
– Chanh
Nov 13 '18 at 6:43
I tried it and it does not working. The result is still 404 Not Found
– Chanh
Nov 13 '18 at 6:43
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273946%2fubuntu-laravel-404-not-found%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273946%2fubuntu-laravel-404-not-found%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Never seen someone try to use port 97 for this kind of stuff before. Might try port 8000 or 80 instead.
– Ultimater
Nov 13 '18 at 5:07
i will try it, because port 80 i used to work on another
– Chanh
Nov 13 '18 at 6:38
I tried it and it does not working. The result is still 404 Not Found
– Chanh
Nov 13 '18 at 6:43