Re: 403 Forbidden Error on Apache 2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Directory / is the root of the filesystem, so it should always be set
in server config with Require all denied, it is not the documentroot,
chances are you have a Directory directive elsewhere denying, also
make 100% sure you don't mix Order/Allow/Deny with 2.4 directives.

So:

Server config
<Directory />
Require all denied
</Directry>

in virtualhost and for documentroot:

<Virtualhost *:port>
 DocumentRoot /path/do/docroot

###
# Other directives here

<Directory /path/to/docroot>
Require all granted
</Directory>

<Virtualhost>

El mié., 6 feb. 2019 a las 6:03, Dan Ehrlich
(<dan@xxxxxxxxxxxxxxxxx.invalid>) escribió:
>
> I think it’s the L in your rewrite rule.
>
> It stands for Last and means it won’t process any further rules. Remove it and it should (maybe) work.
>
> Someone else feel free to correct me if I’m wrong.
>
>
> On Feb 5, 2019, at 8:55 PM, Jayaram Ponnusamy <jayaram.ponnusamy@xxxxxxxxx> wrote:
>
> Dear All,
> Our Site is Public Site and there is no restriction @ any level. We are using apache on top of Java based CMS (Tomcat Server).
> Recently we upgraded Apache from 2.2.21 to 2.4.25. Where ever     Order allow,deny & Allow from all coming there we changed it to Require all granted but root page only loading without any issue. We are getting 403 Forbidden Message on Rest of the Pages. Kindly please help how to enable permission to all folder and its subfolders in 2.4.25.
>
> For Example:
> Working:
> http://domain.com/sites
>
> Notworking:
> http://domain.com/newsroom
> http://domain.com/events
> http://domain.com/about
> & Other pages
>
> RewriteEngine on
>         RewriteRule ^/+$ /sites/  [R,L]
> DocumentRoot "/apps/apache2.4"
> <Directory />
>     Options FollowSymLinks
>     AllowOverride None
> Require all granted
> </Directory>



-- 
Daniel Ferradal
HTTPD Project
#httpd help at Freenode

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux