{"id":296,"date":"2009-04-15T11:34:51","date_gmt":"2009-04-15T04:34:51","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=296"},"modified":"2009-04-15T11:41:14","modified_gmt":"2009-04-15T04:41:14","slug":"how-to-enable-modules-on-apache-on-ubuntu","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=296","title":{"rendered":"How to enable modules on Apache in Ubuntu"},"content":{"rendered":"<p style=\"text-align: justify;\"><strong>Enable mod_rewrite on Apache<\/strong><\/p>\n<p style=\"text-align: justify;\">Simply, mod_rewrite is used for rewriting a URL at the server level, giving the user     output for that final page.  So, for example, a user may ask for     <code>http:\/\/www.somesite.com\/widgets\/blue\/<\/code>, but will really be given     <code>http:\/\/www.somesite.com\/widgets.php?colour=blue<\/code> by the server.  Of course, the    user will be none the wiser to this little bit of chicanery.<\/p>\n<p style=\"text-align: justify;\">an <span class=\"def\">Apache<\/span> web server module installed on all of our <span class=\"def\">Linux<\/span> servers by default; it does not have to be installed or enabled. In case you haven&#8217;t isntalled it you can try this<\/p>\n<pre style=\"text-align: justify;\"># sudo a2enmod rewrite<\/pre>\n<p style=\"text-align: justify;\"><strong>Enable mod_headers on Apache<\/strong><\/p>\n<p style=\"text-align: justify;\">For customization of HTTP request and response headers, you should enable mod_headers on Apache.<\/p>\n<pre style=\"text-align: justify;\">sudo a2enmod headers<\/pre>\n<p style=\"text-align: justify;\"><strong>Enable mod_expires on Apache<\/strong><br \/>\na module that allows you to set a given period of time to live for web pages and other objects served from web pages. The idea is to inform proxies like Squid and web browser how often they should reload objects from the server. This will have you bandwidth and server load, because clients who follow the header will reload objects less frequently.<\/p>\n<pre style=\"text-align: justify;\"># sudo a2enmod expires<\/pre>\n<p style=\"text-align: justify;\">Then reload your apache<br \/>\n# \/etc\/init.d\/apache2 force-reload<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable mod_rewrite on Apache Simply, mod_rewrite is used for rewriting a URL at the server level, giving the user output for that final page. So, for example, a user may ask for http:\/\/www.somesite.com\/widgets\/blue\/, but will really be given http:\/\/www.somesite.com\/widgets.php?colour=blue by the server. Of course, the user will be none the wiser to this little bit [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[891],"tags":[1334],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-php","tag-modules-on-apache"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":4,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions\/300"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}