URGENT Custom build apache2 + mod rewrite + mod proxy

Gerd29

Verified User
Joined
Apr 11, 2006
Messages
19
Hi all.

I installed a fresh new directadmin with apache 2.2 and php5
I got 1 uge problem do. 80 websites of a customer of mine dont work anymore.

the user has alot of websites that link to a sponsor with this htaccess:

PHP:
RewriteEngine On
RewriteCond     %{REQUEST_FILENAME}  !-f
RewriteRule ^(.*)\.(jpg|gif|wmv|mov|mpg|m4v|avi|asf|png|css)$ http://www.alsomawint.nl/$1.$2 [R,L]
RewriteCond     %{REQUEST_FILENAME}  !-f
RewriteCond      %{QUERY_STRING}     !p=([0-9]+)
RewriteRule ^(.*)$ http://www.alsomawint.nl/$1?p=814&tb=1 [P,QSA,L]
RewriteCond     %{REQUEST_FILENAME}  !-f
RewriteRule ^(.*)$ http://www.alsomawint.nl/$1  [P,QSA,L]

I noticed apache 2 installs mod rewrite but not mod proxy?

Can someone help me to fix this? this customer is going crazy atm :D

I proberly need to install mod_proxy to get it to work, but i cant find how to do this.

any help would be appriciated
 
Try changing +MultiViews to -MultiViews in httpd.conf. This default has changed.
 
And for mod_proxy:

Add:

"--enable-proxy" \

to /usr/local/directadmin/custombuild/configure/ap2/configure.apache

And "./build apache".
 
Back
Top