laravel the requested url was not found on this server

the requested url /auth/login was not found on this server. laravel
the requested url was not found on this server htaccess
the requested url was not found on this server. apache
the requested url /login was not found on this server. ubuntu
laravel api url not found
the requested url was not found on this server. laravel 6
the requested url /login was not found on this server. codeigniter
the requested url /login was not found on this server. centos

I've an Ubuntu 14.04 kernel. I was installing my Laravel application in this server. After installing, I tried to set the root directory to public.

sudo nano /etc/apache2/sites-available/000-default.conf

I have only these options in the file

<VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port t$
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html/public/

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I've changed the Document root to

DocumentRoot /var/www/html/public/

Now when I tried to access my Laravel App, through 123.xxx.xxx.xxx/ it shows the home page and working well. It gets all the GET variable too. Eg: 123.xxx.xxx.xxx?type=wefwef

But when I go to other links such as 123.xxx.xxx.xxx/login it gives me an error

Not Found

The requested URL /login/ was not found on this server.

Apache/2.4.7 (Ubuntu) Server at 104.236.234.85 Port 80

I have the routes.php working well on localhost. But not on this server. Please help me.

This looks like you have to enable .htaccess by adding this to your vhost:

<Directory /var/www/html/public/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

If that doesn't work, make sure you have mod_rewrite enabled.

Don't forget to restart apache after making the changes! (service apache2 restart)

The requested URL /login was not found on this server , So, i am having this weird problem, which i tried to rectify via net searches, but nothing has worked so far. I can access my routes easily, but only one route� Laravel 5: The requested URL was not found on this server. Posted 5 years ago by ocupado I 'm beginning to test Laravel and I 'm doing with version 5 but I am having problems with controllers.

I resolved by doing the following: Check if there is a module called rewrite.load in your apache at:

cd /etc/apache2/mods-enabled/

If it does not exist execute the following excerpt:

sudo a2enmod rewrite

Otherwise, change the Apache configuration file to consolidate use of the "friendly URL".

sudo nano /etc/apache2/apache2.conf

Find the following code inside the editor:

<Directory /var/www/> 
   Options Indexes FollowSymLinks
   AllowOverride None
   Require all granted
</Directory> 

Change to:

<Directory /var/www/> 
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

After that restart the Apache server via:

sudo /etc/init.d/apache2 restart

laravel the requested url was not found on this server , I've an Ubuntu 14.04 kernel. I was installing my Laravel application in this server. After installing, I tried to set the root directory to public. sudo nano� The requested URL /public was not found on this server. Posted 3 years ago by Imamul.Hossain When I browse localhost and in my project folder, when I clock on public then bellow message is shown.

First enable a2enmod rewrite next restart the apache

/etc/init.d/apache2 restart

click here for answer these question

Laravel 5: The requested URL was not found on this server., I 'm beginning to test Laravel and I 'm doing with version 5 but I am having problems with controllers. It happens that in a very simple example� Place this file in Laravel's root directory. Please note that this isn't the recommended way. A safer way is place Laravel's files outside your web server root and make the Laravel's public directory your web server root. Don't forget to update the paths.php file.

Alternatively you could replace all the contents in your .htaccess file

Options +FollowSymLinks -Indexes
RewriteEngine On
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

See the docs here. https://laravel.com/docs/5.8/installation#web-server-configuration

The requested URL /login was not found on this server., The requested URL /login was not found on this server. Posted 3 Yeah, xamp with laravel doesn't equal production environment. Hence why� A 404 error is an HTTP status code that means that the page you were trying to reach on a website couldn't be found on their server. To be clear, the 404 error indicates that while the server itself is reachable, the specific page showing the error is not. 404 Not Found error messages are frequently customized by individual websites.

In addition to all the answers if you still encounter some variation of the problem, edit the .env file and set APP_URL to your domain name as in:

 APP_URL=similar_to_my_avatar_link 

server - Laravel on ubuntu, The requested URL /me was not found on this server. However, if i use the php artisan serve command and use the php server the routing will� I thought I configure it correctly but when but when I put the URL into firfox it says the requested URL /downloads was not found on this server. here is the config files (downloads.conf)

Laravel 5, The requested URL /myfirstproject/ was not found on this , I have successfully install the laravel 5 using Wamp server & successfully created first project with name "myfirstproject". enter image description here enter� Requested URL not found on the server or more specifically, error code 404 means that the URL which we are trying to open was not found in the server and therefore cannot be opened. This could possibly mean there is a problem with Drupal installation or it’s configuration.

Topic: The requested URL /register/ was not found on this server , Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. WebServerX Server at featherme.com Port 80� 404 NOT FOUND. The requested URL/mypath was not found on this server. Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80. i have use mach way *allow from all *create a 80 port but still doesn’t work so help and thnx

laravel the requested url was not found on this server, I resolved by doing the following: Check if there is a module called rewrite.load in your apache at: cd /etc/apache2/mods-enabled/ If it does not� Forum Laravel The requested URL /login was not found on this server. Laravel rojonunoo • 3 years ago The requested URL /login was not found on this server.

Comments
  • Does 123.xxx.xxx.xxx/index.php/login work?
  • I had the exact same problem and the accepted answer didn't work for me, turns out I had forgotten to enable modrewrite. Some other answers cover all the bases. On Ubuntu you just sudo a2enmod rewrite, but my thing is on an Apple MacBook so I had to find and uncomment the modrewrite line in /etc/apache2/httpd.conf.
  • Alright, it worked. Just needed an service apache2 restart too. Thanks a lot :)
  • where .htacces i can find? Sorry for stupid question, but i can't find :)
  • @MilanNz The .htaccess can be found in the public directory of your application. However the code from this answer goes inside a vhost file. The location of that depends on your server. (e.g. for apache2 and unix it's usually at /etc/apache2/sites-available)
  • The FollowSymLinks seemed to be key for me.
  • Run sudo a2enmod rewrite to enable mod_rewrite
  • I am getting 500 Internal Server Error after that.
  • Thanks, it worked for me too, in 2019. What does it mean though?
  • For some reasons, other commands to activate the rewrite didn't work, but this one did. Thank you.
  • Thank you soooo much my friend!!! I really appreciate your answer! You helped me a lot! Thank you!
  • Yes. Its worked for me. I used it for my Laravel project.
  • Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
  • @rohit i unable to update the answer here,click the above link you will find answer