Archive for the “Nginx” Category

Much to my surprise, nginx has it’s own repo. You can find more info here:

http://wiki.nginx.org/Install

I’ve been using the one from the epel repo and it is a couple minor versions behind.

nginx x86_64 1.0.15-2.el6 epel
nginx x86_64 1.2.4-1.el6.ngx nginx

Comments No Comments »

Well, I tried to find a howto on parsing NGINX with logwatch, but I found content lacking. So I decided to create my own. There is a small caveat, this is for the CentOS RPM install of NGINX; your files may reside in different places.

1. copy the logfile conf for httpd to nginx located in /usr/share/logwatch/default.conf/logfiles/

# cp httpd.conf nginx.conf

2. Modify the nginx.conf file to use the files in /var/log/nginx (Note: logwatch already knows /var/log/ as the LogPath). You can modify the conf file to look as such:

########################################################
# Define log file group for nginx
########################################################

# What actual file? Defaults to LogPath if not absolute path….
LogFile = nginx/*access.log

# If the archives are searched, here is one or more line
# (optionally containing wildcards) that tell where they are…
#If you use a “-” in naming add that as well -mgt
Archive = nginx/*access.log*

# Expand the repeats (actually just removes them now)
*ExpandRepeats

# Keep only the lines in the proper date range…
*ApplyhttpDate

# vi: shiftwidth=3 tabstop=3 et

3, copy the services conf for httpd to nginx located in /usr/share/logwatch/default.conf/services/

# cp http.conf nginx.conf

4. Modify the nginx.conf so that the head of the file looks like such:

###########################################################################
# Configuration file for nginx filter
###########################################################################

Title = “nginx”

# Which logfile group…
LogFile = nginx

5. copy service file for http to nginx located in /usr/share/logwatch/scripts/services

# cp http nginx

6. Run Logwatch

# /usr/sbin/logwatch

Comments 4 Comments »

Oorah, so I decided to try out this NGINX (engine X) web server. I got it installed on my new could server. I was able to find some howto’s and get php working on it. However, I noted some differences in the install (CentOS RPM) to what the documentation states. While it was fun to get it working. I would like to see how it is installed by default. So I will likely end up blowing away this install and doing it yet again. If you have any experience with NGINX, please feel free to share.

Comments No Comments »