Ok this may sound stupid but...it looks like you're using apache 2.2...I don't think the "Require all granted" works for that version (I believe that is 2.4+). Try changing that back to:
Order allow,deny Allow from all
It looks like that was changed based on the thread prior where you had it working...
=G=
On 12/12/2013 09:07 AM, Diep, David (OCTO-Contractor) wrote:
Here you go:
[root at lsypf01a cgi-bin]# namei -mx /home/xymon
f: /home/xymon
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-bin
f: /home/xymon/cgi-bin
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x cgi-bin
[root at lsypf01a cgi-bin]# ^C
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-secure
f: /home/xymon/cgi-secure
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x cgi-secure
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/client
f: /home/xymon/client
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x client
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/data
f: /home/xymon/data
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x data
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/server
f: /home/xymon/server
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x server
*David Diep**|* IBM Z Series Network Architect | Office of the Chief Technology Officer
Integrated Platform Services | 200 I Steet SE | Washington DC, 20003**
Phone: 202.727.1475 *| *Mobile Phone: 202.727.3976 *| *Email:_David.Diep at dc.gov <mailto:David.Diep at dc.gov>_
Website:www.octo.dc.gov <http://www.octo.dc.gov/> *| **Telework day: Thursday*
*From:*Josh Luthman [mailto:josh at imaginenetworksllc.com] *Sent:* Thursday, December 12, 2013 8:53 AM *To:* Diep, David (OCTO-Contractor) *Cc:* cleaver at terabithia.org; Root, Paul T; xymon at xymon.com; Galen Johnson *Subject:* RE: [Xymon] 404 Not Found URL/xymon was not found on this server
Namei -mx that directory?
Josh Luthman Office: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Dec 12, 2013 8:15 AM, "Diep, David (OCTO-Contractor)" <David.Diep at dc.gov <mailto:David.Diep at dc.gov>> wrote:
Good morning guys,
I made a change to xymon-apache.conf, all I did was remove the trailing "/":
From:
Alias /xymon/ "/home/xymon/server/www/"
<Directory "/home/xymon/server/www">
Options Indexes FollowSymLinks Includes MultiViews Require all granted</Directory>
To:
Alias /xymon "/home/xymon/server/www"
<Directory "/home/xymon/server/www">
Options Indexes FollowSymLinks Includes MultiViews Require all granted</Directory>
After the restart, I do see something different:
At the http://ipaddress/xymon
*Forbidden*
You don't have permission to access /xymon on this server.
/Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/
In the error_log in /var/httpd:
[Thu Dec 12 07:54:26 2013] [error] [client 10.44.35.35] (13)Permission denied: access to /xymon denied
I went back to xymon_apache.conf and re-added the original allow parameter. This did it!
Alias /xymon "/home/xymon/server/www"
<Directory "/home/xymon/server/www">
Options Indexes FollowSymLinks Includes MultiViews Order allow,deny Allow from all</Directory>
ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
<Directory "/home/xymon/cgi-bin">
AllowOverride None Options ExecCGI Includes Order allow,deny Allow from all</Directory>
ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
AllowOverride None Options ExecCGI Includes Order allow,deny Allow from allI now can bring up the page... hooray! Time to continue playing.
Thanks everyone!
Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline <http://dhs.dc.gov/page/hypothermia-alert-plan>at *1-800-535-7252 <tel:1-800-535-7252>* or *311*.
-----Original Message----- From: Japheth Cleaver [mailto:cleaver at terabithia.org <mailto:cleaver at terabithia.org>] Sent: Wednesday, December 11, 2013 3:23 PM To: Galen Johnson Cc: Josh Luthman; Root, Paul T; xymon at xymon.com <mailto:xymon at xymon.com>; Diep, David (OCTO-Contractor) Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server
You can also rewrite the existing Alias line to drop the final slash too. eg:
-Alias @XYMONHOSTURL@/ "@INSTALLWWWDIR@/"
+Alias @XYMONHOSTURL@ "@INSTALLWWWDIR@"
For me, that's:
Alias /xymon "/var/www/xymon"
The RPMs have done that for a while... haven't heard of any issues so far.
-jc
On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash. If you want to
ensure that it always redirects to /xymon/, just add a rewrite rule to
apache's httpd.conf...it may even work in the xymon.conf file:
RewriteEngine on
RewriteRule ^/xymon$ /xymon/ [R,L]
=G=
On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?
Josh Luthman
Office: 937-552-2340 <tel:937-552-2340>
Direct: 937-552-2343 <tel:937-552-2343>
1100 Wayne St
Suite 1337
Troy, OH 45373
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<Paul.Root at centurylink.com <mailto:Paul.Root at centurylink.com <mailto:Paul.Root at centurylink.com%20%3cmailto:Paul.Root at centurylink.com>>> wrote:
Any error messages in apache log files?*From:*Diep, David (OCTO-Contractor) [mailto:David.Diep at dc.gov<mailto:David.Diep at dc.gov>
<mailto:David.Diep at dc.gov>]*Sent:* Wednesday, December 11, 2013 1:19 PM*To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com><mailto:xymon at xymon.com>'
*Subject:* RE: 404 Not Found URL/xymon was not found on thisserver
Hi Paul,I saw that thread and I did go to the config file to make sure...XYMONSERVERROOT="/home/xymon" # Where Xymon isinstalledXYMONSERVERLOGS="/var/log/xymon" #Directory for server logs. The xymon user must have write-accesshere.
XYMONCLIENTHOME="/home/xymon/client" # XYMONHOMEdirectory for the clientXYMONSERVERHOSTNAME="lsypf01a.in.domain" # The hostname ofyour serverXYMONSERVERIP="10.82.10.54" # The IP-addressof your server. Use the real one, not 127.0.0.1 .XYMONSERVEROS="linux" # The operating system ofyour server. linux,freebsd,solaris,hpux,aix,osfXYMONSERVERWWWNAME="lsypf01a.in.domain" # The name usedfor this hosts' webserverXYMONSERVERWWWURL="/xymon" # The top URL for theXymon webpagesXYMONSERVERCGIURL="/xymon-cgi" # The URL for the XymonCGI scripts.XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the securedXymon CGI scripts.# XYMONNETWORK="foo" # The networklocation, makes xymonnet test only hosts with NET:foo# You only need toset this if you have multiple network test servers with# a sharedhosts.cfg file.# Make sure the path includes the directories where you havefping, mail and (optionally) ntpdate installed,# as well as the XYMONHOME/bin directory where all of the Xymonprograms reside.PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
SHELL="/bin/sh" # Shell to usewhen forking programs# Some systems need extra settings e.g. to locate run-timelibraries.
# You can add these extra settings here:# Default settings for "delayred" and "delayyellow" parameters inhosts.cfgDELAYRED="" # Format:status:delay[,status:delay - e.g. "cpu:15,disk:30"DELAYYELLOW="" # Format:status:delay[,status:delay - e.g. "cpu:15,disk:30"##### Normally you do not need to modify anything below this point###### General settingsXYMONDPORT="1984" # Portnumber where xymond listensXYMSRV="10.82.10.54" # IP of a single Xymon serverXYMSERVERS="" # IP of multiple Xymon servers. Ifused, XYMSRV must be 0.0.0.0FQDN="TRUE" # Use fully-qualified hostnamesinternally. Keep it TRUE unless you know better.I restarted xymon first and then apache... still no luck.[xymon at lsypf01a ~]$ ./server/xymon.sh restartXymon stoppedXymon started[root at lsypf01a etc]# service httpd restartStopping httpd: [ OK ]Starting httpd: [ OK ]http://10.82.10.54 is served, but not http://10.82.10.54/xymonD'oh.*David Diep**|* IBM Z Series Network Architect | Office of theChief Technology OfficerIntegrated Platform Services | 200 I Steet SE | Washington DC,20003**
Phone: 202.727.1475 <tel:202.727.1475> <tel:202.727.1475> *|*Mobile Phone:
202.727.3976 <tel:202.727.3976> <tel:202.727.3976> *|*Email:_David.Diep at dc.gov <mailto:Email%3A_David.Diep at dc.gov>
<mailto:David.Diep at dc.gov>_Website:www.octo.dc.gov <http://www.octo.dc.gov><http://www.octo.dc.gov/> *| **Telework
day: Thursday**From:*Root, Paul T [mailto:Paul.Root at CenturyLink.com]<mailto:[mailto:Paul.Root at CenturyLink.com]>
*Sent:* Wednesday, December 11, 2013 2:04 PM*To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com<mailto:xymon at xymon.com>
<mailto:xymon at xymon.com>'*Subject:* RE: 404 Not Found URL/xymon was not found on thisserver
We just had this one.You see that xymon is listening on 0.0.0.0:1984<http://0.0.0.0:1984>. You need to change you XYMONSERVERIPenvironment in xymonserver.cfg to the IP address of the server.Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ipaddress as well. Then restart xymon.I'm assuming you did restart apache after you put thexymon-apache.conf into /etc/httpd/conf.d, right?*From:*Xymon [mailto:xymon-bounces at xymon.com]<mailto:[mailto:xymon-bounces at xymon.com]> *On Behalf Of *Diep,
David (OCTO-Contractor)*Sent:* Wednesday, December 11, 2013 12:48 PM*To:* xymon at xymon.com <mailto:xymon at xymon.com><mailto:xymon at xymon.com>
*Subject:* [Xymon] 404 Not Found URL/xymon was not found on thisserverHi Everyone,I'm very very new to XYMON, as a matter of fact, I just installedit 15 minutes ago. I thought I was cruising along quite nicelyuntil I tested it. This is what I received:*Not Found*The requested URL /xymon was not found on this server.
/Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/Xymon is running, that I can confirm:[xymon at lsypf01a ~]$ ./server/xymon.sh statusXymon (xymonlaunch) running with PID 4826[xymon at lsypf01a ~]$Here is my xymon-apache.conf, I made changes from what I've readin the older subscription messages:Alias /xymon/ "/home/xymon/server/www/"<Directory "/home/xymon/server/www">Options Indexes FollowSymLinks Includes MultiViewsRequire all granted</Directory>ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"<Directory "/home/xymon/cgi-bin">AllowOverride NoneOptions ExecCGI IncludesRequire all granted</Directory>ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"<Directory "/home/xymon/cgi-secure">AllowOverride NoneOptions ExecCGI IncludesRequire all grantedVarious logs in /var/log/xymon:Xymonlaunch.log:2013-12-11 13:24:00 xymonlaunch starting2013-12-11 13:24:00 Loading tasklist configuration from/home/xymon/server/etc/tasks.cfg2013-12-11 13:24:00 Cannot open directory/home/xymon/server/etc/tasks.d2013-12-11 13:24:00 Loading hostnames2013-12-11 13:24:00 Loading saved state2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984<http://0.0.0.0:1984>2013-12-11 13:24:00 Setting up signal handlers2013-12-11 13:24:00 Setting up xymond channels2013-12-11 13:24:00 Setting up logfilesRrd-data.log:2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0><http://0.0.0.0:0> failed:
Broken pipe2013-12-11 13:34:13 Peer not up, flushing message queue2013-12-11 13:34:13 exec() failed for child command xymond_rrd: Nosuch file or directory2013-12-11 13:34:13 Child process 5357 died: Exit status 1*David Diep** *Look out for those in need this winter. When the temperature orwind chill is 32°F or below, the District issues a HypothermiaAlert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>at*1-800-535-7252 <tel:1-800-535-7252>
<tel:1-800-535-7252>* or *311*._______________________________________________Xymon mailing listXymon at xymon.com <mailto:Xymon at xymon.com> <mailto:Xymon at xymon.com>http://lists.xymon.com/mailman/listinfo/xymon
Xymon mailing list
Xymon at xymon.com <mailto:Xymon at xymon.com>
Xymon mailing list
Xymon at xymon.com <mailto:Xymon at xymon.com>