Re: Redirect public server to internal server

Re: Redirect public server to internal server

am 23.09.2010 12:41:45 von Eric Covener

>
>
>

The VirtualHost you added would only be selected when the more
specific matches (port 80, port 443) were not applicable.

You should make sure you have one NameVirtualHost *:80 and just add a
second with the proper ServerName.


--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: Redirect public server to internal server

am 23.09.2010 19:52:58 von augustocasagrande

--90e6ba4fc2e4be81930490f0ee64
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Content-Transfer-Encoding: base64

SSd2ZSBhZGRlZCBOYW1lVmlydHVhbEhvc3QgKjo4MCB0byB0aGUgbGlzdGVu LmNvbmYgZmlsZS4N
Cg0KQnV0IHN0aWxsIGl0IGlzIG5vdCB3b3JraW5nLiBTYW1lIGFzIGJlZm9y ZSAsIG9ubHkgc2hv
d3MgbXkgInNoYXJlIiAgDQpkaXJlY3RvcnkuDQoNClRoYW5rcyENCg0KRWwg MjMvMDkvMjAxMCAw
Nzo0MSwgRXJpYyBDb3ZlbmVyIDxjb3ZlbmVyQGdtYWlsLmNvbT4gZXNjcmli afM6DQo+ID4NCg0K
PiA+DQoNCj4gPg0KDQoNCg0KPiBUaGUgVmlydHVhbEhvc3QgeW91IGFkZGVk IHdvdWxkIG9ubHkg
YmUgc2VsZWN0ZWQgd2hlbiB0aGUgbW9yZQ0KDQo+IHNwZWNpZmljIG1hdGNo ZXMgKHBvcnQgODAs
IHBvcnQgNDQzKSB3ZXJlIG5vdCBhcHBsaWNhYmxlLg0KDQoNCg0KPiBZb3Ug c2hvdWxkIG1ha2Ug
c3VyZSB5b3UgaGF2ZSBvbmUgTmFtZVZpcnR1YWxIb3N0ICo6ODAgYW5kIGp1 c3QgYWRkIGENCg0K
PiBzZWNvbmQgd2l0aCB0aGUgcHJvcGVyIFNlcnZlck5hbWUuDQoNCg0KDQoN Cg0KPiAtLQ0KDQo+
IEVyaWMgQ292ZW5lcg0KDQo+IGNvdmVuZXJAZ21haWwuY29tDQoNCg0KDQo+ IC0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LQ0KDQo+IFRoZSBvZmZpY2lhbCBVc2VyLVRvLVVzZXIgc3VwcG9ydCBmb3J1 bSBvZiB0aGUgQXBh
Y2hlIEhUVFAgU2VydmVyIFByb2plY3QuDQoNCj4gU2VlIGh0dHA6Ly9odHRw ZC5hcGFjaGUub3Jn
L3VzZXJzbGlzdC5odG1sPiBmb3IgbW9yZSBpbmZvLg0KDQo+IFRvIHVuc3Vi c2NyaWJlLCBlLW1h
aWw6IHVzZXJzLXVuc3Vic2NyaWJlQGh0dHBkLmFwYWNoZS5vcmcNCg0KPiAi IGZyb20gdGhlIGRp
Z2VzdDogdXNlcnMtZGlnZXN0LXVuc3Vic2NyaWJlQGh0dHBkLmFwYWNoZS5v cmcNCg0KPiBGb3Ig
YWRkaXRpb25hbCBjb21tYW5kcywgZS1tYWlsOiB1c2Vycy1oZWxwQGh0dHBk LmFwYWNoZS5vcmcN
Cg0KDQoNCg==
--90e6ba4fc2e4be81930490f0ee64
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I've added NameVirtualHost *:80 to the listen.conf file.

Bu=
t still it is not working. Same as before , only shows my "share"=
directory.

Thanks!

El 23/09/2010 07:41, Eric Covener=
<covener@gmail.com> escribi=F3:
> >
>
>=
>
>
> >
>
>
>
>=
; The VirtualHost you added would only be selected when the more
> =

> specific matches (port 80, port 443) were not applicable.
&=
gt;
>
>
> You should make sure you have one Name=
VirtualHost *:80 and just add a
>
> second with the prope=
r ServerName.
>
>
>
>
>
&=
gt; --
>
> Eric Covener
>
> covener@gmail=
..com
>
>
>
> ---------------------------=
------------------------------------------
>
> The officia=
l User-To-User support forum of the Apache HTTP Server Project.
> <=
br />> See http://httpd.apache.org/userslist.html> for more info.
/>>
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.or=
g
>
> =A0 " =A0 from the digest: users-digest-unsubs=
cribe@httpd.apache.org
>
> For additional commands, e-mail=
: users-help@httpd.apache.org
>
>
>
--90e6ba4fc2e4be81930490f0ee64--

Re: Re: Redirect public server to internal server

am 23.09.2010 21:11:26 von Eric Covener

On Thu, Sep 23, 2010 at 1:52 PM, wrote:
> I've added NameVirtualHost *:80 to the listen.conf file.

> But still it is not working. Same as before , only shows my "share"
> directory.


Did you add a VirtualHost with *:80 and put your proxy directives in it?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: Redirect public server to internal server

am 24.09.2010 02:10:08 von augustocasagrande

Yes , here it is :


DocumentRoot /srv/www/htdocs/share
ServerName www.example/share/
ProxyRequests Off

Order deny,allow
Allow from all

ProxyPass / http://internal-ip-server



2010/9/23 Eric Covener :
> On Thu, Sep 23, 2010 at 1:52 PM, =A0 wrote:
>> I've added NameVirtualHost *:80 to the listen.conf file.
>
>> But still it is not working. Same as before , only shows my "share"
>> directory.
>
>
> Did you add a VirtualHost with *:80 and put your proxy directives in it?
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: Redirect public server to internal server

am 24.09.2010 02:15:21 von Eric Covener

On Thu, Sep 23, 2010 at 8:10 PM, Augusto Casagrande
wrote:
> Yes , here it is :
>
>
> DocumentRoot /srv/www/htdocs/share
> ServerName www.example/share/

ServerName is just a domain name.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: Re: Re: Redirect public server to internal server

am 24.09.2010 02:31:15 von Eric Covener

On Thu, Sep 23, 2010 at 8:23 PM, wrote:
>> ServerName is just a domain name.
> It's actually www.example.com/share/

The path at the end is the problem. It should just be www.example.com.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Fwd: Re: Re: Re: Re: Redirect public server to internal server

am 24.09.2010 03:03:06 von augustocasagrande

--90e6ba53a24801f87d0490f6f149
Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes
Content-Transfer-Encoding: base64

RG9uZSAsIGJ1dCBzdGlsbCB0aGUgc2FtZS4NCg0KaG9zdDI6fiAjIHczbSB3 d3cuZXhhbXBsZS5j
b20vc2hhcmUvDQoNCkluZGV4IG9mIC9zaGFyZQ0KDQpJY29uIE5hbWUgTGFz dCBtb2RpZmllZCBT
aXplIERlc2NyaXB0aW9uW0RJUl0gUGFyZW50IERpcmVjdG9yeSAtDQoNCkFw YWNoZS8yLjIuMCAo
TGludXgvU1VTRSkgU2VydmVyIGF0IHd3dy5leGFtcGxlLmNvbSBQb3J0IDgw DQoNCg0KDQo+IEVs
ICwgRXJpYyBDb3ZlbmVyIGNvdmVuZXJAZ21haWwuY29tPiBlc2NyaWJp8zoN Cj4gPiBPbiBUaHUs
IFNlcCAyMywgMjAxMCBhdCA4OjIzIFBNIHdyb3RlOg0KPiA+DQo+ID4gPj4g U2VydmVyTmFtZSBp
cyBqdXN0IGEgZG9tYWluIG5hbWUuDQo+ID4NCj4gPiA+IEl0J3MgYWN0dWFs bHkgd3d3LmV4YW1w
bGUuY29tL3NoYXJlLw0KPiA+DQo+ID4NCj4gPg0KPiA+IFRoZSBwYXRoIGF0 IHRoZSBlbmQgaXMg
dGhlIHByb2JsZW0uIEl0IHNob3VsZCBqdXN0IGJlIHd3dy5leGFtcGxlLmNv bS4NCj4gPg0KPiA+
DQo+ID4NCj4gPiAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0NCj4gPg0KPiA+IFRoZSBvZmZpY2lh bCBVc2VyLVRvLVVz
ZXIgc3VwcG9ydCBmb3J1bSBvZiB0aGUgQXBhY2hlIEhUVFAgU2VydmVyICAN Cj4gUHJvamVjdC4N
Cj4gPg0KPiA+IFNlZSBodHRwOi8vaHR0cGQuYXBhY2hlLm9yZy91c2Vyc2xp c3QuaHRtbD4gZm9y
IG1vcmUgaW5mby4NCj4gPg0KPiA+IFRvIHVuc3Vic2NyaWJlLCBlLW1haWw6 IHVzZXJzLXVuc3Vi
c2NyaWJlQGh0dHBkLmFwYWNoZS5vcmcNCj4gPg0KPiA+ICIgZnJvbSB0aGUg ZGlnZXN0OiB1c2Vy
cy1kaWdlc3QtdW5zdWJzY3JpYmVAaHR0cGQuYXBhY2hlLm9yZw0KPiA+DQo+ ID4gRm9yIGFkZGl0
aW9uYWwgY29tbWFuZHMsIGUtbWFpbDogdXNlcnMtaGVscEBodHRwZC5hcGFj aGUub3JnDQo+ID4N
Cj4gPg0KPiA+DQo=
--90e6ba53a24801f87d0490f6f149
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Done , but still the same.

host2:~ # w3m www.example.com/share=
/

Index of /share

Icon Name L=
ast modified Size Description[DIR] Parent Directory =
-

Apache/2.2.0 (Linux/SUSE) Server at www.exampl=
e.com Port 80



> El , Eric Covener covener@gmai=
l.com> escribi=F3:
> > On Thu, Sep 23, 2010 at 8:23 PM wrote:=

> >
> > >> ServerName is just a domain name.<=
br />> >
> > > It's actually www.example.com/share=
/
> >
> >
> >
> > The path a=
t the end is the problem. It should just be www.example.com.
> >=

> >
> >
> > --------------------------=
-------------------------------------------
> >
> > =
The official User-To-User support forum of the Apache HTTP Server Project.<=
br />> >
> > See http://httpd.apache.org/userslist.html&g=
t; for more info.
> >
> > To unsubscribe, e-mail: us=
ers-unsubscribe@httpd.apache.org
> >
> > =A0 "=
=A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> &=
gt;
> > For additional commands, e-mail: users-help@httpd.apach=
e.org
> >
> >
> >
--90e6ba53a24801f87d0490f6f149--

Re: Fwd: Re: Re: Re: Re: Redirect public server tointernal server

am 24.09.2010 05:12:53 von lists

augustocasagrande@gmail.com wrote:
> Done , but still the same.
>
> host2:~ # w3m www.example.com/share/
>
> Index of /share
>
> Icon Name Last modified Size Description[DIR] Parent Directory -
>
> Apache/2.2.0 (Linux/SUSE) Server at www.example.com Port 8
What Eric was saying is ServerName is the domain part www.example.com
the document root for the virtual host is the part that needs the
/var/www/html/share



>
>
> > El , Eric Covener covener@gmail.com> escribió:
> > > On Thu, Sep 23, 2010 at 8:23 PM wrote:
> > >
> > > >> ServerName is just a domain name.
> > >
> > > > It's actually www.example.com/share/
> > >
> > >
> > >
> > > The path at the end is the problem. It should just be www.example.com.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org