Chip Upsal wrote:
if you solved the iptables problem and you are properly forwarding traffic to the internal box, that's probably an apache issue: as far as i understand you are creating a name based virtul host: apache should look in the _http_headers_ to respond with the correct web server name. (http headers are indeed in packet payloads and iptables will not touch them when S/DNATting).I doubt it is strictly an apache problem as if we remove the firewall and assign the external ip address to the server it all works well.
so:
NameVirtualHost 192.168.0.2
<VirtualHost 192.168.0.2>
ServerName site4.company.com
ServerAlias site4*
ServerAdmin admin@company.com
DocumentRoot D:/web_root/foo4
ErrorLog logs/site4.cyberwolf.com-error_log
CustomLog logs/site4.cyberwolf.com-access_log common
</VirtualHost>
hope that this is going to work (is working for me, though).
andrea