In general, I have VDS with the centos panel and isp manager, the domain is already screwed too. At the root is the file index.html . When I site.ru/index.html site site.ru/index.html all the rules, and when I site.ru just site.ru I site.ru transferring it to the main hosting page, or I get an error 403. What can a problem beat? Where and what to rule, tell knowledgeable people. I would be very grateful to you for your help, otherwise I’ve already started Google with my requests.
- browser cache cleared? - aleksandr barakin 8:25 pm
- @alexanderbarakin, cleaned. Does not help. So far, I have solved the problem with .htaccess, but this does not seem to be the right solution. There must be something else. Or I'm wrong? - Anatoly
|
1 answer
Try to create a .htaccess file in the root of the domain folder, or add to the existing one. It is necessary to add the line:
DirectoryIndex index.html Not sure what will help - if not, most likely a crooked Apache is configured.
- I did, but is this the right decision? Something seems to me this is not the same. - Anatoly
- If it helped, then the DirectoryIndex option is registered globally in the Apache itself, in which there is no index.html by default. You can change the setting of the Apache. But I would not steamed about this. - Goncharov Alexander
- No, as it would be desirable that everything would be according to science. - Anatoly
- I will go in the settings of Apache, I didn’t immediately guess how I did it myself. - Anatoly
- @ Goncharov Alexander in the settings registered DirectoryIndex index.html, it does not mean. - Anatoly
|