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]
</IfModule>
</IfModule>
<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
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
</VirtualHost>
Listen 80 https
Listen 443 http
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
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
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
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
</IfModule>
CustomLog "logs/access_log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<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
</IfModule>
AddDefaultCharset UTF-8
<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>
EnableSendfile on
IncludeOptional conf.d/*.conf
`