new site, no more updates here
ubuntu + apache + ssl + mod_rewrite proxy
October 10, 2006I wanted to be able to get to a couple of internal only sites securely from outside of my home network. So, I added an https virtual server with password that proxies the internal stuff. It goes a little something like this:
enable the ssl module:
a2enmod ssl
make a cert
apache2-ssl-certificate
make an htpasswd file
htpasswd -c /etc/apache2/utility.passwd admin
setup apache to use port 443
echo “Listen 443″ >> /etc/apache2/ports.conf
create your virtual server
vi /etc/apache2/sites-available/utility_proxy
NameVirtualHost *:443
<VirtualHost *:443>
ServerName yourserver.yourdomain.com
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
<Location "/">
AuthType Basic
AuthName "Utility Server"
AuthUserFile /etc/apache2/utility.passwd
Require valid-user
</Location>
RewriteEngine On
DocumentRoot /var/www
#add rules here for your internal stuff
RewriteRule ^/routerproxy/(.*) http://192.168.1.254/$1 [P]
RewriteRule ^/localhost8080/(.*) http://localhost:8080/$1 [P]
</VirtualHost>
enable the virtual
ln -s /etc/apache2/sites-available/utility_proxy /etc/apache2/sites-enabled/utility_proxy
restart apache
/etc/init.d/apache2 restart
This is assuming you already have some means of getting to this server from the outside. Your proxies will be availible at https://yourserver.yourdomain.com/routerproxy/ etc. I had some trouble with having authentication on when the site that was being proxied also had authentication. So I had to change the Location tag so that rewrite rule was outside of the authenticaion in my apache server and only used the authentication on the proxied server.
coldfusion 7.0.1 and apache 2.2
October 6, 2006I don’t know how many people really need this but i wanted to put it out there even if it’s just for my own benefit later on. I just had a little battle getting coldfusion 7 and apache to work so here’s my tips.
I followed this article. To get it to work though, i had to make sure to use the coldfusion java in /opt/coldfusion7/runtime/bin/java. The second thing was that I had already tried setting up apache with the connector script, so i had that config already in place. I had to edit my httpd.conf and remove the coldfusion stuff. And I also moved the wsconfig directory in {cf_root}/runtime/lib to wsconfig.bkp. These seem like simple things, but there are no hints that helped me get to these. I just wanted to try to save somebody an hour or two down the road.
top ten ways to get dugg
October 5, 2006I’ve been reading digg articles for a while, and have noticed a few trends so:
In no particular order, the top 10 ways to get dugg…
- make a top ten list
- make a title that has a pre-title title like “Apple:” or “Crazy Video:”
- start the title with “How to”
- post a review of a product that has already been dugg, but say there’s “new information!”
- take a video from youtube and post on google video
- rehash that same list of funny domain names (penismightier.com)
- anything about ajax
- anything about ubuntu
- anything about microsoft
- anything about apple
plus, you can make any of these a combo.
top ten ubuntu reviews
how to ajax like microsoft
the sky’s the limit!
Posted by challahc
Posted by challahc
Posted by challahc