httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Augusto Casagrande <augustocasagra...@gmail.com>
Subject [users@httpd] Redirect public server to internal server
Date Thu, 23 Sep 2010 02:07:05 GMT
Hi,
I have a very common problem.
I'm running one Apache 2.2.0 server on the Dmz. I have another Apache
server on the Lan.
I need to have my Lan Apache accesible on internet.
My vhosts configuration on the Dmz Apache is :

<VirtualHost *:80>
DocumentRoot /srv/www/htdocs/
ServerName host2.example.com
<Directory "/srv/www/htdocs/">
allow from all
Options +Indexes
</Directory>
</VirtualHost>


<VirtualHost *:443>
DocumentRoot /srv/www/htdocs/squirrelmail
<Directory "/srv/www/htdocs/squirrelmail">
allow from all
Options +Indexes
</Directory>
ServerName host2.example.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl.crt/server.crt
SSLCertificateKeyFile /etc/apache2/ssl.key/server.key
</VirtualHost>

--- So far so good, so i create a new vhost

<VirtualHost *:*>
DocumentRoot /srv/www/htdocs/share
ServerName example.com
ProxyRequests Off
<Proxy *>
       Order deny,allow
       Allow from all
</Proxy>
ProxyPass / http://internal-ip-apache-server/
</VirtualHost>

I execute an Apache restart , but pointing at www.example.com/share i
can't get my internal redirect. I'm only viewing my " share
"directory.
I'm not seeing any error in my access_log or error_log.
I have also enabled the proxy modules :

 # a2enmod -l
actions alias auth_basic authn_file authz_host authz_groupfile
authz_default authz_user authn_dbm autoindex cgi dir env expires
include log_config mime negotiation setenvif ssl suexec userdir php5
mod_proxy mod_proxy_http

Any help will be apreciated.
Thanks!

---------------------------------------------------------------------
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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message