
38 Configuring Your Secure Web Server
requests. By default, the DocumentRoot is set to /home/httpd/html.
To change the DocumentRoot so that it is no longer shared by both the
secureserverandthenon-secureserver,changeoneoftheDocumentRoot
directivesin either httpd.conf or in srm.conf. The DocumentRoot in
srm.conf defines the DocumentRoot for your non-secure web server.
The DocumentRoot in httpd.conf (note that it is located within the
virtual host tags that define your secure web server) is for your secure
web server.
Obviously, if you change the DocumentRoot,make sure thatthe new one
is accessible to the User.
If for some reason you want to disable the non-secure web server on your
machine, you can. In httpd.conf, change the line which reads:
Port 80
so that it reads:
Port 443
Then comment out the Listen 80 line, so that instead of:
Listen 80
it reads:
#Listen 80
After these two steps, your secure web server will be accepting connec-
tions on port 443, the default port for secure web communications. How-
ever, your server will not accept connections on port 80, the default port
for non-secure communications, so the non-secure web server will be ef-
fectively disabled.
Most people will probably use their secure web server as it is configured.
Therefore, they’ll be using the built-in virtual hosts capability, but they
Comentários a estes Manuais