Hello there,
I'm trying to set up my Apache 2 as Reverse proxy. But something is
wrong in the configuration file:
Listen 80
ServerName linux_1.primaryDomain.com
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyVia On
</IfModule>
NameVirtualHost *:80
# Default Virtual Host
<VirtualHost *:80>
ServerName linux_1.primaryDomain.com
DocumentRoot /var/www/html
</VirtualHost>
# www.secondaryDomain.eu
<VirtualHost *:80>
ServerName www.secondaryDomain.eu
ProxyPreserveHost On
ProxyPass / http://linux_2.primaryDomain.com/secondaryDomainSite
ProxyPassReverse / http://linux_2.primaryDomain.com/secondaryDomainSite
</VirtualHost>
If I call linux_1.primaryDomain.com the browser can't connect to the
server, while if I call
www.secondaryDomain.eu I get a 404 error.
As you can see by my comments I'd like to have as default the first
(which doesn't reply at all) and a reverse proxy on an internal server
(which is not reachable from internet).
Anyone can tell me where I made the mistake?
Thanks in advance for any help.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]