Permalinks Plugin / mod_rewrite and ISPConfig Multisite

DantePasquale

Joined: 2007-11-05
Posts: 28
Posted: Wed, 2009-01-28 21:13

I have Gallery2 running with latest stable ISPConfig on Ubuntu 8.10-64 AMD. Everything works fantastic. Except that I want to enable permalinks for many reasons.

I downloaded and installed Gallery's Permalink plugin. The problem is that when I enable that plugin with any options checked, no web pages are found. But, if I clear all the options, save it, then things are back to normal.

This creates a .htaccess in /var/www/web9/web/gallery directory. The codebase is in /var/www/web2/web.

I'm not sure, but I think that with ISPConfig I need to add some sort of <Directory> directive in the Apache Directives Optional Screen for that web-site.

Anyone else run into this? What solutions worked for you?

Dante

BTW, here's the .htaccess file generated by Gallery2 Permalinks Plugin:

# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine On

    RewriteBase /gallery/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   -   [L]

    RewriteCond %{HTTP:Authorization} (.+)
    RewriteCond %{QUERY_STRING} !g2_authorization=
    RewriteRule .   %{REQUEST_URI}?g2_authorization=%1   [QSA]
    RewriteCond %{REQUEST_METHOD} OPTIONS
    RewriteRule .   http://gallery.cocoanet.us/modules/webdav/data/options/   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)\.davmount(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_view=webdav.DownloadDavMount&g2_path=%1   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/w(/[^?]*)?(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_controller=webdav.WebDav&g2_path=%1   [QSA,L]
    RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_URI} !/gallery/main\.php$
    RewriteRule .   /gallery/main.php?g2_path=%1   [QSA,L]
</IfModule>

# END Url Rewrite section


Gallery version = 2.2.6 core 1.2.0.8
PHP version = 5.2.6-2ubuntu4 apache2handler
Webserver = Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4 with Suhosin-Patch mod_ssl/2.2.9 OpenSSL/0.9.8g
Database = mysqli 5.0.67-0ubuntu6, lock.system=database
Toolkits = Dcraw, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, ArchiveUpload, ImageMagick, SquareThumb
Acceleration = none/0, none/900
Operating system = Linux inferno.cocoanet.us 2.6.27-11-generic #1 SMP Fri Jan 23 13:58:13 UTC 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Rows in GalleryAccessMap table = 130
Rows in GalleryAccessSubscriberMap table = 1483
Rows in GalleryUser table = 4
Rows in GalleryItem table = 1481
Rows in GalleryAlbumItem table = 45
Rows in GalleryCacheMap table = 52

http://www.cocoanet.us/gallery