Red Hat NETWORK PROXY SERVER 3.7 - Bedienungsanleitung Seite 49

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 101
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 48
2.6 Using Virtual Hosts 39
won’t have to do any manipulation of the virtual hosts directives in
httpd.conf. However,if you would like to usethe virtual hosts capabil-
ity for some other reason, you can.
To create a new virtual host, you’ll need to alter the virtual host lines in
httpd.conf. Find the lines which read as follows:
#<VirtualHost host.some_domain.com>
#ServerAdmin [email protected]_domain.com
#DocumentRoot /www/doc/host.some_domain.com
#ServerName my.domain.com
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#</VirtualHost>
Uncomment allof the lines (remove the #from the beginning of each line).
Then add the correct information for your machine and/or your virtual
host to each line.
Forexample,in thefirstline,<VirtualHost host.some domain.com>,
change the server’s name to whatever your server’s name is. You’ll need
to use the same name for both your virtual server and your ”real” server,
unless you have another valid DNS name to use for the virtual host. In
other words, don’t just make something up. Ask your system administra-
tor if you don’t know how to get a valid domain name.
Many other configuration directives can be placed between the virtual
host tags, depending upon why you’re setting up a virtual host.
If you set up a virtual host and want it to listen on a non-default port (80
is the default port for non-secure web communications; 443 is the default
port for secure web communications), you’ll need to set up a virtual host
forthat portandadd aListen line tohttpd.conf corresponding to that
port.
To have a virtual host work specifically for that port, add the port number
to the first line of the virtual host configuration. The first line should look
something like the following:
<VirtualHost www.yourserver.com:12331>
Seitenansicht 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 100 101

Kommentare zu diesen Handbüchern

Keine Kommentare