Gentoo Blog

The ultimate Gentoo Blog
  • rss
  • Home
  • About

vim activate Syntax highlighting on Debian/ Ubuntu

Simon | September 9, 2008

1. Install vim

aptitude install vim

2. Edit the vimrc

vim /etc/vim/vimrc

3. remove the quotes in front of syntax highlighting

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on

Thats it enjoy the colours :)

Kommentare
1 Kommentar »
Kategorien
Ubuntu/Debian
RSS Kommentare RSS Kommentare
Trackback Trackback

Confixx Mod-Rewrite

Simon | September 5, 2008

To use Mod-Rewrite in Confixx for a certain vhost you must do the following

1. Log in to confixx as admin and select http special

2. Choose the customer or domian you wish to edit

3. Select advanced options an copy the following text into the provided text box

<Directory "/var/www/webxx/html">
Options +FollowSymLinks +SymLinksIfOwnerMatch +Multiviews
AllowOverride All
</Directory>

Please change the path and the webxx entry accordingly.

4. Create a .htaccess in the html directory

Example:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ http://www.example.com/ [L,R=301]

This rule should rewrite all non www URL’s with www.

Kommentare
Keine Kommentare »
Kategorien
confixx/Plesk
RSS Kommentare RSS Kommentare
Trackback Trackback

Ubuntu 8.10 Intrepid Ibex Countdown

Simon | September 1, 2008

Countdown von Ubuntu 8.10 (intrepid ibex)

Kommentare
Keine Kommentare »
Kategorien
Ubuntu/Debian
RSS Kommentare RSS Kommentare
Trackback Trackback

 

September 2008
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

Links

  • AGF Clan
  • Gentoo
  • http.net
  • michael-fuchs.net

Categories

  • confixx/Plesk
  • fun
  • Gentoo
  • iptables
  • news
  • Stuff
  • Ubuntu/Debian
  • Xen/Vmware

Search Blog

rss RSS Kommentare valid xhtml 1.1 design by jide powered by Wordpress get firefox