Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th January 2009, 18:15
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 107
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
Question Gallery2 Permalinks (mod_rewrite) on ISPConfig with Multi-site installation

Hi,

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:

Code:
# 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

Last edited by DantePasquale; 28th January 2009 at 18:54. Reason: More Information
Reply With Quote
Sponsored Links
  #2  
Old 29th January 2009, 10:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,484
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

This rewrite code should work in a .htaccess file, no need to add it in the apache directives field. Is gallery2 installed directly in the "web" directory or in a subdirectory "web/gallery"? If its installed directly in the web directory, the line:

RewriteBase /gallery/


has to be:

RewriteBase /
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 29th January 2009, 14:27
DantePasquale DantePasquale is offline
Senior Member
 
Join Date: Feb 2007
Location: Lakewood, OH US
Posts: 107
Thanks: 10
Thanked 3 Times in 3 Posts
Send a message via AIM to DantePasquale
 
Default

Hi Till,

Gallery is installed under web/gallery. Yeah, the re-write code looks fine, but it's not finding the pages when I have this file in place.

It's actually a bit weirder than that. Let's say I open the main gallery, it opens fine, but none of the pictures are displayed. When I look at their URL's they are indeed rewritten.

What's a good way to debug this?

Thanks, Danté
Reply With Quote
Reply

Bookmarks

Tags
.htaccess, gallery2, ispconfig

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot access ispconfig site Nu2Linux Installation/Configuration 13 3rd January 2009 15:29
newbie ububtu 6.0.6 error PHP binary line 816 davidsky73 Installation/Configuration 8 17th September 2006 11:51
host site at same domain as ISPConfig server? amoswright Installation/Configuration 2 13th January 2006 22:43
ISP-Ubuntu breezy ispconfig dns email e-mail working finally yellowjelly HOWTO-Related Questions 0 19th November 2005 20:30
install successful but no ispconfig site Nu2Linux Installation/Configuration 3 3rd November 2005 23:30


All times are GMT +2. The time now is 15:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.