Hi,
We have a problem on our server running DirectAdmin version 1.35.1 on Debian 5.0. mod_proxy is installed as verified with "httpd -l" command.
In one of our virtual hosts we are using .htaccess to redirect viewers to another domain on the same server with mod_rewrite, wich is also enabled and working as expected, unless we use a "P" option in the RewriteRule. In that case, we get a 503 apache error.
The error log line in the file for the domain in which we are using .htaccess is:
---------------------------
[error] (70007)The timeout specified has expired: proxy: HTTP: attempt to connect to 123.123.123.123:80 (*) failed
---------------------------
(123.123.123.123 - is a example IP)
If we try to use mod_proxy directly (not with mod_rewrite and P option), the error log line is:
---------------------------
[alert] [client 123.123.123.123] /home/USER/domains/DOMAIN/public_html/.htaccess: ProxyRequests not allowed here, referer: http://www.secondDomain.si/
---------------------------
(secondDomain is the domain, we are forwarding to, DOMAIN is the domain we are forwarding from)
The .htaccess file looks like this:
---------------------------
Options +FollowSymLinks
RewriteEngine On
RewriteRule (.*) http://www.secondDomain.si/?lang=de$1 [P,L,QSA]
---------------------------
As mentioned before, this is working, if we remove the P option, but in that case we do not get the result we want to achieve.
The same .htaccess and the user with the same domains were previously on a different server (not ours, so we don't have root shell access or admin DA access) running DirectAdmin on a FreeBSD and it was working as expected.
Any help would be appreciated.
We have a problem on our server running DirectAdmin version 1.35.1 on Debian 5.0. mod_proxy is installed as verified with "httpd -l" command.
In one of our virtual hosts we are using .htaccess to redirect viewers to another domain on the same server with mod_rewrite, wich is also enabled and working as expected, unless we use a "P" option in the RewriteRule. In that case, we get a 503 apache error.
The error log line in the file for the domain in which we are using .htaccess is:
---------------------------
[error] (70007)The timeout specified has expired: proxy: HTTP: attempt to connect to 123.123.123.123:80 (*) failed
---------------------------
(123.123.123.123 - is a example IP)
If we try to use mod_proxy directly (not with mod_rewrite and P option), the error log line is:
---------------------------
[alert] [client 123.123.123.123] /home/USER/domains/DOMAIN/public_html/.htaccess: ProxyRequests not allowed here, referer: http://www.secondDomain.si/
---------------------------
(secondDomain is the domain, we are forwarding to, DOMAIN is the domain we are forwarding from)
The .htaccess file looks like this:
---------------------------
Options +FollowSymLinks
RewriteEngine On
RewriteRule (.*) http://www.secondDomain.si/?lang=de$1 [P,L,QSA]
---------------------------
As mentioned before, this is working, if we remove the P option, but in that case we do not get the result we want to achieve.
The same .htaccess and the user with the same domains were previously on a different server (not ours, so we don't have root shell access or admin DA access) running DirectAdmin on a FreeBSD and it was working as expected.
Any help would be appreciated.