Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run project by directory browsing #110

Open
shorifulislam00 opened this issue Sep 14, 2024 · 1 comment
Open

Can't run project by directory browsing #110

shorifulislam00 opened this issue Sep 14, 2024 · 1 comment
Labels
question Further information is requested

Comments

@shorifulislam00
Copy link

I install this project by following classic installation instruction. This project is working fine while i run via php artisan serve and browse by 'http://127.0.0.1:8000/'.

But i want to run this project on local by browsing 'http://localhost/my_directory/benotes' and it gives me error.

I add <base/> in app.blade.php file, use css,js resource with asset() and then login page appear successfully.

But api call http://localhost/api/auth/me get error 'Not found'. Here requested url is wrong. There have no 'my_directory/benotes'.

I call modified url http://localhost/my_directory/benotes/api/auth/me from postman and got error 'Not Found'.

How can i resolve this and run project perfectly.

@fr0tt
Copy link
Owner

fr0tt commented Oct 6, 2024

Hey,

apologies for my late response !

So the way I would approach this is by putting a symbolic link to benotes inside the directory that is being served as root by your webserver.
So something similar to cd my_directory && ln -s benotes your/benotes/installation/path/.../public

This allows you to use it without changing any code.

@fr0tt fr0tt added the question Further information is requested label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants