[sysadmin] vhostlist


( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105
Call Stack
#TimeMemoryFunctionLocation
10.000153060{main}( )../index.php:0
20.000256500require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.188916855920require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.190616918500include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.227517037144the_content( )../single.php:16
60.227617039100apply_filters( )../post-template.php:169
70.231217046568call_user_func_array ( )../plugin.php:166
80.231217046752vim_color( )../plugin.php:0
90.231217047088preg_replace ( )../wp-vimcolor.php:143
100.231317057692preg_replace ( )../wp-vimcolor.php:143
110.231317058848vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:11
120.241217076096fread ( )../wp-vimcolor.php:105

On our public web server, we are hosting a
lot of stuff. Currently, we have over one hundred virtual hosts defined in
Apache.

One day, I realised that I didn’t have an overview any more of all these
deployments. That’s when I decided to write a simple script to produce me a
list of all virtual hosts (and aliases) in HTML. As it’s all about file
parsing, and I got a bit bored of Perl, I decided to write it in AWK and wrap
it in sh so it can be installed as a CGI script on the same web server.

It’s still really basic, but it serves it’s purpose. Wished feature is to show
a difference between ServerName’s and ServerAlias’es. This is left as an
exercise to the reader.

Add a Comment   Trackback  

Add a Comment