savkar
14th March 2006, 15:17
Hi.
I have a local server running as an email server behind a firewall and already use port 80 to connect to my separate box running a web server. I have a web interface for my local email that I wanted to make accessible externally, and instead of switching to different ports I wanted to try to use the proxy method in Apache.
On my web server, which is running Debian Sarge and Apache2 (set up with the Perfect Setup description for Debian Sarge), I thought I could simply create a link from mods-available in /etc/apache2 to mods-enabled for proxy.load and proxy.conf.
I then also went to my sites-available section and added a new available site (virtual host) as follows:
<VirtualHost *>
ServerName betamail.xxx.com
ProxyRequests Off
ProxyPass / http://sunslave.xxx.com:80/
ProxyPassReverse / http://sunslave.xxx.com:80/
</VirtualHost>
However, when I then restart apache and try to access the site, I get the following error in firefox and mozilla:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
NOW NOTE, I also went to /etc/apache2/mods-enabled and made a soft link to proxy.load and proxy.conf. I then edited proxy.conf so that the lines starting:
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from .your.domain-name
</Proxy>
and changed the "Allow" to "Allow from .xxx.com
What is going wrong here? I still get the forbidden error which is driving me crazy. Something obviously not configured right.
I have a local server running as an email server behind a firewall and already use port 80 to connect to my separate box running a web server. I have a web interface for my local email that I wanted to make accessible externally, and instead of switching to different ports I wanted to try to use the proxy method in Apache.
On my web server, which is running Debian Sarge and Apache2 (set up with the Perfect Setup description for Debian Sarge), I thought I could simply create a link from mods-available in /etc/apache2 to mods-enabled for proxy.load and proxy.conf.
I then also went to my sites-available section and added a new available site (virtual host) as follows:
<VirtualHost *>
ServerName betamail.xxx.com
ProxyRequests Off
ProxyPass / http://sunslave.xxx.com:80/
ProxyPassReverse / http://sunslave.xxx.com:80/
</VirtualHost>
However, when I then restart apache and try to access the site, I get the following error in firefox and mozilla:
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
NOW NOTE, I also went to /etc/apache2/mods-enabled and made a soft link to proxy.load and proxy.conf. I then edited proxy.conf so that the lines starting:
ProxyRequests Off
<Proxy *>
Order deny,allow
Deny from all
Allow from .your.domain-name
</Proxy>
and changed the "Allow" to "Allow from .xxx.com
What is going wrong here? I still get the forbidden error which is driving me crazy. Something obviously not configured right.