0 / 0 / 0
Регистрация: 28.07.2011
Сообщений: 20
1

403 forbidden для файла по прямой ссылке

25.09.2018, 20:17. Показов 1821. Ответов 2
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Очень прошу помочь советом знатоков
По прямой ссылке на любой файл (не картинка) появляется ошибка 403

К пример: ссылка удалена модератором
Вроде и .htaccess пересмотрел но ничего не помогает.

htaccess
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
RewriteEngine On 
RewriteCond %{HTTP_HOST} ^www.kidzlandia.ru$ [NC] 
RewriteRule ^(.*)$ https://kidzlandia.ru/$1 [R=301,L]
 
 
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
 
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ / [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ / [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.htm\ HTTP/
RewriteRule ^index\.htm$ / [R=301,L]
 
 
 Options +SymLinksIfOwnerMatch
 Options +FollowSymlinks
 
# Prevent Directoy listing
 Options -Indexes
 
 
# # Prevent Direct Access to files
# <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
# Require all denied
# # For apache 2.2 and older, replace "Require all denied" with these two lines :
# # Order deny,allow
# # Deny from all
# </FilesMatch>
 
# SEO URL Settings
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_URI} ^(.+)/$ 
RewriteRule ^(.+)/$ /$1 [R=301,L] 
RewriteCond %{THE_REQUEST} //
RewriteRule .* /$0 [R=301,L]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/
 
 RewriteBase /
# !!! RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
# !!! RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
 RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
 RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
 
# использование gzip для уменьшения сайта
 <IfModule mod_gzip.c>
 mod_gzip_on         Yes
 mod_gzip_dechunk    Yes
 mod_gzip_item_include file      \.(html?|txt|css|js|php|pl)$
 mod_gzip_item_include mime      ^text\.*
 mod_gzip_item_include mime      ^application/x-javascript.*
 mod_gzip_item_include mime      ^application/x-font-woff.*
 mod_gzip_item_exclude mime      ^image\.*
 mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
 </IfModule>
 <IfModule mod_deflate.c>
 AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
 </IfModule>
 
 
# кэш браузером на стороне клиентов (чтобы каждый раз не скачивать файлы с сервера, если клиенты несколько раз заходят
# <IfModule mod_expires.c>
# ExpiresActive On
# ExpiresDefault "access 7 days"
# ExpiresByType application/javascript "access plus 1 year"
# ExpiresByType text/javascript "access plus 1 year"
# ExpiresByType text/css "access plus 1 year"
# ExpiresByType text/html "access plus 7 day"
# ExpiresByType text/x-javascript "access 1 year"
# ExpiresByType image/gif "access plus 1 year"
# ExpiresByType image/jpeg "access plus 1 year"
# ExpiresByType image/png "access plus 1 year"
# ExpiresByType image/jpg "access plus 1 year"
# ExpiresByType image/x-icon "access 1 year"
# ExpiresByType application/x-shockwave-flash "access 1 year"
# </IfModule>
 
 
### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.
 
# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off
 
# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off
 
# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M
 
# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M
 
# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200
 
# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200
 
# 7. disable open_basedir limitations
# php_admin_value open_basedir none
 
 
##Показываем все ошибки и предупреждения при разработке магазина. 
##Потом закомментировать
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag track_errors on
#показывать все ошибки для PHP 5.4.x, 5.6.x 
php_value error_reporting 32767



httpd.conf
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
ServerRoot "/etc/httpd"
 
#Listen 12.34.56.78:80
Listen 80
 
 
Include conf.modules.d/*.conf
 
 
User apache
Group apache
 
 
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other 
# <Directory> blocks below.
#
<Directory />
    AllowOverride none
    Require all denied
</Directory>
 
 
DocumentRoot "/var/www/html"
 
 
<Directory "/var/www">
    AllowOverride All
    # Allow open access:
    Require all granted
</Directory>
 
# Further relax access to the default document root:
<Directory "/var/www/html">
  
    Options Indexes FollowSymLinks
 
 
    AllowOverride None
 
 
    Require all granted
</Directory>
 
 
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
 
 
<Files ".ht*">
    Require all denied
</Files>
 
 
ErrorLog "logs/error_log"
 
 
LogLevel warn
 
<IfModule log_config_module>
 
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
    LogFormat "%h %l %u %t "%r" %>s %b" common
 
    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
    </IfModule>
 
 
    CustomLog "logs/access_log" combined
</IfModule>
 
<IfModule alias_module>
 
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
 
</IfModule>
 
 
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>
 
<IfModule mime_module>
 
    TypesConfig /etc/mime.types
 
 
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
 
 
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
</IfModule>
 
 
AddDefaultCharset UTF-8
 
<IfModule mime_magic_module>
 
    MIMEMagicFile conf/magic
</IfModule>
 
 
 
EnableSendfile on
 
 
IncludeOptional conf.d/*.conf
 
 
Alias /awstatsclasses "/usr/local/awstats/wwwroot/classes/"
Alias /awstatscss "/usr/local/awstats/wwwroot/css/"
Alias /awstatsicons "/usr/local/awstats/wwwroot/icon/"
ScriptAlias /awstats/ "/usr/local/awstats/wwwroot/cgi-bin/"
 
 
<Directory "/usr/local/awstats/wwwroot">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
0
25.09.2018, 20:17
cpp_developer
Эксперт
20123 / 5690 / 1417
Регистрация: 09.04.2010
Сообщений: 22,546
Блог
25.09.2018, 20:17
Ответы с готовыми решениями:

403 Forbidden
Подскажите пожалуйста. Имеется сайт Когда я захожу на него все нормально, но как только ввожу свой логин и пароль выходит ошибка 403...

403 Forbidden
Понимаю, что тема обсуждалась 100500 раз, но порыскав по форумам я так и не нашла свою ошибку( Разворачиваю локальный сервер (последний раз...

Случайное появление 403 Forbidden только на Internet Explorer
Прошу помочь с моей проблемой. Описываю. Сайт нормально работает без всяких ошибок со всеми браузерами, кроме Internet Explorer. Если...

2
1131 / 681 / 409
Регистрация: 07.11.2015
Сообщений: 1,091
25.09.2018, 22:04 2
IncludeOptional conf.d/*.conf
Тут подлючаются файлы из папки /etc/httpd/conf.d/
Нужен <VirtualHost> с ServerName kidzlandia.ru
0
1131 / 681 / 409
Регистрация: 07.11.2015
Сообщений: 1,091
26.09.2018, 11:11 3
Ещё нужно посмотреть какие установлены права доступа на файл import_cfo-group.xml.
Возможно у apache просто нет доступа на чтение.
0
26.09.2018, 11:11
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
raxper
Эксперт
30234 / 6612 / 1498
Регистрация: 28.12.2010
Сообщений: 21,154
Блог
26.09.2018, 11:11
Помогаю со студенческими работами здесь

Apache. Непонятно почему ошибка "403 Forbidden"
Настраивал сертификат на сервере, https заработал. После, я захотел сделать переадресацию с http на https протокол. Я изменил блок...

Joomla 403 Forbidden Access is forbidden to the requested page
Добрый день. Начал учится устанавливать сайт. сразу к проблеме: первый рас установил джумлу, поковырялся, решил потом поставить шаблон...

При аплоде файла в IFRAME выдается ошибка HTTP Error 403 - Forbidden Internet Explorer.
При аплоде файла в IFRAME выдается ошибка HTTP Error 403 - Forbidden Internet Explorer. Что это может быть.

403 - forbidden
http://thetriumphofgood.us.ms/ вот сайт.что делать??я поставил имиджбордовый движок kusaba x все норм установилось файлы какие надо было...

403 Forbidden
Здравствуйте. Сайт DDOSят уже второй день. Его либо не грузит либо выдает такую ошибку: Forbidden You don't have permission to...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
3
Ответ Создать тему

Редактор формул (кликните на картинку в правом углу, чтобы закрыть)
Опции темы

Новые блоги и статьи
Исследование байт-кода Python: подключаем дизассемблер
stackOverflow 19.02.2025
Многие знают, что Python - интерпретируемый язык, но мало кто задумывается о том, что происходит между написанием кода и его выполнением. На самом деле Python использует промежуточное представление. . .
Исследование байт-кода Python: компиляторы против интерпретаторов
stackOverflow 19.02.2025
Понимание байт-кода Python - основополагающий аспект для разработчиков, стремящихся глубже понять внутренние механизмы языка и оптимизировать производительность своих программ. Байт-код представляет. . .
Comprehensions в Python - что это такое?
stackOverflow 19.02.2025
Когда речь заходит о Python, одной из его самых красивых и мощных возможностей являются списковые включения или comprehensions. Это особые синтаксические конструкции, позволяющие создавать новые. . .
Python правда такой медленный? Развенчиваем миф о медлительности
stackOverflow 19.02.2025
Когда речь заходит о выборе языка программирования для нового проекта, вопрос производительности часто становится одним из ключевых факторов. Python, несмотря на свою популярность и простоту. . .
Динамические формы в Flask
stackOverflow 19.02.2025
Работа с веб-формами часто требует гибкости в отношении количества полей, которые пользователь может заполнить. Представьте ситуацию, когда вам нужно создать форму для ввода контактных данных, где у. . .
Обнаружение объектов в реальном времени на Raspberry Pi с OpenCV и Movidius NCS
stackOverflow 19.02.2025
Технология обнаружения объектов в реальном времени становится все более востребованной в различных областях - от систем безопасности до автономных транспортных средств. Особый интерес представляет. . .
где chromium хранит пароли и как их обнулить в пожарном варианте
jigi33 19.02.2025
Where is the chromium browser stores passwords for a sites где chromium-подобный браузер хранит пароли и как их обнулить в пожарном варианте (see screenshot)
howto get access to external internet resources with kinit
jigi33 19.02.2025
Решение проблемы с необходимостью доп. авторизации по Керберос для автоотработки аутентификации на прокси-сервер (see screenshot)
Отслеживание автомобилей и определение скорости с OpenCV и Python на Raspberry Pi
stackOverflow 19.02.2025
В этой статье мы рассмотрим создание системы отслеживания транспортных средств и определения их скорости с использованием компьютерного зрения и библиотеки OpenCV. Наше решение основано на принципе. . .
ENV (environments) valid paths in linux
jigi33 19.02.2025
Environments paths (see screenshot)
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2025, CyberForum.ru