前提・実現したいこと
サーバー移行で新サーバーにソースコードを展開し、
動作確認をしております。
windowsのhostsファイルを編集し、ドメインでアクセスできるようにして
ブラウザで表示したところ、このサイトにアクセスできませんのエラーが出ております。
発生している問題・エラーメッセージ
log
1error.log 2[authz_core:error] [pid 557183] [client 39.110.219.74:62080] AH01630: client denied by server configuration: 3
該当のソースコード
conf
1#httpd.conf 2ServerRoot "/etc/httpd" 3PidFile run/httpd.pid 4 5Timeout 30 6KeepAlive On 7#KeepAlive Off 8MaxKeepAliveRequests 90 9KeepAliveTimeout 2 10 11<IfModule prefork.c> 12StartServers 50 13MinSpareServers 50 14MaxSpareServers 50 15ServerLimit 250 16MaxClients 250 17MaxRequestsPerChild 2000 18</IfModule> 19 20Listen 80 21 22Include conf.modules.d/*.conf 23 24User apache 25Group apache 26 27ServerAdmin root@xx.net 28ServerName xx.xx.xx.xx:80 29 30ExtendedStatus On 31ServerTokens Prod 32ServerSignature Off 33UseCanonicalName Off 34TraceEnable Off 35FileETag None 36 37DocumentRoot "/var/www/html" 38 39<Directory /> 40 Options FollowSymLinks 41 AllowOverride None 42 Require all denied 43</Directory> 44 45DirectoryIndex index.php index.cgi index.shtml index.html 46 47AccessFileName .htaccess 48<Files ~ "^.ht"> 49 Require all denied 50</Files> 51 52<Files ~ "^wp-*.php"> 53 Require all denied 54</Files> 55 56<Files ~ "^xmlrpc.php"> 57 Require all granted 58</Files> 59 60TypesConfig /etc/mime.types 61 62#DefaultType text/plain 63 64<IfModule mod_mime_magic.c> 65 MIMEMagicFile conf/magic 66</IfModule> 67 68HostnameLookups Off 69 70#EnableMMAP off 71 72#EnableSendfile off 73 74ErrorLog /home/www/log/error.log 75 76LogLevel warn 77 78LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %v" combined 79LogFormat "%h %l %u %t \"%r\" %>s %b" common 80LogFormat "%{Referer}i -> %U" referer 81LogFormat "%{User-agent}i" agent 82 83SetEnvIfNoCase Request_URI ".(gif|jpg|jpeg|png|svg|swf|cur|ico|js|css|eot|ttf|woff|woff2)$" no_log 84SetEnvIf Remote_Addr "^127.0.0.1" no_log 85 86CustomLog /home/www/log/access.log combined 87 88RedirectMatch gone ^/apple-touch-icon* 89 90AddLanguage ca .ca 91AddLanguage cs .cz .cs 92AddLanguage da .dk 93AddLanguage de .de 94AddLanguage el .el 95AddLanguage en .en 96AddLanguage eo .eo 97AddLanguage es .es 98AddLanguage et .et 99AddLanguage fr .fr 100AddLanguage he .he 101AddLanguage hr .hr 102AddLanguage it .it 103AddLanguage ja .ja 104AddLanguage ko .ko 105AddLanguage ltz .ltz 106AddLanguage nl .nl 107AddLanguage nn .nn 108AddLanguage no .no 109AddLanguage pl .po 110AddLanguage pt .pt 111AddLanguage pt-BR .pt-br 112AddLanguage ru .ru 113AddLanguage sv .sv 114AddLanguage zh-CN .zh-cn 115AddLanguage zh-TW .zh-tw 116 117LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW 118ForceLanguagePriority Prefer Fallback 119 120AddDefaultCharset Off 121 122AddType application/x-tar .tgz 123AddEncoding x-compress .Z 124AddEncoding x-gzip .gz .tgz 125AddType application/x-compress .Z 126AddType application/x-gzip .gz .tgz 127 128AddHandler cgi-script .cgi 129 130AddHandler type-map var 131 132AddType text/html .shtml 133AddOutputFilter INCLUDES .shtml 134 135Alias /error/ "/var/www/error/" 136 137<IfModule mod_negotiation.c> 138<IfModule mod_include.c> 139 <Directory "/var/www/error"> 140 AllowOverride None 141 Options IncludesNoExec 142 AddOutputFilter Includes html 143 AddHandler type-map var 144 Require all granted 145 LanguagePriority en es de fr 146 ForceLanguagePriority Prefer Fallback 147 </Directory> 148</IfModule> 149</IfModule> 150 151BrowserMatch "Mozilla/2" nokeepalive 152BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0 153BrowserMatch "RealPlayer 4.0" force-response-1.0 154BrowserMatch "Java/1.0" force-response-1.0 155BrowserMatch "JDK/1.0" force-response-1.0 156BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully 157BrowserMatch "MS FrontPage" redirect-carefully 158BrowserMatch "^WebDrive" redirect-carefully 159BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully 160BrowserMatch "^gnome-vfs/1.0" redirect-carefully 161BrowserMatch "^XML Spy" redirect-carefully 162BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully 163 164<Location /server-status> 165 SetHandler server-status 166 Require all denied 167 Allow from 127.0.0.1 168 Allow from XX.XX.XX.XX 169</Location> 170Include conf/Includes/*.conf 171 172# Include /etc/httpd/conf.d/nagios.conf
conf
1# 00-directip.conf 2<VirtualHost XX.XX.XX.XX:80> 3 ServerName xx 4DocumentRoot "/home/www/xx.co.jp/test/data" 5# <Location /> 6# Require all denied 7# </Location> 8</VirtualHost> 9 10<VirtualHost XX.XX.XX.XX:443> 11 ServerName XX.XX.XX.XX 12 SSLEngine on 13DocumentRoot "/home/www/xx.co.jp/test/data" 14 SSLCertificateKeyFile /etc/httpd/conf/certs/xx.co.jp.key 15 SSLCertificateFile /etc/httpd/conf/certs/xx.co.jp.crt 16 SSLCertificateChainFile /etc/httpd/conf/certs/xx.co.jp.ca 17 18# <Location /> 19# Require all denied 20# </Location> 21</VirtualHost> 22
試したこと
apache2.4から記述が変更になったRequire all ~には修正しております。
また、systemctl restart httpd
やapachectl configtest
は行っております。
補足情報(FW/ツールのバージョンなど)
apache 2.4.37
centos 8.2
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。