Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

396
Vistas
Laravel API router always 404 not found, even I can see the laravel index page

OS:windows server 2019

Web server:Apache

Laravel:8.46.0

I clone this project from my other computer, the other computer is install XAMPP package.

This computer, I'm respectively install apache, mysql and php.

In the other one computer, all api url is working.

I'm already set the virturehost in httpd.conf as below.

About server name, I'm set my real domain name, not like this.

<VirtualHost *:80>
  DocumentRoot "C:\Apache24\htdocs"
  ServerName myDomainName
  ErrorLog "C:\Apache24\htdocs\project_name_error.log"
  CustomLog "C:\Apache24\htdocs\project_name_access.log" combined
  DirectoryIndex index.php
  <Directory "C:\Apache24\htdocs"> 
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

And when I go to my IP with browser, I can see the index page of laravel. but when I want to input a api url, it always show 404 not found. why?

I was trying api url just like this three:

http://domainName/project_name/public/api/
http://domainName/public/api/
http://domainName/api/

btw, in my other computer, I can input the first url to get my resources.

Any suggest?

Thanks.

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda