I'm having some problems getting CentOS to serve up my Smokeping pages ( http://oss.oetiker.ch/smokeping/) However, I'm having problems getting the pages to serve up correctly.
Here is a quick run down of what I've done.
(1) wget and untar to /usr/local/smokeping (2) chown -R root:root /usr/local/smokeping (3) modifying to the following files to reflect my environment
(not sure if all my steps here were good)
/usr/local/smokeping/bin/smokeping /usr/local/smokepoing/htdocs/smokeping.cfg
(4) ln -s /usr/local/smokeping/htdocs /var/www/html/smokeping
When I go to "www.mybox.com/smokeping", all I get is a list of files, not the webpage I would expect to get.
What might I be doing wrong?
I'm having some problems getting CentOS to serve up my Smokeping pages ( http://oss.oetiker.ch/smokeping/) However, I'm having problems getting the pages to serve up correctly.
Here is a quick run down of what I've done.
(1) wget and untar to /usr/local/smokeping (2) chown -R root:root /usr/local/smokeping (3) modifying to the following files to reflect my environment
(not sure if all my steps here were good)
/usr/local/smokeping/bin/smokeping /usr/local/smokepoing/htdocs/smokeping.cfg
(4) ln -s /usr/local/smokeping/htdocs /var/www/html/smokeping
When I go to "www.mybox.com/smokeping", all I get is a list of files, not the webpage I would expect to get.
What might I be doing wrong?
If you are getting a list of files, I have to wonder if you have a DirectoryIndex set .. and if so .. what the filenames are in DirectoryIndex.
Barry
Rogelio wrote:
I'm having some problems getting CentOS to serve up my Smokeping pages (http://oss.oetiker.ch/smokeping/)
However, I'm having problems getting the pages to serve up correctly.
Here is a quick run down of what I've done.
(1) wget and untar to /usr/local/smokeping (2) chown -R root:root /usr/local/smokeping (3) modifying to the following files to reflect my environment
(not sure if all my steps here were good)
/usr/local/smokeping/bin/smokeping /usr/local/smokepoing/htdocs/smokeping.cfg
(4) ln -s /usr/local/smokeping/htdocs /var/www/html/smokeping
When I go to "www.mybox.com/smokeping http://www.mybox.com/smokeping", all I get is a list of files, not the webpage I would expect to get.
What might I be doing wrong?
apache isn't real fond of symbolic links unless you add Directory primitives for the real directory. actually, I'd blow off the symlink entirely, and instead use something like...
/etc/httpd/conf.d/smokering.conf: Alias /smokering/ /usr/local/smokering/htdocs/ <Directory /usr/local/smokering/htdocs> AllowOverride All Options MultiViews All </Directory>
(adjusting the privileges as needed inside that <Directory> block...)
On Wed, Feb 27, 2008 at 9:54 PM, John R Pierce pierce@hogranch.com wrote:
When I go to "www.mybox.com/smokeping http://www.mybox.com/smokeping", all I get is a list of files, not the webpage I would expect to get.
What might I be doing wrong?
apache isn't real fond of symbolic links unless you add Directory primitives for the real directory. actually, I'd blow off the symlink entirely, and instead use something like...
/etc/httpd/conf.d/smokering.conf: Alias /smokering/ /usr/local/smokering/htdocs/ <Directory /usr/local/smokering/htdocs> AllowOverride All Options MultiViews All
</Directory>
(adjusting the privileges as needed inside that <Directory> block...)
I rm'd the sym link and put that (exactly) along with
order deny, allow deny from all allow from all
I still cannot get in. Is this an Apache issue? (I suppose that I don't understand how these directory definitions work very well)
I rm'd the sym link and put that (exactly) along with
order deny, allow deny from all allow from all
I still cannot get in. Is this an Apache issue? (I suppose that I don't understand how these directory definitions work very well)
yes, it is an apache issue.
try adding this (inside the <directory> block, after the other stuff)
<Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit>
now, if you get a list of the files in the folder, you need to determine what the default document is supposed to be (probably something like index.php ?) and add a
DirectoryIndex index.php
to the <Directory> block...
On Wed, Feb 27, 2008 at 09:54:22PM -0800, John R Pierce alleged:
/etc/httpd/conf.d/smokering.conf: Alias /smokering/ /usr/local/smokering/htdocs/ <Directory /usr/local/smokering/htdocs> AllowOverride All Options MultiViews All
</Directory>
Don't you need to get rid of the trailing slashes in the Alias? That requires the URL to also have a trailing slash for the alias to work.