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

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

 



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
ServerRoot "/apps/apache2.4"
Listen 80
<IfModule unixd_module>
	User daemon
	Group daemon
</IfModule>
ServerName stg.test
DocumentRoot "/apps/apache2.4/htdocs"
<Directory />
        Options FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
<Directory "/apps/apache2.4/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

ErrorLog "logs/error_log"
LogLevel info

<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/opt/apps/apache/cgi-bin/"
</IfModule>

<Directory "/opt/apps/apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

Include conf/stg/stg.conf
<VirtualHost *:80>
	ServerName stg.test.com
	
	ErrorLog logs/http_error.log
<Location /server-status>
	SetHandler server-status
	Order allow,deny
	Allow from all
</Location>
    RewriteEngine on
			    # Requests from local machines can go through HTTP. Other
				# requests have to go through HTTPS
				RewriteCond %{REMOTE_ADDR} <<IP ADDRESS>>
				RewriteRule ^/+$ /sites/  [R,L]
	DocumentRoot "/apps/apache2"
<Directory "/" >
    AllowOverride None
    Require all granted
</Directory>

Alias /file_system /opt/apache2/file_system
Alias /sf /opt/apache2/file_system

<Directory /opt/apache2/file_system>
    AllowOverride None
    Require all granted
</Directory>
	
# *******************************************************************************************************************
RewriteRule ^/about(.*) /sites/en_US/about$1 [P]
RewriteRule /es/about(.*) /sites/es_AR/about$1 [P]	

RewriteRule ^/core(.*) /sites/en_US/core$1 [P]
RewriteRule ^/es/core(.*) /sites/es_AR/core$1 [P]	

RewriteRule ^/newsroom(.*) /sites/en_US/about/newsroom$1 [P]
RewriteRule ^/es/newsroom(.*) /sites/es_AR/about/newsroom$1 [P]

RewriteRule ^/events(.*) /sites/en_US/about/events$1 [P]
RewriteRule ^/es/events(.*) /sites/es_AR/about/events$1 [P]

RewriteRule ^/search(.*) /sites/en_US/about/search$1 [P]
RewriteRule /es/(.*) /sites/es_AR/$1 [P]

RewriteRule ^/conf(.*) /sites/en_US/conf$1 [P]
RewriteRule ^/es/conf(.*) /sites/es_AR/conf$1 [P]

RewriteRule ^/alu(.*) /sites/en_US/alu$1 [P]
RewriteRule ^/es/alu(.*) /sites/es_AR/alu$1 [P]

RewriteRule ^/program(.*) /sites/en_US/program$1 [P]
RewriteRule ^/es/program(.*) /sites/es_AR/program$1 [P]

RewriteRule ^/404(.*) /sites/en_US/404$1 [P]
RewriteRule ^/es/404(.*)  /sites/es_AR/404$1 [P]

<IfModule rewrite_module>
	Options +FollowSymlinks
	RewriteEngine	 On
	RewriteOptions Inherit 
</IfModule>


JkMount   /*        stg_live_svr
JkUnMount /sf/* stg_live_svr
JkUnMount /file_system/* stg_live_svr
	JkOptions +ForwardURICompatUnparsed
</VirtualHost>
---------------------------------------------------------------------
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