tagra123
July 22nd, 2008, 12:04 PM
I have several recording and a few hundred channels mythweb works with. Page load time were too slow for my taste so I did some googling.
Loading mythweb listing page was taking about 45 seconds now its about 12.
Found the helpful info here: http://threebit.net/mail-archive/mythtv-users/msg11624.html
So on my myth system I edited (yours may be different)
sudo gedit /etc/apache2/sites-enabled/mythwebdir
The original content was
<Directory "/var/www/mythweb">
Options FollowSymLinks
AllowOverride All
</Directory>
It was changed to
<Directory "/var/www/mythweb">
Options FollowSymLinks
AllowOverride All
ExpiresActive On
ExpiresByType application/x-_javascript_ "modification plus 1 year"
</Directory>
Try to restart apache to see if everything is correct
sudo /etc/init.d/apache2 reload
If you receive an error about no "ExpiresActive" then there are a couple more commands to install the module.
cd /etc/apache2/mods-available
sudo a2enmod expires
sudo a2enmod deflate
sudo a2enmod headers
sudo /etc/init.d/apache2 reload
The error messages about ExpiresActive should now be gone and fast page loads of mythweb.
Awesome improvement.
Loading mythweb listing page was taking about 45 seconds now its about 12.
Found the helpful info here: http://threebit.net/mail-archive/mythtv-users/msg11624.html
So on my myth system I edited (yours may be different)
sudo gedit /etc/apache2/sites-enabled/mythwebdir
The original content was
<Directory "/var/www/mythweb">
Options FollowSymLinks
AllowOverride All
</Directory>
It was changed to
<Directory "/var/www/mythweb">
Options FollowSymLinks
AllowOverride All
ExpiresActive On
ExpiresByType application/x-_javascript_ "modification plus 1 year"
</Directory>
Try to restart apache to see if everything is correct
sudo /etc/init.d/apache2 reload
If you receive an error about no "ExpiresActive" then there are a couple more commands to install the module.
cd /etc/apache2/mods-available
sudo a2enmod expires
sudo a2enmod deflate
sudo a2enmod headers
sudo /etc/init.d/apache2 reload
The error messages about ExpiresActive should now be gone and fast page loads of mythweb.
Awesome improvement.