If you need to show a 404 error page from your controller without using an exception, this could help: render :file => “#{RAILS_ROOT}/public/404.html”, :status => 404 and return
Filed under: English, Ruby, Ruby On Rails on Juni 21st, 2008 | No Comments »
I’ve tried to use the new authenticate_or_request_with_http_basic function of Rails 2 to include a simple authentication for some special pages in an application. But Apache kept refusing authorization, even if the authenticate_or_request_with_http_basic-block was set to be always true. To fix this, add or change this in your public/.htaccess (if using FastCGI): RewriteRule ^(.*)$ dispatch.fcgi [E=X-HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,L] [...]
Filed under: English, Rails 2.0, Rails 2.1, Ruby, Ruby On Rails on Juni 12th, 2008 | No Comments »
I’ve transferred a wordpress system to another server which runs PHP 5. The language file didn’t work anymore. After one annoying hour I’ve found out that the gettext functions are buggy. Solution: Get the current version of php-gettext at http://download.savannah.nongnu.org/releases/php-gettext/ Extract the gettext.php and streams.php to your wp-includes-directory That’s all. Keywords: wordpress, localization, php 5, [...]
Filed under: English, WordPress on Januar 7th, 2008 | No Comments »
i had to deal with a confixx-version which uses the home-directory /XnirvanaX for all mail users. i wanted to install imap-uw, so that the users can access their mailboxes through imap. problem: all created mailboxes by or through imap and files like .mailboxlist would go to /XnirvanaX. mailbox “Trash” for user1 would be /XnirvanaX/Trash, just [...]
Filed under: English, IMAP on September 29th, 2006 | No Comments »
i had problems using the s2s-functions on a system which is identified by a dynamic dns entry. solution found here: http://ejabberd.jabber.ru/subdomains everything works fine now after switching to dyndns.com and enabling wildcard subdomains.
Filed under: ejabberd, English on September 24th, 2006 | No Comments »