Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Im trying to redirect http://domain.com/fw to my firewall, which is 192.168.x.x.

When using proxypass, i get this errors in my log, and a 404 in my client:

[error] [client x.x.x.x] File does not exist: /var/www/fw

This is my vhost file:

<VirtualHost *:80>
Servername domain.com
ProxyPreserveHost On
ProxyPass /fw http://192.168.x.x
ProxyPassReverse /fw http://192.168.x.x
</VirtualHost>

Any ideas?

(Apache/2.2.22 (Debian))

apachectl -S

 wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server www.domain.com (/etc/apache2/sites-enabled/www:4)
         port 80 namevhost www.domain.com (/etc/apache2/sites-enabled/www:4)
         port 80 namevhost domain.com (/etc/apache2/sites-enabled/www:10)
         port 80 namevhost domain.com (/etc/apache2/sites-enabled/www:16)
         port 80 namevhost domain.com (/etc/apache2/sites-enabled/www:24)
         port 80 namevhost domain.com (/etc/apache2/sites-enabled/www:30)
Syntax OK
share|improve this question
    
can you please add the output of apachectl -S? –  dawud Sep 7 '13 at 13:03

1 Answer 1

Seems like a silly question but is the module enabled? I don't believe it's enabled by default, nor installed for that matter.

share|improve this answer
    
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so –  John Sep 7 '13 at 14:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.