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

Some muppet in my company has bunged up the config of an apache server. Basically what I need to do to fix this mess is to capture all traffic on port 8082 (Apache is configured to listen to this port) - then to redirect this traffic to /bugzilla. Is this possible, and if so how?

The box is only visible to internal users so quick dirty hack is just fine in this case.

share|improve this question

migrated from stackoverflow.com Jul 17 '09 at 1:10

This question came from our site for professional and enthusiast programmers.

    
Bunged up in what way, what does it do right now? –  Shadi Almosri Jul 16 '09 at 23:59
    
Could you define muppet for those that don't understand the term please :) –  Jon Jul 17 '09 at 0:05

1 Answer 1

Enable a HTTP Proxy for Apache, here the significative portion of httpd.conf:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so

ProxyRequests Off

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

<VirtualHost *:8082>
    ServerName  bugzilla.localhost
    ServerAdmin admin@example.com

    ProxyRequests off
    ProxyPass / http://127.0.0.1:80/bugzilla
</VirtualHost>
share|improve this answer
    
this solution worked perfectly - thank you very much victor! –  Mark Jul 17 '09 at 0:57

Your Answer

 
discard

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