Re: port 80 + 8080 + SSL (443)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Kurt,

On Feb 16, 2009, at 4:22 PM, KURT PETERS wrote:

<VirtualHost 172.20.30.40:80 172.20.30.40:8080 192.168.1.40:80 192.168.1.40:8080>
ServerName www.example.com
ServerAlias LOCALNAME
DocumentRoot /var/www
</VirtualHost>

NameVirtualHost 172.20.30.40:443
NameVirtualHost 192.168.1.40:443

<VirtualHost 172.20.30.40:443 192.168.1.40:443>
ServerName www.example.com
DocumentRoot /var/secwww
</VirtualHost>

Is there an "easier" way to do this?

Since you aren't serving different content based on the hostname that a browser is requesting, I think that you don't need NameVirtualHost. You might try simplifying by:

Listen 80
Listen 8080
<VirtualHost *:80 *:8080>
  ...
</VirtualHost>

Listen 443
<VirtualHost *:443>
  ...
</VirtualHost>

This is all off the top of my head, you'd need to check directives in the docs. But answering your question: this may be an easier way, but your method is certainly valid as well and isn't "overdoing it".

- --
Best regards / met vriendelijke groet, Karel Kubat
Mob +31 6 2956 4861



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkmZiUcACgkQ23FrzRzybNXKrgCdHWT08hYfX7x4rtjDMGH5GsCD
KEwAniB7GWZDcDoTiTm22d/03tApP+ml
=ahBk
-----END PGP SIGNATURE-----

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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux