_escaped_fragment_ Not working httpd Apache config

I’m new Apache. I tired everything , escaped_fragment doesn’t work at all for phantom nodejs stack to prerender the html page (lots of javascript) . Below is apache config . Please correct it , i did alot of search but none salution worked for me

`ServerRoot "/etc/httpd"
User apache
Group apache
ServerAdmin root@localhost
Include conf.modules.d/*.conf
ServerSignature Off

# Render from phantom Stack 
<IfModule mod_rewrite.c>
RewriteEngine on
  <IfModule mod_proxy_http.c>
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
RewriteRule (.*) http://ec2-52-xxx-63.eu-west-1.compute.amazonaws.com:3030/%1? [P]

<VirtualHost *:443>
DocumentRoot /var/www/html
ServerName www.website.com:443
SSLEngine on
SSLCertificateFile /etc/httpd/karma/1xxx41.crt
SSLCertificateKeyFile /etc/httpd/xxxma/ryxxns.key
SSLCertificateChainFile /etc/httpd/kxxxa/PoxxxtiveSSL.crt
SSLCompression off
SSLProtocol All -SSLv2 -SSLv3

Listen  80 https
Listen 443 http

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

DocumentRoot "/var/www/html"

<Directory "/var/www/html">
Require all granted
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?bamer/(.*?)/?$ /bamer.html?user=$1 [L]
RewriteRule ^/?post/(.*?)/?$ /post.html?user=$1 [L]
RewriteRule ^/?edit/(.*?)/?$ /edit.html?user=$1 [L]
#Remove HTML extention 
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Options Indexes FollowSymLinks

<IfModule dir_module>
    DirectoryIndex index.html

<Files ".ht*">
    Require all denied

ErrorLog "logs/error_log"
LogLevel warn

<IfModule log_config_module>
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

    CustomLog "logs/access_log" combined

<IfModule alias_module>

    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"


<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted

<IfModule mime_module>
    TypesConfig /etc/mime.types

    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml

AddDefaultCharset UTF-8

<IfModule mime_magic_module>
    MIMEMagicFile conf/magic

EnableSendfile on
IncludeOptional conf.d/*.conf

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.