R
R
Ratami Sato2016-02-03 16:30:37
Apache HTTP Server
Ratami Sato, 2016-02-03 16:30:37

404 Not Found- How to solve?

In general, I had such a problem, when opening the site before connecting to the database, I wrote an error that there was no connection (as it should be in principle). After entering the connection details, I got the following:
Not Found
The requested URL /account/login was not found on this server.
Apache/2.2.22 (Debian) Server at 109.234.34.191 Port 80
I was told to go through the config. those. nano /etc/apache2/apache2.conf and set AllowOverride All instead of None there.
So, I got into the settings and didn’t find

<Dirctory /> 
AllowOverride None 
</Directory>

I tried to write these lines in the config, but no!
I also tried to register them in .htaccess ... Also no.
Guys, can anyone know how to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Bohdan Stadnyk, 2016-02-03
@reatachi_kun

I had such a problem, though I have ubuntu (lamp stack), but I don’t think it plays a big role. So, in the virtual domain /etc/apache2/sites-available/, I registered

<Directory /path>
        AllowOverride All
 	DirectoryIndex index.php
</Directory>
and everything is gone. Perhaps this will help you.

A
Alexander, 2016-02-03
@Tuborg

Can you take a look at the site config? (/etc/apache2/sites-available/site.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question