Bug 858319 - Non working apache configuration on fedora 18
Summary: Non working apache configuration on fedora 18
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: openshift-origin-broker
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Troy Dawson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-18 15:57 UTC by Michael S.
Modified: 2013-03-01 21:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-01 21:07:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to describe what to change in httpd.conf for the broker (1.10 KB, patch)
2012-09-18 15:57 UTC, Michael S.
no flags Details | Diff

Description Michael S. 2012-09-18 15:57:57 UTC
Created attachment 614051 [details]
patch to describe what to change in httpd.conf for the broker

Since fedora 18 use httpd 2.4, the configuration used by openshift origin do not work. Here is a preliminary patch against the installed httpd.conf file to make it start ( so far, I didn't test rhc yet ), so you do not have to search for too long what to add and what is missing.


I do not know how to proceed to have a clean configuration file that will run on F18 and RHEL6, since there is slight difference in apache version making thing a little bit harder.

Comment 1 Michael S. 2012-09-18 16:12:07 UTC
In fact, that's even worst, the broker listen only on http, while rhc does https by default, and only https, hardcoded in some place ( see get_cartridges_list in /usr/share/gems/gems/rhc-0.95.14/lib/rhc-common.rb ).

So if the goal is to have the broker working by default, i would suggest to generate a proper certificate and use it in httpd.conf

Comment 2 Michael S. 2012-09-18 16:19:42 UTC
So, after reading the code, I tried with curl :

curl http://127.0.0.1:8080/broker/cartlist

this didn't work, with the following error :

[Tue Sep 18 17:50:49.988041 2012] [core:crit] [pid 8891] [client 127.0.0.1:55734] AH00025: configuration error:  couldn't check user: /

to solve that, you need to add :

LoadModule authz_core_module modules/mod_authz_core.so

Comment 3 Troy Dawson 2012-09-24 16:41:09 UTC
I'm looking, and I'm not seeing what the proper Fedora/EPEL way is for adding modules to httpd.conf.
Should be put it in as some type of %post install script, or is it just something that you put into the documentation.

Thoughts, opinions, links?

Comment 4 Michael S. 2012-09-24 16:53:14 UTC
I would have placed that in /etc/httpd/conf.d/ , but that's for the httpd.conf used by apache httpd.

If you refer to comment #1, I think the best would be to modify upstream httpd.conf ( the one used for broker ), and generate a dummy cert in %post. I know that we used to have a macro for that in mandriva, not sure if there is one for Fedora.

Comment 5 Troy Dawson 2013-03-01 21:07:29 UTC
httpd 2.4 configurations addressed and fixed in 1.4.1 broker.


Note You need to log in before you can comment on or make changes to this bug.