apache - Expires headers on an Amazon EC2 with Bitnami Wordpress -


i'm working client has wordpress installation (via bitnami) set on amazon ec2. didn't put together, , background front-end developer used cpanel , has limited knowledge command line.

i'm trying modify expires headers improve speed of client's site. following tutorial (http://www.theitbaby.com/wordpress/2013/10/14/optimizing-bitnami-for-pagespeed-insights-and-gtmetrix/) looking htaccess.conf file in opt/bitnami/apps/wordpress/conf/ folder, none existed. make changes in httpd-app.conf file?

alternatively saw few other resources out there line include htaccess.conf file added httpd-app.conf -

include /opt/bitnami/apps/wordpress/conf/htaccess.conf 

do add httpd-app.conf file , create htaccess.conf , work there? sorry confusion, looking direction try typical performance boost work.

so option describing: creating , htaccess.conf file , adding include statement in httpd-app.conf file under /opt/bitnami/apps/wordpress/conf/ correct.

make sure include statement within directory directive , in htaccess.conf file don't need have directory directive:

<directory "/opt/bitnami/apps/wordpress/htdocs"> ... include /opt/bitnami/apps/wordpress/conf/htaccess.conf ... </directory> 

you can add pagespeed configs directly http-app.conf file if you'd inside directory directive too.

there's option, not popular if have access main apache configuration files. can create .htaccess file under /opt/bitnami/apps/wordpress/htdocs , put pagespeed statements there. in care need following statement preconfigured sysadmin in http-app.conf file.

<directory "/opt/bitnami/apps/wordpress/htdocs"> ... allowoverride ... </directory> 

you can read more .htaccess here: http://httpd.apache.org/docs/current/howto/htaccess.html

hope helps.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -