Ivan Radovanovic's picture

.htaccess based authentication with apache

Put this in .htaccess file

AuthUserFile path_goes_here
AuthGroupFile /dev/null
AuthName EnterPassword
AuthType Basic
require valid-user

File with usernames and passwords can be generated with htpasswd path username utility from command line, or use the following line to display hashed pairs in console htpasswd -n username

Ivan Radovanovic's picture

Running ASP.Net with Lighttpd on FreeBSD

As a first step for running asp.net applications using lighttpd webserver on FreeBSD you need to download source for xsp from mono project site. Here follow instructions for patching and compiling this source in order to run (hopefully) better on FreeBSD. These instructions apply to xsp-2.10.2

You need to patch following files
1. src/Mono.WebServer.FastCgi/Record.cs (patch Record.cs < Record.cs.diff)
2. src/Mono.WebServer.FastCgi/UnmanagedSocket.cs
3. src/Mono.WebServer.FastCgi/main.cs

Ivan Radovanovic's picture

Compiling Mono 2.10.9 on FreeBSD 8

Mono sources as downloaded from original website unfortunately can't be compiled out of the box on FreeBSD 8 amd64. In order to make them compile it is necessary to modify several files:

1. mcs/class/System/System.IO/KeventWatcher.cs (patch KeventWatcher.cs < KeventWatcher.cs.diff)
2. mono/metadata/appdomain.c
3. mono/utils/mono-sigcontext.h

After this mono should compile without problems

There is port directory attached (mono2.10.9.tar.bz2)


Subscribe to codenicer.com RSS