What is an example of a <VirtualHost> directive? Since it's internal, I am assuming the VHost's are being done name-based, so do you have `NameVirtualHost' set to the corresponding entry in the <VirtualHost>.
Example: #--- NameVirtualHost * # Listen for VHosts on all IP's <VirtualHost *> ServerName _default_ DocumentRoot /var/www ServerAdmin www-data@server.somedomain.com </VirtualHost> <VirtualHost *> ServerName somedomain.com ServerAlias www.somedomain.com DocumentRoot /var/www/somedomain.com </VirtualHost> #---The _default_ entry is done first, to make sure that anything that isn't set anywhere else is grabbed by this. I don't know why Apache doesn't use the base config as the default when you do Virtual Hosts, but I know that I have always needed to do this.
ServerName is what the browser requests, ServerAlias is anything else you want assigned to that VirtualHost (you can have more than one entry on the line).
The * after VirtualHost must be the same as set in NameVirtualHost. If you are using a seperate IP for each VHost, then NameVirtualHost is not needed (nor _default_).
Alberto Martínez wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: MD5 Hello. I have configured a debian firewall wich has been connected between the router and the apache web server system. It has been configured to support NAT and redirect http port to server IP. Everything goes ok but the apache virtual domains. It is impossible to achieve the desired page by its name but we can access by includin the path after the server address. I don't know exactly how the informatio of the name given to the explorer is passed to the apache, so maybe this information is "deleted" in any way when the packets go throw the firewall??? Can you help me? Thak you very much. -----BEGIN PGP SIGNATURE----- Version: 2.6 iQEVAwUAQZodKnHoJ4bX5QlXAQGIrAf+P3TiJMLHL+6htAxLqLyRJX6Lf9Gr4hwf BdIEbFZwiJHzPsWM4S5RXhJr/XFzFSEg5tk8ETk/vicwkTDrGvD0KmnWEPfP4p9s 9yI53zQiwZLKIhhUBqm7obIjZaVw27AtyVj6Jy3Xq8GTv7JCMZ2OFeN0YW03dJ4Y /o2jD+MDOabz0UPO6gH1rbfEZ4UNbbHLNWgHE5JtWthHNt0R/LeyH3+0xo78P5G7 AAVMIK4yGiMAuDYIr6PsnnmhpCGrddT0zHIcZtSuLM2cQyr1Sny1uA79V53JHGWM QGM94LlkwMdTn+hLRfjcipOiIMyZnuQLBFsM/ji+1HFeAGEfW2lqAg== =ykO2 -----END PGP SIGNATURE-----
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature