lando / lando

A development tool for all your projects that is fast, easy, powerful and liberating
https://lando.dev
GNU General Public License v3.0
4.09k stars 545 forks source link

webroot/javascript directory always getting 404 #3239

Closed jazty closed 2 years ago

jazty commented 2 years ago

Hello all

I ran into a strange and interesting issue with a web application I shoehorned into Lando v3.5.1. Within the webroot there is a javascript directory. Every file I tried to access resulted in a 404 error, even though the files were clearly there and the permissions were proper.

Turns out I ran into this issue: https://stackoverflow.com/questions/23067141/apache-returning-404-for-requests-inside-javascript-directory

Running the following fixed it:

$ lando ssh -u root
root@ae20fc41211c:/app/www-root# a2disconf javascript-common
Conf javascript-common disabled.
To activate the new configuration, you need to run:
  service apache2 reload
root@ae20fc41211c:/app/www-root# service apache2 reload
[ ok ] Reloading Apache httpd web server: apache2.

This seems to be fixed in main, but just wanted to make a note for someone searching for the same issue.

jazty commented 2 years ago

This seems to be fixed in main