Mongrel + Apache 2.2 + Windows

Added by SwedishMatch TimerWolf about 9 years ago

After finally got the Redmine 1.2.0 updated i can´t get it work whit

Apache + Mongrel + Windows

I use this patch:

But it still dosen´t work when i load it in Apache i just show the src code of the webpage

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" xml:lang="en">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="Redmine" />
<meta name="keywords" content="issue,bug,tracker" />
<meta name="csrf-param" content="authenticity_token"/>
<meta name="csrf-token" content="kRlxylnfHV0wSb09OEBhkjtusRTgNZxz9inH0s14NCk="/>
<link rel='shortcut icon' href='/favicon.ico?1306774020' />
<link href="/stylesheets/application.css?1306774020" media="all" rel="stylesheet" type="text/css" />

<script src="/javascripts/prototype.js?1306774020" type="text/javascript"></script>
<script src="/javascripts/effects.js?1306774020" type="text/javascript"></script>
<script src="/javascripts/dragdrop.js?1306774020" type="text/javascript"></script>
<script src="/javascripts/controls.js?1306774020" type="text/javascript"></script>
<script src="/javascripts/application.js?1306774020" type="text/javascript"></script>
<script type="text/javascript">
Event.observe(window, 'load', function(){ new WarnLeavingUnsaved('Nuvarande sida innehåller osparad text som kommer försvinna om du lämnar sidan.'); });

<!--[if IE 6]>
    <style type="text/css">
      * html body{ width: expression( document.documentElement.clientWidth < 900 ? '900px' : '100%' ); }
      body {behavior: url(/stylesheets/;}

<!-- page specific tags -->

<link href="" rel="alternate" title="Redmine: Senaste nyheterna" type="application/atom+xml" />
<link href="" rel="alternate" title="Redmine: Aktivitet" type="application/atom+xml" />
<body class="controller-welcome action-index">
<div id="wrapper">
<div id="wrapper2">
<div id="top-menu">
    <div id="account">
        <ul><li><a href="/login" class="login">Logga in</a></li>
<li><a href="/account/register" class="register">Registrera</a></li></ul>    </div>

    <ul><li><a href="/" class="home">Hem</a></li>
<li><a href="/projects" class="projects">Projekt</a></li>
<li><a href="" class="help">Hjälp</a></li></ul></div>

<div id="header">

    <div id="quick-search">
        <form action="/search" method="get">

        <a href="/search" accesskey="4">Sök</a>:
        <input accesskey="f" class="small" id="q" name="q" size="20" type="text" />




<div class="nosidebar" id="main">
    <div id="sidebar">        


    <div id="content">


<div class="splitcontentleft">


<div class="splitcontentright">


                <div style="clear:both;"></div>

<div id="ajax-indicator" style="display:none;"><span>Laddar...</span></div>

<div id="footer">
  <div class="bgl"><div class="bgr">
    Powered by <a href="">Redmine</a> &copy; 2006-2011 Jean-Philippe Lang


My config in Apache is

<IfModule !mod_proxy.c>
    LoadModule proxy_module modules/
<IfModule !mod_proxy_http.c>
    LoadModule proxy_http_module modules/
<IfModule !mod_proxy_balancer.c>
    LoadModule proxy_balancer_module modules/

ProxyPass /redmine balancer://redmine_cluster
ProxyPassReverse /redmine balancer://redmine_cluster

<Proxy balancer://redmine_cluster>

Anyone have a slotion on this problem

/ Slaktarn

Replies (9)

RE: Mongrel + Apache 2.2 + Windows - Added by Eduardo Mauro about 9 years ago

I have the same problem. However, I noticed that it works under IE but not under Firefox and Chrome.

RE: Mongrel + Apache 2.2 + Windows - Added by Eduardo Mauro about 9 years ago

Correcting. In IE Redmine does show up but it gives an error when we try to log.

RE: Mongrel + Apache 2.2 + Windows - Added by Xiaobing Sun about 9 years ago

I have the same problem too on a Windows 2008 R2 server.
But there is no such problem on a Windows 7 PC.

At last, I give up to use 1.2.0 on the Windows 2008, change back to use 1.1.2

RE: Mongrel + Apache 2.2 + Windows - Added by cray huang about 9 years ago

I think u can try to restart the redmine service.
I fixed the problem with restarting the service.

RE: Mongrel + Apache 2.2 + Windows - Added by cray huang about 9 years ago

And, need to add one more mongrel.rb into the folder redmine/conf/init/

RE: Mongrel + Apache 2.2 + Windows - Added by Tim Whitehead almost 9 years ago

I am running into the same described troubles using Apache on a Redhat server

ActionView::TemplateError (undefined local variable or method `csrf_meta_tag'

When commenting out %= csrf_meta_tag % line 8 of app/view/layouts/base.rhtml The site loads in IE but not Firefox or Chrome. It does produce an error when posting however reloading the page through the address bare (not refresh) the page reloads and the post was successful.

Did I miss something when upgrading 1.1.2 to 1.2.1?

RE: Mongrel + Apache 2.2 + Windows - Added by Jeff Lee almost 9 years ago

i have the same problem.

my server is apache 2.0.1, mod_proxy, mod_rewrite, mongrel, mongrel_cluster

IE can show the site, but in ff and chrome only blank page shown.

anyone knows why?

RE: Mongrel + Apache 2.2 + Windows - Added by Jeff Lee almost 9 years ago

but i think this not redmine's problem...

it's mongrel's

RE: Mongrel + Apache 2.2 + Windows - Added by Riyanto J over 8 years ago

It's because Apache keep send HTTP Header text/plain
You need to change "DefaultType text/plain" to "DefaultType text/html" in http.conf