mod_rewrite, Apache2 and Ubuntu Gutsy

2007-11-18 by xpheas
The mod_rewrite module is not activated by default, if you need the module, do this:

1. Open a Konsole and type "sudo a2enmod" (the apache module-configuration tool)
BASH-Code:
1
2
3
Which module would you like to enable?
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic mod_python negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status suexec unique_id userdir usertrack version vhost_alias
Module name?

2. Enter the module name "rewrite" and press enter
3. Open "/etc/apache2/sites-enabled/000-default" with sudo rights and change the "AllowOverride" option from "None" to "All" in the first 2 <Directory /> Blocks
BASH-Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<VirtualHost *>
        ServerAdmin root@xpheas.com
        DocumentRoot /var/www
 
				#first block
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
 
				#second block
        <Directory /var/www>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

4. Restart the webserver (sudo /etc/init.d/apache2 force-reload) and the module should work!

  » comments (6)

Upgraded Blog

2007-11-14 by xpheas
Long time since the last update, i know...

Well, my blog has been moved to the top level domain xpheas.com.
I also did some design changes.

Hope you like it.

  » comments (0)