Whole directory 403'd - fixed! Whole directory 403'd - fixed!
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Whole directory 403'd - fixed!

Started by MikeD, December 29, 2005, 08:33:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MikeD

For reference, the gallery is located at ekahn.com/totsepics

One day the whole thing decided to not allow anyone in, saying it was 403 forbidden.  I tried uploading the new version released a few days ago, same problem.  Any idea why I can't access any files?  The recent changes I made were in the config, changing the header text.

I can access everything via ftp or the cpanel, just not http.  I should also mention I am the webhost.

Any ideas how I can fix this?

Thanks

Nibbler


MikeD

I am the host :p  I'll edit that into the OP

Joachim Müller

I suggest reviewing the whole idea of self-hosting.

MikeD

I figured out the problem.  I don't think it was a hosting problem, but coppermine's.  I removed the line:

Options FollowSymLinks SymLinksIfOwnerMatch

from .htaccess in the gallery directory, and then everything worked again.

Tranz

How is it Coppermine's problem? Coppermine doesn't create that file.

MikeD

Coppermine didn't create this?


##  ********************************************
##  Coppermine Photo Gallery
##  ************************
##  Copyright (c) 2003-2005 Coppermine Dev Team
##  v1.1 originaly written by Gregory DEMAR
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##  ********************************************
##  Coppermine version: 1.4.2
##  $Source: /cvsroot/coppermine/devel/plugins/sef_urls/ht.txt,v $
##  $Revision: 1.4 $
##  $Author: gaugau $
##  $Date: 2005/11/23 07:59:23 $
##  ********************************************

Options FollowSymLinks SymLinksIfOwnerMatch

RewriteEngine on

#  Uncomment the following line if your webserver's
#  URL is not directly related to physical file paths.
#  Update "YOUR_COPPERMINE_ROOT" (just / for root)

#RewriteBase /YOUR_COPPERMINE_ROOT

#
# Rewrite index urls
#
RewriteRule index-([0-9]*)\.html index.php?cat=$1 [NC]

#
# Rewrite thumbnail urls
#
RewriteRule thumbnails-([a-z0-9]*)-([0-9]*)\.html thumbnails.php?album=$1&cat=$2 [NC]

RewriteRule thumbnails-([a-z0-9]*)-page-([0-9]*)\.html thumbnails.php?album=$1&page=$2 [NC]

RewriteRule thumbnails-([a-z0-9]*)\.html thumbnails.php?album=$1 [NC]


#
# Rewrite displayimage urls
#
RewriteRule displayimage-([a-z0-9]+)-([0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3 [NC]

RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&pos=$2 [NC]

RewriteRule displayimage-([\-]?[[0-9]*)\.html displayimage.php?pos=$1 [NC]



Tranz

Not by default. It's an optional plugin.

Joachim Müller

it's even an experimental plugin that is only recommended for advanced users - it's flagged accordingly.