Virtual Host And Certbot in RHEL6: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<source lang="ini" highlight="4" start="219" line> # Load config files from the config directory "/etc/httpd/conf.d". # Include conf.d/*.conf Include conf.sites.d/*.conf <...") |
No edit summary |
||
Line 1: | Line 1: | ||
==httpd.conf== | |||
<code>vim /etc/httpd/conf/httpd.conf</code> | |||
<source lang="ini" highlight="4" start="219" line> | <source lang="ini" highlight="4" start="219" line> | ||
# Load config files from the config directory "/etc/httpd/conf.d". | # Load config files from the config directory "/etc/httpd/conf.d". |
Revision as of 23:36, 10 November 2019
httpd.conf
vim /etc/httpd/conf/httpd.conf
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
Include conf.sites.d/*.conf
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. [email protected]
#
ServerAdmin [email protected]
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
#ServerName www.example.com:80
ServerName bgd.medisys.com.my:80
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
#IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
IndexOptions FancyIndexing VersionSort SuppressDescription FoldersFirst XHTML HTMLTable NameWidth=* IgnoreCase SuppressRules
IndexStyleSheet "/icons/style.css"
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
ReadmeName /icons/README.html
HeaderName HEADER.html
# Use name-based virtual hosting.
#
NameVirtualHost *:80