Hot answers tagged

1

This is another acceptable syntax for .htaccess file: <RequireAll> Require all granted Require not ip 50.62.136.183 </RequireAll>


1

You must add ShowForbidden http://www.rfc3092.net/2013/09/apache-doesnt-show-protected-folders-foo/ IndexOptions +ShowForbidden Do restart Apache after adding this line. For reference: https://httpd.apache.org/docs/2.4/mod/mod_autoindex.html#IndexOptions ShowForbidden If specified, Apache httpd will show files normally hidden because the ...


1

According to the Apache wiki this error means you got permission problems with your website root To diagnose them open a second terminal and issue the following command as root: su -l apache -s /bin/bash It will log you as apache user and will allow to find which directory/file is inaccessible by navigating to your website root with cd /[website root]/ ...


1

The following should work: Header set Content-Security-Policy "default-src http://domainA.com; \ script-src http://domainB.com"


1

Your question seems to have conflicting statements, but assuming this statement I want requests to http://myserver.com/book/1234 to actually show the content form php file http://myserver.com/book.php?id=1234 is what you want. If you request http://myserver.com/book.php?id=1234 - then your server will flip out based on your current .htaccess. The ...



Only top voted, non community-wiki answers of a minimum length are eligible