Fwd: problems installing pier/apache2

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

Fwd: problems installing pier/apache2

Tudor Girba-2
Hi,

I am forwarding the message here given that the problem is not Pier specific.

Any ideas?

Cheers,
Doru


---------- Forwarded message ----------
From: Tudor Girba <[hidden email]>
Date: Wed, Sep 19, 2012 at 10:34 PM
Subject: problems installing pier/apache2
To: "Magritte, Pier and Related Tools ..." <[hidden email]>


Hi,

I am having troubles installing Pier with Apache2 on a virtual host
running Debian 6.

On this server, there is a Plesk running. When I go explicitly on port
www.example.com:8081, the site appears. However, when I go on
www.example.com I get the default webpage of Plesk. How can I disable
this Plesk default webpage and let apache do its job?

I have the following apache config that is properly placed in
sites-available and linked from sites-enabled (there is no other link
in sites-enabled):
<VirtualHost *:80>
  # set serer name
  ProxyPreserveHost On
  ServerName www.example.com

  # connfigure static file serving
  DocumentRoot /srv/web
  <Directory /srv/web>
    Order deny,allow
    Allow from all
  </Directory>

  # rewrite incoming requests
  RewriteEngine On
  RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
  RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
</VirtualHost>



Cheers,
Doru



--
www.tudorgirba.com

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

Re: problems installing pier/apache2

Tobias Pape
Am 20.09.2012 um 06:57 schrieb Tudor Girba:

> Hi,
>
> I am forwarding the message here given that the problem is not Pier specific.
>
> Any ideas?
>
> Cheers,
> Doru


> <VirtualHost *:80>
>  # set serer name
>  ProxyPreserveHost On
>  ServerName www.example.com
>
>  # connfigure static file serving
>  DocumentRoot /srv/web
>  <Directory /srv/web>
>    Order deny,allow
>    Allow from all
>  </Directory>
>
>  # rewrite incoming requests
>  RewriteEngine On
>  RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
>  RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
>  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f

This rewrite condition makes sure that any existing file is tried before
Going on to that rule:
>  RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
> </VirtualHost>

Long sotry short, if /srv/web contains an index.html, it will be served,
and your proxy rule won't be tried.
Try removing the index.html ;)

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

Re: problems installing pier/apache2

Tudor Girba-2
Hi Tobias,

Thanks. But, the problem is not there. /srv/web is empty.

Somehow, it seems that there is another lookup before the request goes
to the below apache config. And I do not know what this is.

I tried to dig a bit more, and I found that the page resides somewhere
inside /var/www/vhosts/. The question is how to bypass this lookup?

Cheers,
Doru


On Thu, Sep 20, 2012 at 9:19 AM, Tobias Pape <[hidden email]> wrote:

> Am 20.09.2012 um 06:57 schrieb Tudor Girba:
>
>> Hi,
>>
>> I am forwarding the message here given that the problem is not Pier specific.
>>
>> Any ideas?
>>
>> Cheers,
>> Doru
>
>
>> <VirtualHost *:80>
>>  # set serer name
>>  ProxyPreserveHost On
>>  ServerName www.example.com
>>
>>  # connfigure static file serving
>>  DocumentRoot /srv/web
>>  <Directory /srv/web>
>>    Order deny,allow
>>    Allow from all
>>  </Directory>
>>
>>  # rewrite incoming requests
>>  RewriteEngine On
>>  RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
>>  RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
>>  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
>
> This rewrite condition makes sure that any existing file is tried before
> Going on to that rule:
>>  RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
>> </VirtualHost>
>
> Long sotry short, if /srv/web contains an index.html, it will be served,
> and your proxy rule won't be tried.
> Try removing the index.html ;)
>
> Best
>         -Tobias_______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
www.tudorgirba.com

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

Re: problems installing pier/apache2

Gastón Dall' Oglio
Hi.

Be sure of configure correctly the application "pier":

Server Hostname: example.com or www.example.com
Server Path: /
Server Port: 80
Server Protocol: http

I got stranges lookups when I don't configure those (but I have more complex lookups that you describe here).

HTH

2012/9/20 Tudor Girba <[hidden email]>
Hi Tobias,

Thanks. But, the problem is not there. /srv/web is empty.

Somehow, it seems that there is another lookup before the request goes
to the below apache config. And I do not know what this is.

I tried to dig a bit more, and I found that the page resides somewhere
inside /var/www/vhosts/. The question is how to bypass this lookup?

Cheers,
Doru


On Thu, Sep 20, 2012 at 9:19 AM, Tobias Pape <[hidden email]> wrote:
> Am 20.09.2012 um 06:57 schrieb Tudor Girba:
>
>> Hi,
>>
>> I am forwarding the message here given that the problem is not Pier specific.
>>
>> Any ideas?
>>
>> Cheers,
>> Doru
>
>
>> <VirtualHost *:80>
>>  # set serer name
>>  ProxyPreserveHost On
>>  ServerName www.example.com
>>
>>  # connfigure static file serving
>>  DocumentRoot /srv/web
>>  <Directory /srv/web>
>>    Order deny,allow
>>    Allow from all
>>  </Directory>
>>
>>  # rewrite incoming requests
>>  RewriteEngine On
>>  RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
>>  RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
>>  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
>
> This rewrite condition makes sure that any existing file is tried before
> Going on to that rule:
>>  RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
>> </VirtualHost>
>
> Long sotry short, if /srv/web contains an index.html, it will be served,
> and your proxy rule won't be tried.
> Try removing the index.html ;)
>
> Best
>         -Tobias_______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
www.tudorgirba.com

"Every thing has its own flow"
_______________________________________________


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

Re: problems installing pier/apache2

Tudor Girba-2
Thanks. Indeed, these parameters are not yet set.

I will give this a try, although I fail to see at this time how this
will solve the problem.

Cheers,
Doru



On Thu, Sep 20, 2012 at 2:06 PM, Gastón Dall' Oglio
<[hidden email]> wrote:

> Hi.
>
> Be sure of configure correctly the application "pier":
>
> Server Hostname: example.com or www.example.com
> Server Path: /
> Server Port: 80
> Server Protocol: http
>
> I got stranges lookups when I don't configure those (but I have more complex
> lookups that you describe here).
>
> HTH
>
> 2012/9/20 Tudor Girba <[hidden email]>
>>
>> Hi Tobias,
>>
>> Thanks. But, the problem is not there. /srv/web is empty.
>>
>> Somehow, it seems that there is another lookup before the request goes
>> to the below apache config. And I do not know what this is.
>>
>> I tried to dig a bit more, and I found that the page resides somewhere
>> inside /var/www/vhosts/. The question is how to bypass this lookup?
>>
>> Cheers,
>> Doru
>>
>>
>> On Thu, Sep 20, 2012 at 9:19 AM, Tobias Pape <[hidden email]> wrote:
>> > Am 20.09.2012 um 06:57 schrieb Tudor Girba:
>> >
>> >> Hi,
>> >>
>> >> I am forwarding the message here given that the problem is not Pier
>> >> specific.
>> >>
>> >> Any ideas?
>> >>
>> >> Cheers,
>> >> Doru
>> >
>> >
>> >> <VirtualHost *:80>
>> >>  # set serer name
>> >>  ProxyPreserveHost On
>> >>  ServerName www.example.com
>> >>
>> >>  # connfigure static file serving
>> >>  DocumentRoot /srv/web
>> >>  <Directory /srv/web>
>> >>    Order deny,allow
>> >>    Allow from all
>> >>  </Directory>
>> >>
>> >>  # rewrite incoming requests
>> >>  RewriteEngine On
>> >>  RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
>> >>  RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
>> >>  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
>> >
>> > This rewrite condition makes sure that any existing file is tried before
>> > Going on to that rule:
>> >>  RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
>> >> </VirtualHost>
>> >
>> > Long sotry short, if /srv/web contains an index.html, it will be served,
>> > and your proxy rule won't be tried.
>> > Try removing the index.html ;)
>> >
>> > Best
>> >         -Tobias_______________________________________________
>> > seaside mailing list
>> > [hidden email]
>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow"
>> _______________________________________________
>> 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

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

Re: problems installing pier/apache2

Gastón Dall' Oglio
Well, probably this no solve your problem, but when of the lookup problems are, better putting explicit all info that serve to generate urls.

2012/9/20 Tudor Girba <[hidden email]>
Thanks. Indeed, these parameters are not yet set.

I will give this a try, although I fail to see at this time how this
will solve the problem.

Cheers,
Doru



On Thu, Sep 20, 2012 at 2:06 PM, Gastón Dall' Oglio
<[hidden email]> wrote:
> Hi.
>
> Be sure of configure correctly the application "pier":
>
> Server Hostname: example.com or www.example.com
> Server Path: /
> Server Port: 80
> Server Protocol: http
>
> I got stranges lookups when I don't configure those (but I have more complex
> lookups that you describe here).
>
> HTH
>
> 2012/9/20 Tudor Girba <[hidden email]>
>>
>> Hi Tobias,
>>
>> Thanks. But, the problem is not there. /srv/web is empty.
>>
>> Somehow, it seems that there is another lookup before the request goes
>> to the below apache config. And I do not know what this is.
>>
>> I tried to dig a bit more, and I found that the page resides somewhere
>> inside /var/www/vhosts/. The question is how to bypass this lookup?
>>
>> Cheers,
>> Doru
>>
>>
>> On Thu, Sep 20, 2012 at 9:19 AM, Tobias Pape <[hidden email]> wrote:
>> > Am 20.09.2012 um 06:57 schrieb Tudor Girba:
>> >
>> >> Hi,
>> >>
>> >> I am forwarding the message here given that the problem is not Pier
>> >> specific.
>> >>
>> >> Any ideas?
>> >>
>> >> Cheers,
>> >> Doru
>> >
>> >
>> >> <VirtualHost *:80>
>> >>  # set serer name
>> >>  ProxyPreserveHost On
>> >>  ServerName www.example.com
>> >>
>> >>  # connfigure static file serving
>> >>  DocumentRoot /srv/web
>> >>  <Directory /srv/web>
>> >>    Order deny,allow
>> >>    Allow from all
>> >>  </Directory>
>> >>
>> >>  # rewrite incoming requests
>> >>  RewriteEngine On
>> >>  RewriteRule ^/pier(.*)$ http://www.example.com$1 [redirect,last]
>> >>  RewriteRule ^/files/(.*)$ http://localhost:8081/files/$1 [proxy,last]
>> >>  RewriteCond /srv/web/%{REQUEST_FILENAME} !-f
>> >
>> > This rewrite condition makes sure that any existing file is tried before
>> > Going on to that rule:
>> >>  RewriteRule ^/(.*)$ http://localhost:8081/pier/$1 [proxy,last]
>> >> </VirtualHost>
>> >
>> > Long sotry short, if /srv/web contains an index.html, it will be served,
>> > and your proxy rule won't be tried.
>> > Try removing the index.html ;)
>> >
>> > Best
>> >         -Tobias_______________________________________________
>> > seaside mailing list
>> > [hidden email]
>> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>
>>
>>
>> --
>> www.tudorgirba.com
>>
>> "Every thing has its own flow"
>> _______________________________________________
>> 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

"Every thing has its own flow"
_______________________________________________
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