Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[apache2] ProxyPreserveHost
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Thu Oct 29, 2009 7:21 pm    Post subject: [apache2] ProxyPreserveHost Reply with quote

hi all,
i'm trying to use ProxyPreserveHost in one of my vhosts.

i already added "proxy" to make.conf APACHE2_MODULES but when i restart apache it says:
Invalid command 'ProxyPreserveHost', perhaps misspelled or defined by a module not included in the server configuration

is there something else i forgot to do?
thanks...
_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Tue Nov 03, 2009 6:48 am    Post subject: Reply with quote

anyone please?
_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Tue Nov 24, 2009 7:50 pm    Post subject: Reply with quote

just a suggestion is welcome...
_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
coRpTitan
n00b
n00b


Joined: 21 Aug 2005
Posts: 55
Location: Czech Republic, Brno

PostPosted: Tue Nov 24, 2009 11:19 pm    Post subject: Reply with quote

Because of there is no logs/confs I will just try:

- Did you recompiled apache after adding make.conf ?
- When you execute: cat /etc/conf.d/apache2 | grep APACHE2_OPTS= what do you see as output?
- When you execute apache2 -t what's the output?
- Can you please post your relevant part of logs/confs?
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Wed Nov 25, 2009 7:18 am    Post subject: Reply with quote

hi, thanks for the reply.

Code:

$ cat /etc/conf.d/apache2 | grep APACHE2_OPTS=
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5"

Code:

$ apache2 -t
Syntax OK


i only added this to my vhost.conf:
Code:

<VirtualHost *:80>
  ServerName subdomain.domain.tld
  ProxyPreserveHost On
  ProxyPass / http://<lan_ip>:<port>
  ProxyPassReverse / http://<lan_ip>:<port>
</VirtualHost>

_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
coRpTitan
n00b
n00b


Joined: 21 Aug 2005
Posts: 55
Location: Czech Republic, Brno

PostPosted: Wed Nov 25, 2009 7:24 am    Post subject: Reply with quote

commandline wrote:
hi, thanks for the reply.

Code:

$ cat /etc/conf.d/apache2 | grep APACHE2_OPTS=
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5"


I think that's your problem, try to add -D PROXY . Most modules needs to be started/loaded by this way, see bottom of this file for list of modules.
Back to top
View user's profile Send private message
commandline
n00b
n00b


Joined: 20 Oct 2004
Posts: 70

PostPosted: Wed Nov 25, 2009 7:28 am    Post subject: Reply with quote

perfect!
thanks a lot.
_________________
gentoo stage3-2008.0 kernel 2.6.28-hardened-r9
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum