Apache 2.4 - 403 Forbidden: After Upgraded the Apache from 2.2.21 to 2.4.25 for all links

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache 2.4 - 403 Forbidden: After Upgraded the Apache from 2.2.21 to 2.4.25 for all links

Jayaram Ponnusamy
Hello,

We have recently upgraded the Apache from 2.2.21 to 2.4.25 on RHEL6.9. Our Server Architecture is (F5 [For Load Balance] -> Apache WebServer [For Redirection & URL Mapping] -> Tomcat AppServer [Running a Java Based CMS]).

We are using Apache to connect Tomcat by MOD_JK and mapping the URL (Attached VirtualHost.conf), and No applications/code are running on WebServers.

PROBLEM:
After upgraded the Apache We have updated the Apche 2.4 Parameters like from "Allow from all" to "Require all granted". (Attached httpd.conf content)

Primarly our All URLs will starts with /sites and static_files will be starts with /file_system or /sf. So, these urls are working without any issue.
Apart from that if any other values for example http://site.com/news then its redirect to 403 page. Even we added below item in both httpd.conf & virtualhost.

<Directory /opt/apps/shared/file_system>
    AllowOverride None
    Require all granted
</Directory>

Due to this issue, we still running our site with Apache 2.2.21. Kindly please let me know what i missed to Correct.

--

Thanks & Regards,

Jayaram


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

http_conf.txt (1K) Download Attachment
virtualhost_conf.txt (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Apache 2.4 - 403 Forbidden: After Upgraded the Apache from 2.2.21 to 2.4.25 for all links

Gillis J. de Nijs-2
Did you read the upgrade guide at  http://httpd.apache.org/docs/2.4/upgrading.html ?  It outlines the changes in authorization and access control.  I didn't read your configurations, but this might be a good starting point to get you going.

Kind regards,
Gillis
Reply | Threaded
Open this post in threaded view
|

Re: Apache 2.4 - 403 Forbidden: After Upgraded the Apache from 2.2.21 to 2.4.25 for all links

Eric Covener
In reply to this post by Jayaram Ponnusamy
> Apart from that if any other values for example http://site.com/news then its redirect to 403 page. Even we added below item in both httpd.conf & virtualhost.

What does the error log say?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Apache 2.4 - 403 Forbidden: After Upgraded the Apache from 2.2.21 to 2.4.25 for all links

Jayaram Ponnusamy
Thanks for your support,

I find below errors from http_error.log: I Enabled proxy_module and its working fine now.

[Thu Dec 05 09:14:06.444407 2019] [rewrite:error] [pid 10315:tid 140217512064768] [client 120.120.32.142:54809] AH00669: attempt to make remote request from mod_rewrite without proxy enabled: proxy:http://site.com/sites/en_US/about/newsroom/Press-no-pic, referer: http://site.com/sites/


On Wed, Dec 4, 2019 at 3:09 PM Eric Covener <[hidden email]> wrote:
> Apart from that if any other values for example http://site.com/news then its redirect to 403 page. Even we added below item in both httpd.conf & virtualhost.

What does the error log say?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]



--

Thanks & Regards,

Jayaram Ponnusamy 
Mobile: +974-5512-3315