Red Hat NETWORK PROXY SERVER 3.7 - Uživatelský manuál Strana 47

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 101
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 46
2.6 Using Virtual Hosts 37
machine. If you’re interested in using virtual hosts for different IP ad-
dressesor differenthost names onyour machine, moreinformation is pro-
vided in the Apache documentation on your machine or on the web at
http://www.apache.org/docs/vhosts/index.html.
Virtual hosts are configured within the httpd.conf file, as described in
section 2.2 on page 17. Please review the pertinent points in that section
beforeyoustartto changethevirtualhosts configurationonyour machine.
The default configuration of your secure web server uses virtual hosts to
run two web servers: a secure web server and a non-secure web server.
Both servers use the same IP address and host name, but they listen on
different ports. This configuration enables you to serve both secure and
non-secure documents in the most efficient manner possible. As you may
know, secure HTTP transmissions take more time than non-secure, be-
cause a lot more information is being passed back and forth during the
securetransaction. So using asecureweb serverfor non-secureweb traffic
is not a good idea.
As installed, your secure web server is configured to operate in both se-
cure and non-secure modes. The non-secure web server is configured as
the ”non-virtual” host in the httpd.conf file. In other words, the non-
secure web server’s configuration options are outside of the virtual host
tags in httpd.conf. If you want to change something about your non-
secure web server, you’ll need to change the configuration directives in
httpd.conf outside ofthe virtualhost tags. Your non-secure web server,
by default,listens on port 80, the default port for non-secure web commu-
nications.
Yoursecurewebserverisconfiguredas a virtualhost in httpd.conf. The
configuration options for your secure web server are contained within the
virtual host tags inthe httpd.conf file. If you need to changesomething
about the configuration of your secure web server, you’ll need to change
theconfigurationdirectivesinsidethevirtualhosttagsinthehttpd.conf
file. Your secureweb server,bydefault,listens on port443,thedefaultport
for secure web communications.
By default, the secure and the non-secure web server share the same
DocumentRoot, a configuration directive specified in httpd.conf.In
other words, the secure and the non-secure web server look in the same
place for the HTML files that they are going to provide in response to
Zobrazit stránku 46
1 2 ... 42 43 44 45 46 47 48 49 50 51 52 ... 100 101

Komentáře k této Příručce

Žádné komentáře