Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Steevens's avatar

I'm deploying laravel on vps contabo the question is?

When I'm deploying laravel on contabo with apache2 this is getting started on public but when I go to the page i do click on login or register and then I get a server error named "Not Found". "The requested URL was not found on this server." "Apache/2.4.41 (Ubuntu) Server at example-domain Port 80". Any idea how i can solve this problem.

0 likes
3 replies
Sinnbeck's avatar

How did you configure it? Pointed the webroot to /public?

Steevens's avatar
Steevens
OP
Best Answer
Level 2

@Sinnbeck I pointed the webroot to /public, but this doesn't works, then reading settings of apache I could find this code "sudo a2enmod rewrite" this one rewrite the directions from the server, this is the engine that allow redirect the url and now works perfectly.

Thanks for the help, have been helpfully.

1 like

Please or to participate in this conversation.