
As a web developer I often use non-standard ports for web sites which I’m testing. Firefox has recently started blocking some of these ports so this post shows how to get around this.
Type about:config in the URL area and hit enter.
Type network.security.ports.banned.override in the filter area. Nothing will show up if you haven’t done this before.
Right click in the empty preferences area and select New->String
EnterĀ network.security.ports.banned.override as the string name.
Enter a comma separated list of port numbers as the value. I haven’t tested it but supposedly you can also enter port ranges with a dash.
This should have unblocked those ports and the error should go away…
Posted in System Administration | No Comments »
Links to software:
Apache
mod_perl
mod_gzip
Assumes you have already unpacked everything in a directory:
mkdir apache_1.3.41/src/modules/gzip
cp mod_gzip-1.3.26.1a/*.c apache_1.3.41/src/modules/gzip/
cp mod_gzip-1.3.26.1a/*.h apache_1.3.41/src/modules/gzip/
cp mod_gzip-1.3.26.1a/Makefile.tmpl apache_1.3.41/src/modules/gzip/
vim apache_1.3.41/src/modules/gzip/Makefile.tmpl
:1,$s/LIB=libgzip.\$(LIBEXT)/LIB=libgzip.a/
cd mod_perl-1.31
perl Makefile.PL APACHE_SRC=../apache_1.3.41/src DO_HTTPD=1 \
USE_APACI=1 EVERYTHING=1 APACI_ARGS='--prefix=/usr/local/apache \
--enable-module=so --enable-module=rewrite \
--activate-module=src/modules/gzip/mod_gzip.c'
make
make test
sudo make install
Posted in System Administration | No Comments »
To add a permanent static route in AIX 4.3, add the route command in the startup file: /etc/rc.net
route add -net 192.168.15.0 -netmask 255.255.255.0 192.168.0.1
Posted in System Administration | No Comments »
These are the commands I use when I install Perl from source on a Linux server.
perl-5.8.9]#
./configure.gnu --prefix=/usr/local
make
make test
make install
cd /usr/bin
mv perl original.perl
ln -s /usr/local/bin/perl
mv cpan original.cpan
ln -s /usr/local/bin/cpan
mv perldoc original.perldoc
ln -s /usr/local/bin/perldoc
Posted in System Administration | No Comments »
The margin and padding CSS properties allow you to specify between one and
four values. This is something I use often but find difficult to remember how it works.
With four values remember to start at the top and go clockwise around the box like so: top,right,bottom,left
padding:10px 20px 30px 40px;
top padding is 10px
right padding is 20px
bottom padding is 35px
left padding is 40px
Using three values: 1st is top, 2nd is left/right, 3rd is bottom
padding:10px 20px 30px;
top padding is 10px
right and left paddings are 20px
bottom padding is 30px
Using two values 1st is top and bottom, 2nd is left/right
padding:10px 20px;
top and bottom paddings are 10px
right and left paddings are 20px
Using one value is applied to all four sides
padding:20px;
all four paddings are 20px
Posted in Web Development | No Comments »