> Hello
>
> I'm trying to set up foreman-proxy
> but getting constant 404 error with displaying "Sinatra doesn't know this
> ditty"
>
afair, / has no real meaning (we have an open issue about that).
does /features works?
Ohad
···
On Tue, Sep 4, 2012 at 4:37 PM, Aleksandr Orlov wrote:
root@tbox:/usr/share/foreman-proxy# curl http://localhost:8443/
body { text-align:center;font-family:helvetica,arial;font-size:22px;
color:#888;margin:20px}
#c {margin:0 auto;width:500px;text-align:left}
Sinatra doesn’t know this ditty.

Try this:
<pre>get '/' do
“Hello World”
end
I have disabled all options in settings.yml file (i.e. dns, dhcp, etc…),
but it keeps showing 404 error without even writing a log (file from
settings.yml wasn’t ever created, though /var/log/foreman-proxy dir exists
and has correct permissions)
these are my permissions (/usr/share/foreman-proxy)
root@tbox:/usr/share/foreman-proxy# ls -l
итого 36
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 bin
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 4 16:46 config
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 lib
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:44 logs
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 public
-rw-r–r-- 1 foreman-proxy foreman-proxy 1745 сент. 4 14:39 Rakefile
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 tasks
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:44 tmp
drwxr-xr-x 4 foreman-proxy foreman-proxy 4096 сент. 3 18:28 views
foreman-proxy version is 1.0-1 (Ubuntu 12.04)
if anybody has an idea, please let me know
–
You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/OrqLU-gEZEgJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.
Wow, that works
Thanks, Ohad
Can this theme be treated as request for either adding permanent redirect
from / to /features or make /features an index file ?
from all manuals I've read it was not obvious, that /features url is
correct one 
···
вторник, 4 сентября 2012 г., 17:41:34 UTC+4 пользователь ohad написал:
>
>
>
> On Tue, Sep 4, 2012 at 4:37 PM, Aleksandr Orlov <vulz...@gmail.com > > wrote:
>
>> Hello
>>
>> I'm trying to set up foreman-proxy
>> but getting constant 404 error with displaying "Sinatra doesn't know this
>> ditty"
>>
> afair, / has no real meaning (we have an open issue about that).
>
> does /features works?
>
> Ohad
>
>>
>> root@tbox:/usr/share/foreman-proxy# curl http://localhost:8443/
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> body { text-align:center;font-family:helvetica,arial;font-size:22px;
>>>
>>> color:#888;margin:20px}
>>>
>>> #c {margin:0 auto;width:500px;text-align:left}
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Sinatra doesn’t know this ditty.
>>>
>>>
>>>
>>>
>>>
>>> Try this:
>>>
>>>
get '/' do
>>>
>>> "Hello World"
>>>
>>> end
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>>
>>
>> I have disabled all options in settings.yml file (i.e. dns, dhcp, etc..),
>> but it keeps showing 404 error without even writing a log (file from
>> settings.yml wasn't ever created, though /var/log/foreman-proxy dir exists
>> and has correct permissions)
>> these are my permissions (/usr/share/foreman-proxy)
>>
>>>
>>
>> root@tbox:/usr/share/foreman-proxy# ls -l
>>
>> итого 36
>>
>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 bin
>>
>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 4 16:46 config
>>
>> drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 lib
>>
>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:44 logs
>>
>> drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 public
>>
>> -rw-r--r-- 1 foreman-proxy foreman-proxy 1745 сент. 4 14:39 Rakefile
>>
>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 tasks
>>
>> drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:44 tmp
>>
>> drwxr-xr-x 4 foreman-proxy foreman-proxy 4096 сент. 3 18:28 views
>>
>>
>> foreman-proxy version is 1.0-1 (Ubuntu 12.04)
>>
>> if anybody has an idea, please let me know
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Foreman users" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/foreman-users/-/OrqLU-gEZEgJ.
>> To post to this group, send email to forema...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> foreman-user...@googlegroups.com .
>> For more options, visit this group at
>> http://groups.google.com/group/foreman-users?hl=en.
>>
>
>
> Wow, that works
>
> Thanks, Ohad
> Can this theme be treated as request for either adding permanent redirect
> from / to /features or make /features an index file ?
>
> from all manuals I've read it was not obvious, that /features url is
> correct one 
>
> well, not many people use the proxy directly (normally via foreman), you
can have a look at [1] for more or less complete api (its missing the
power management features we added recently)
Ohad
[1] http://theforeman.org/projects/smart-proxy/wiki/API
···
On Tue, Sep 4, 2012 at 5:09 PM, Aleksandr Orlov wrote:
вторник, 4 сентября 2012 г., 17:41:34 UTC+4 пользователь ohad написал:
On Tue, Sep 4, 2012 at 4:37 PM, Aleksandr Orlov vulz...@gmail.comwrote:
Hello
I’m trying to set up foreman-proxy
but getting constant 404 error with displaying “Sinatra doesn’t know
this ditty”
afair, / has no real meaning (we have an open issue about that).
does /features works?
Ohad
root@tbox:/usr/share/foreman-**proxy# curl http://localhost:8443/
body { text-align:center;font-family:**helvetica,arial;font-size:**
> 22px;
color:#888;margin:20px}
#c {margin:0 auto;width:500px;text-align:**left}
Sinatra doesn’t know this ditty.

Try this:
<pre>get '/' do
“Hello World”
end
I have disabled all options in settings.yml file (i.e. dns, dhcp,
etc…), but it keeps showing 404 error without even writing a log (file
from settings.yml wasn’t ever created, though /var/log/foreman-proxy dir
exists and has correct permissions)
these are my permissions (/usr/share/foreman-proxy)
root@tbox:/usr/share/foreman-**proxy# ls -l
итого 36
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 bin
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 4 16:46 config
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 lib
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:44 logs
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 public
-rw-r–r-- 1 foreman-proxy foreman-proxy 1745 сент. 4 14:39 Rakefile
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 tasks
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:44 tmp
drwxr-xr-x 4 foreman-proxy foreman-proxy 4096 сент. 3 18:28 views
foreman-proxy version is 1.0-1 (Ubuntu 12.04)
if anybody has an idea, please let me know
–
You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To view this discussion on the web visit https://groups.google.com/d/**
msg/foreman-users/-/OrqLU-gEZEgJhttps://groups.google.com/d/msg/foreman-users/-/OrqLU-gEZEgJ
.
To post to this group, send email to forema...@googlegroups.com.
To unsubscribe from this group, send email to foreman-user…@**
googlegroups.com.
For more options, visit this group at http://groups.google.com/**
group/foreman-users?hl=enhttp://groups.google.com/group/foreman-users?hl=en
.
–
You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/HtS8jIvw_HQJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.
Also, if you have free time, etc - here is the original ticket 
http://theforeman.org/issues/757
Ohad
···
On Tue, Sep 4, 2012 at 5:17 PM, Ohad Levy wrote:
On Tue, Sep 4, 2012 at 5:09 PM, Aleksandr Orlov vulzscht@gmail.comwrote:
Wow, that works
Thanks, Ohad
Can this theme be treated as request for either adding permanent redirect
from / to /features or make /features an index file ?
from all manuals I’ve read it was not obvious, that /features url is
correct one 
well, not many people use the proxy directly (normally via foreman), you
can have a look at [1] for more or less complete api (its missing the
power management features we added recently)
Ohad
[1] http://theforeman.org/projects/smart-proxy/wiki/API
вторник, 4 сентября 2012 г., 17:41:34 UTC+4 пользователь ohad написал:
On Tue, Sep 4, 2012 at 4:37 PM, Aleksandr Orlov vulz...@gmail.comwrote:
Hello
I’m trying to set up foreman-proxy
but getting constant 404 error with displaying “Sinatra doesn’t know
this ditty”
afair, / has no real meaning (we have an open issue about that).
does /features works?
Ohad
root@tbox:/usr/share/foreman-**proxy# curl http://localhost:8443/
body { text-align:center;font-family:**helvetica,arial;font-size:**
> 22px;
color:#888;margin:20px}
#c {margin:0 auto;width:500px;text-align:**left}
Sinatra doesn’t know this ditty.

Try this:
<pre>get '/' do
“Hello World”
end
I have disabled all options in settings.yml file (i.e. dns, dhcp,
etc…), but it keeps showing 404 error without even writing a log (file
from settings.yml wasn’t ever created, though /var/log/foreman-proxy dir
exists and has correct permissions)
these are my permissions (/usr/share/foreman-proxy)
root@tbox:/usr/share/foreman-**proxy# ls -l
итого 36
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 bin
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 4 16:46 config
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 lib
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:44 logs
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 public
-rw-r–r-- 1 foreman-proxy foreman-proxy 1745 сент. 4 14:39 Rakefile
drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 tasks
drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:44 tmp
drwxr-xr-x 4 foreman-proxy foreman-proxy 4096 сент. 3 18:28 views
foreman-proxy version is 1.0-1 (Ubuntu 12.04)
if anybody has an idea, please let me know
–
You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To view this discussion on the web visit https://groups.google.com/d/**
msg/foreman-users/-/OrqLU-gEZEgJhttps://groups.google.com/d/msg/foreman-users/-/OrqLU-gEZEgJ
.
To post to this group, send email to forema...@googlegroups.com.
To unsubscribe from this group, send email to foreman-user…@**
googlegroups.com.
For more options, visit this group at http://groups.google.com/**
group/foreman-users?hl=enhttp://groups.google.com/group/foreman-users?hl=en
.
–
You received this message because you are subscribed to the Google Groups
“Foreman users” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/foreman-users/-/HtS8jIvw_HQJ.
To post to this group, send email to foreman-users@googlegroups.com.
To unsubscribe from this group, send email to
foreman-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/foreman-users?hl=en.
thanks
i was going to integrate foreman, puppetmaster and foreman-proxy, but stuck
a bit with proxy 
···
вторник, 4 сентября 2012 г., 18:18:09 UTC+4 пользователь ohad написал:
>
> Also, if you have free time, etc - here is the original ticket ;)
> http://theforeman.org/issues/757
>
> Ohad
>
> On Tue, Sep 4, 2012 at 5:17 PM, Ohad Levy <ohad...@gmail.com > > wrote:
>
>>
>>
>> On Tue, Sep 4, 2012 at 5:09 PM, Aleksandr Orlov <vulz...@gmail.com >> > wrote:
>>
>>> Wow, that works
>>>
>>> Thanks, Ohad
>>> Can this theme be treated as request for either adding permanent
>>> redirect from / to /features or make /features an index file ?
>>>
>>> from all manuals I've read it was not obvious, that /features url is
>>> correct one :(
>>>
>>> well, not many people use the proxy directly (normally via foreman), you
>> can have a look at [1] for more or less complete api (its missing the
>> power management features we added recently)
>>
>> Ohad
>>
>> [1] http://theforeman.org/projects/smart-proxy/wiki/API
>>
>>>
>>> вторник, 4 сентября 2012 г., 17:41:34 UTC+4 пользователь ohad написал:
>>>>
>>>>
>>>>
>>>> On Tue, Sep 4, 2012 at 4:37 PM, Aleksandr Orlov wrote:
>>>>
>>>>> Hello
>>>>>
>>>>> I'm trying to set up foreman-proxy
>>>>> but getting constant 404 error with displaying "Sinatra doesn't know
>>>>> this ditty"
>>>>>
>>>> afair, / has no real meaning (we have an open issue about that).
>>>>
>>>> does /features works?
>>>>
>>>> Ohad
>>>>
>>>>>
>>>>> root@tbox:/usr/share/foreman-**proxy# curl http://localhost:8443/
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> body { text-align:center;font-family:**helvetica,arial;font-size:**
>>>>>>> 22px;
>>>>>>
>>>>>> color:#888;margin:20px}
>>>>>>
>>>>>> #c {margin:0 auto;width:500px;text-align:**left}
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Sinatra doesn’t know this ditty.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Try this:
>>>>>>
>>>>>>
get '/' do
>>>>>>
>>>>>> "Hello World"
>>>>>>
>>>>>> end
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>
>>>>>
>>>>> I have disabled all options in settings.yml file (i.e. dns, dhcp,
>>>>> etc..), but it keeps showing 404 error without even writing a log (file
>>>>> from settings.yml wasn't ever created, though /var/log/foreman-proxy dir
>>>>> exists and has correct permissions)
>>>>> these are my permissions (/usr/share/foreman-proxy)
>>>>>
>>>>>>
>>>>>
>>>>> root@tbox:/usr/share/foreman-**proxy# ls -l
>>>>>
>>>>> итого 36
>>>>>
>>>>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 bin
>>>>>
>>>>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 4 16:46 config
>>>>>
>>>>> drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 lib
>>>>>
>>>>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:44 logs
>>>>>
>>>>> drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:28 public
>>>>>
>>>>> -rw-r--r-- 1 foreman-proxy foreman-proxy 1745 сент. 4 14:39 Rakefile
>>>>>
>>>>> drwxr-xr-x 2 foreman-proxy foreman-proxy 4096 сент. 3 18:28 tasks
>>>>>
>>>>> drwxr-xr-x 3 foreman-proxy foreman-proxy 4096 сент. 3 18:44 tmp
>>>>>
>>>>> drwxr-xr-x 4 foreman-proxy foreman-proxy 4096 сент. 3 18:28 views
>>>>>
>>>>>
>>>>> foreman-proxy version is 1.0-1 (Ubuntu 12.04)
>>>>>
>>>>> if anybody has an idea, please let me know
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Foreman users" group.
>>>>> To view this discussion on the web visit https://groups.google.com/d/*
>>>>> *msg/foreman-users/-/OrqLU-**gEZEgJ
>>>>> .
>>>>> To post to this group, send email to forema...@googlegroups.com**.
>>>>> To unsubscribe from this group, send email to foreman-user...@**
>>>>> googlegroups.com.
>>>>>
>>>>> For more options, visit this group at http://groups.google.com/**
>>>>> group/foreman-users?hl=en
>>>>> .
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Foreman users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/foreman-users/-/HtS8jIvw_HQJ.
>>>
>>> To post to this group, send email to forema...@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> foreman-user...@googlegroups.com .
>>> For more options, visit this group at
>>> http://groups.google.com/group/foreman-users?hl=en.
>>>
>>
>>
>