特定のIPアドレスからの許可を考えています。
環境centOS7.2
apache 2.4.25
mod_ssl搭載
# vim /etc/httpd/conf/httpd.conf <Directory "/var/www"> AllowOverride None # Allow open access: Require all granted </Directory>
この部分の下に
<Directory "/var/www"> AllowOverride None # Allow open access: Require all granted </Directory> <Directory "/var/www/html/hoge/hoge"> AllowOverride None Require all deny Require ip 123.45.67.89 </Directory>
とし、
# systemctl restart httpd.service
とやってもエラーが出ます。
※でなくなりました。しかし、特定のグローバルIPアドレスから見られません。
二番目のAllOverride Noneを削除しても同じようにでます。
ちなみにssl通信のサイトです。
ここに記述してよいのかということもお聞きしたいと思います。
また、ブラウザで確認するも、特定のグローバルIPアドレスからアクセスしている状態で、
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
とでます。
回答3件
あなたの回答
tips
プレビュー