Code: Select all
NameVirtualHost *:80
<Directory /home/kix/rpm/repo>
Require all granted
</Directory>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName server.home
ServerAlias www.example.com
DocumentRoot /home/kix/rpm/repo
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
</VirtualHost>
Code: Select all
access_log error_log error_log-20180909
Code: Select all
[Thu Sep 13 14:17:07.766912 2018] [mpm_prefork:notice] [pid 1434] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Sep 13 14:18:11.217329 2018] [core:notice] [pid 1424] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Sep 13 14:18:11.221234 2018] [suexec:notice] [pid 1424] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using myserver.server.home. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 13 14:18:11.252164 2018] [auth_digest:notice] [pid 1424] AH01757: generating secret for digest authentication ...
[Thu Sep 13 14:18:11.253555 2018] [lbmethod_heartbeat:notice] [pid 1424] AH02282: No slotmem from mod_heartmonitor
[Thu Sep 13 14:18:11.266751 2018] [mpm_prefork:notice] [pid 1424] AH00163: Apache/2.4.6 (CentOS) configured -- resuming normal operations
[Thu Sep 13 14:18:11.266814 2018] [core:notice] [pid 1424] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
Edit:
I used the syntax described in the following post (link), to make html files located in, /var/www/html/, to display.
Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName server.home
ServerAlias www.example.com
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
<Directory "/var/www/html"> # quoted
AllowOverride All
Require all granted # required in Apache 2.4
</Directory>
</VirtualHost>