PDA

View Full Version : URGENT Custom build apache2 + mod rewrite + mod proxy



Gerd29
04-08-2008, 04:40 PM
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:



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

vandal
04-13-2008, 11:52 PM
Did you figure this out?

Could be this: http://help.directadmin.com/item.php?id=191

guidob
04-14-2008, 12:25 AM
Try changing +MultiViews to -MultiViews in httpd.conf. This default has changed.

guidob
04-15-2008, 12:13 AM
And for mod_proxy:

Add:

"--enable-proxy" \

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

And "./build apache".