View previous topic :: View next topic |
Author |
Message |
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Thu Oct 29, 2009 7:21 pm Post subject: [apache2] ProxyPreserveHost |
|
|
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 |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Tue Nov 03, 2009 6:48 am Post subject: |
|
|
anyone please? _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Tue Nov 24, 2009 7:50 pm Post subject: |
|
|
just a suggestion is welcome... _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
coRpTitan n00b
Joined: 21 Aug 2005 Posts: 55 Location: Czech Republic, Brno
|
Posted: Tue Nov 24, 2009 11:19 pm Post subject: |
|
|
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 |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Wed Nov 25, 2009 7:18 am Post subject: |
|
|
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 |
|
|
coRpTitan n00b
Joined: 21 Aug 2005 Posts: 55 Location: Czech Republic, Brno
|
Posted: Wed Nov 25, 2009 7:24 am Post subject: |
|
|
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 |
|
|
commandline n00b
Joined: 20 Oct 2004 Posts: 70
|
Posted: Wed Nov 25, 2009 7:28 am Post subject: |
|
|
perfect!
thanks a lot. _________________ gentoo stage3-2008.0 kernel 2.6.28-hardened-r9 |
|
Back to top |
|
|
|