View Single Post
  #3   (View Single Post)  
Old 13th February 2009
goertzenator goertzenator is offline
New User
 
Join Date: Feb 2009
Location: Winnipeg
Posts: 5
Default

Hi anomie, thanks for the reply.

1.
Code:
[root@bug ~]# sockstat -4l
USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
root     sendmail   1870  4  tcp4   192.168.1.81:25       *:*
root     httpd      1859  3  tcp4   192.168.1.81:80       *:*
root     syslogd    1793  6  udp4   192.168.1.81:514      *:*

(taken while firefox is trying to load a page from httpd)
2. The apache package description is "Apache web server with peruser MPM". This is what I got when I did "pkg_add -r apache22". Apache is definitely there.


3.
Code:
[root@bug /]# nc -zvw 1 192.168.1.105 22
Connection to 192.168.1.105 22 port [tcp/ssh] succeeded!
4. I had some old rules up and pf was enabled. I turned them off but it did not help.

5. Access log config is okay. Only change I made from default was to set LogLevel to debug. httpd.conf fragment below

Code:
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "/var/log/httpd-error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#

#LogLevel warn
LogLevel debug

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "/var/log/httpd-access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "/var/log/httpd-access.log" combined
</IfModule>
I've made no other changes to httpd.conf... I just want to see the "It works!" page.
Reply With Quote