[Pacemaker] Odd issues with apache on RHEL 7 beta

Digimer lists at alteeve.ca
Fri Dec 27 01:45:36 EST 2013


On 27/12/13 01:44 AM, Vladislav Bogdanov wrote:
> 27.12.2013 09:34, Digimer wrote:
> ...
>> 3. I know I mentioned this on IRC before, but I thought I should mention
>> it here again. In the pcs CfS, it shows to set:
>>
>> ====
>> <Location /server-status>
>>     SetHandler server-status
>>     Order deny,allow
>>     Deny from all
>>     Allow from 127.0.0.1
>> </Location>
>> ====
>>
>> But then in the resource setup, it says:
>>
>> ====
>> pcs resource create WebSite ocf:heartbeat:apache  \
>>        configfile=/etc/httpd/conf/httpd.conf \
>>        statusurl="http://localhost/server-status" op monitor interval=1min
>> ====
>>
>> This fails because apache will not respond to 'localhost', so you need
>> to set 'statusurl="http://127.0.0.1/server-status" (or change the apache
>> directive to 'Allow from localhost').
>
> Just a side note on this.
> It may be caused by 'localhost' resolve default to IPv6 localhost address.

In my case, this is not so. 'localhost' resolves to '127.0.0.1':

[root at an-c03n01 ~]# gethostip -d localhost
127.0.0.1

Cheers!

-- 
Digimer
Papers and Projects: https://alteeve.ca/w/
What if the cure for cancer is trapped in the mind of a person without 
access to education?




More information about the Pacemaker mailing list