Custom repository refuses to show up in HTTP

General support questions
kix
Posts: 17
Joined: 2018/06/10 22:56:42

Re: Custom repository refuses to show up in HTTP

Post by kix » 2018/09/14 19:16:14

I went ahead and changed the directory of ErrorLog & AccessLog

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>
The current contents of that var/log/httpd/, directory are

Code: Select all

access_log  error_log  error_log-20180909
cat access_log, displays nothing. cat error_log, displays the following from yesterday.

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'
Should I change the contents in vhost.conf from, /error.log, to /error_log? Since the latter presently exists?

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>
Centos 7 w/Gnome | Lenovo Thinkpad X201 ─ i7@2.6GHz, 4GB DDR3, 270 MB/s SSD

Post Reply