Thursday, April 22nd, 2010
If you want to enforce the users of your Apache server to use https instead of http, you can write a Rewrite which works without the mod_ssl module.
The Rewrite is stored either in your httpd configuration or in a .htaccess file.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301]
Sometimes you run into problems with authentication systems which are configured in a .htaccess file too. This leads to double authentications which you want to avoid because the first authentication works through http (which is bad enough), then the rewrite is putting you to https and you have to authenticate again.
To avoid this, you can store the configuration of the authentication system into your ssl httpd configuration in a directory tag. This ensures that the user of your web-server when landing on http does not have to authenticate but will be placed to https and have to authenticate there.
If you do not have access to the ssl configuration you might want to test out
SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq “http://yourservername”
ErrorDocument 403 https://yourservername
in your .htaccess file. I have to admit i didn’t test the SSLRequireSSL option by myself, but it worked for some people.
For more information about Rewrites, .htaccess files and ssl support, have a look at the Apache httpd documentation
Tags: .htaccess, apache, authentication, configuration, double, enforce, force, forwarding, http, httpd, https, rewrite, ssl
Posted in Fedora, Projects, Red Hat | No Comments »
Monday, April 21st, 2008
Here is the source code of the Guild-roster-site http://tavern.surfsite.org/ based on Drupal.
There is a databasedump within that you can use. There is no user stored in it, so perhaps the best idea would be setting up a Drupal with an admin user and then store the dump into the database.
download:
tavern.tar.gz
Posted in News, Projects, WoW | No Comments »
Monday, November 26th, 2007
I created a Homepage where Guilds can show what classes they need.
Player can search with filters in this list.
The site is on:
http://tavern.surfsite.org/
Posted in Projects, WoW | 4 Comments »
Monday, January 8th, 2007
I created a rpm for php-gtk-2.0.0-0 .
Thanks for advice to Harald Hoyer
You need php-gd for php-gtk.
yum -y update php-gd
If you installing this rpm, be sure to load the php-gtk extension in with
$ echo extension=php_gtk2.so > /etc/php.d/php-gtk.ini
note: your apache won’t work with this extension loaded.
I am working on a way to load this module only when the cli of php is used.
Download:
Source rpm:
php-gtk-2.0.0-0.alpha.1.src.rpm
Fedora 6 i386 :
php-gtk-2.0.0-0.alpha.1.i386.rpm
debuginfo:
php-gtk-debuginfo-2.0.0-0.alpha.1.i386.rpm
Further information:
http://gtk.php.net/
Posted in Fedora, Projects, rpm | 6 Comments »
Friday, December 1st, 2006
I installed PhpDocumentor and it works really good. I like the documentation of the classes and with some minor comments, you can make the documentation of your php code really good readable.
$pear install PhpDocumentor
should do the install.
http://www.phpdoc.org/
Posted in News, Projects | No Comments »
Friday, December 1st, 2006
The dictionary is now locked and can be accessed only by users with a login.
If you wish to join these users, you can contact me.
http://dict.surfsite.org
Posted in News, Projects | No Comments »
Wednesday, August 23rd, 2006
I started an online dictionary.
For now, you can add a word and the corresponding translation of the word.
I am going to add a test section, where you can test your skills. The program will tell you your mistakes. Also the program will store your mistakes and take the words where you have proplems with more than other words.
There are 2 Languages at the moment: german and swedish. But i will create an option, where you can add any language you want.
The url is
http://dict.surfsite.org/
Of course you can provide me with more ideas.
Posted in Projects | No Comments »