You can compress static files such as image files (.jpg, .png, ....), Flash files (.swf), Style sheets (.css), Javascript (.js) to reduce size of fetched files and make pages load faster. You can do gzip compression on these files via .htaccess file # 480 weeks <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "max-age=290304000, public" </FilesMatch> # … Continue reading gzip compression using .htaccess
Category: Application Servers
Application servers that resond to requests.
Application Servers are like Apache, Nginx
I had a problem with my apache2 configuration that it seems not reading .htaccess files at all, I tried many solutions but nothing worked until I found this question on stackoverflow I'm not convinced with the solution but it worked fine for me ------------------------------------------------------------------------------------------------- To get this working, I added the following to /etc/apache2/httpd.conf (which is a … Continue reading Problem with Apache 2 on linux not reading .htaccess files
$ service apache2 restart
Task: Start Apache 2 Server # /etc/init.d/apache2 start or $ sudo /etc/init.d/apache2 start Task: Restart Apache 2 Server # /etc/init.d/apache2 restart or $ sudo /etc/init.d/apache2 restart Task: Stop Apache 2 Server # /etc/init.d/apache2 stop or $ sudo /etc/init.d/apache2 stop
just the command: sudo a2enmod rewrite