forbidden dilemma (apache2 + pier)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

forbidden dilemma (apache2 + pier)

Tudor Girba-2
Hi,

I have the following problem with an apache 2.2.14 (running on Ubuntu 10) + a pier image:

- I have my little pier image running on port 8004

- if I "curl localhost:8004/pier", I get a proper page back

- I then have a configuration like:
<VirtualHost *:80>
    ProxyPreserveHost On
    ServerName humane-assessment.com

    DocumentRoot /srv/humane-assessment.com/web
    <Directory /srv/humane-assessment.com/web>
    Order deny,allow
    Allow from all
    </Directory>

    RewriteEngine On
    RewriteCond /srv/humane-assessment.com/web/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ http://localhost:8004/pier/$1 [proxy,last]
</VirtualHost>

- I enabled extra: proxy.load, proxy.conf, proxy_http.load, rewrite.load

- accessing files stored in /srv/humane-assessment.com/web works just fine (for example, http://humane-assessment.com/favicon.ico)

- however, when I go to http://humane-assessment.com/, I get "403 Forbidden"


Does anyone have an idea why that is?


Cheers,
Doru


--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: forbidden dilemma (apache2 + pier)

Dmitry Dorofeev
You need

Allow from all

Inside the  <Location />

-Dmitry

On 17.12.2012, at 0:47, Tudor Girba <[hidden email]> wrote:

Hi,

I have the following problem with an apache 2.2.14 (running on Ubuntu 10) + a pier image:

- I have my little pier image running on port 8004

- if I "curl localhost:8004/pier", I get a proper page back

- I then have a configuration like:
<VirtualHost *:80>
   ProxyPreserveHost On
   ServerName humane-assessment.com

   DocumentRoot /srv/humane-assessment.com/web
   <Directory /srv/humane-assessment.com/web>
   Order deny,allow
   Allow from all
   </Directory>

   RewriteEngine On
   RewriteCond /srv/humane-assessment.com/web/%{REQUEST_FILENAME} !-f
   RewriteRule ^/(.*)$ http://localhost:8004/pier/$1 [proxy,last]
</VirtualHost>

- I enabled extra: proxy.load, proxy.conf, proxy_http.load, rewrite.load

- accessing files stored in /srv/humane-assessment.com/web works just fine (for example, http://humane-assessment.com/favicon.ico)

- however, when I go to http://humane-assessment.com/, I get "403 Forbidden"


Does anyone have an idea why that is?


Cheers,
Doru


--
www.tudorgirba.com

"The coherence of a trip is given by the clearness of the goal."




_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: forbidden dilemma (apache2 + pier)

Tudor Girba-2
Hi,

Indeed. I added
   <Location />
     Order deny,allow
     Allow from all
   </Location>

and now it works.

I used an old Apache 2 before (not that the 2.2.14 is too new either), and this seems to have not been necessary before.

Cheers,
Doru



On 17 Dec 2012, at 08:15, Dmitry Dorofeev <[hidden email]> wrote:

> You need
>
> Allow from all
>
> Inside the  <Location />
>
> -Dmitry
>
> On 17.12.2012, at 0:47, Tudor Girba <[hidden email]> wrote:
>
>> Hi,
>>
>> I have the following problem with an apache 2.2.14 (running on Ubuntu 10) + a pier image:
>>
>> - I have my little pier image running on port 8004
>>
>> - if I "curl localhost:8004/pier", I get a proper page back
>>
>> - I then have a configuration like:
>> <VirtualHost *:80>
>>    ProxyPreserveHost On
>>    ServerName humane-assessment.com
>>
>>    DocumentRoot /srv/humane-assessment.com/web
>>    <Directory /srv/humane-assessment.com/web>
>>    Order deny,allow
>>    Allow from all
>>    </Directory>
>>
>>    RewriteEngine On
>>    RewriteCond /srv/humane-assessment.com/web/%{REQUEST_FILENAME} !-f
>>    RewriteRule ^/(.*)$ http://localhost:8004/pier/$1 [proxy,last]
>> </VirtualHost>
>>
>> - I enabled extra: proxy.load, proxy.conf, proxy_http.load, rewrite.load
>>
>> - accessing files stored in /srv/humane-assessment.com/web works just fine (for example, http://humane-assessment.com/favicon.ico)
>>
>> - however, when I go to http://humane-assessment.com/, I get "403 Forbidden"
>>
>>
>> Does anyone have an idea why that is?
>>
>>
>> Cheers,
>> Doru
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "The coherence of a trip is given by the clearness of the goal."
>>
>>
>>
>>
>> _______________________________________________
>> seaside mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

--
www.tudorgirba.com

"Next time you see your life passing by, say 'hi' and get to know her."



_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside