Web Hosting Forums

Results 1 to 6 of 6

This is a discussion on Mailman and Htaccess in the Hosting Talk & Chit-chat forum
Apparently my .htaccess file is causing mailman to stop working. It gives "Internal Server Error" for all of its pages (for the page where you ...

  1. #1
    Loyal Client
    Join Date
    Jan 2005
    Posts
    170

    Mailman and Htaccess

    Apparently my .htaccess file is causing mailman to stop working. It gives "Internal Server Error" for all of its pages (for the page where you would log in).

    This is my .htaccess file, which is stored in my root diretory (public_html):

    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /
    RewriteRule displaycampaign-update-(.*)\.htm$ /displaycampaign-update\.php?giCuid=$1
    RewriteRule displaycampaign-(.*)\.htm$ /displaycampaign\.php?giCaid=$1
    RewriteRule displaycategory-(.*)\.htm$ /displaycategory\.php?giCid=$1
    RewriteRule displayemaillist-(.*)\.htm$ /displayemaillist\.php?giEmid=$1
    RewriteRule displayevent-(.*)\.htm$ /displayevent\.php?giEid=$1
    RewriteRule displayfaq-(.*)\.htm$ /displayfaq\.php?giFid=$1
    RewriteRule displaygroup-(.*)\.htm$ /displaygroup\.php?giGid=$1
    RewriteRule displayissue-(.*)\.htm$ /displayissue\.php?giIid=$1
    RewriteRule displayperson-(.*)\.htm$ /displayperson\.php?giPid=$1
    RewriteRule displayresource-(.*)\.htm$ /displayresource\.php?giRid=$1
    RewriteRule displayschool-(.*)\.htm$ /displayschool\.php?giSid=$1
    RewriteRule displaysitemapstate-zip-(.*)\.htm$ /displaysitemapstate-zip\.php?gsState=$1
    RewriteRule displaysitemapstate-(.*)\.htm$ /displaysitemapstate\.php?gsState=$1
    RewriteRule displaystate-(.*)\.htm$ /displaystate\.php?gsState=$1
    RewriteRule displaytopic-(.*)\.htm$ /displaytopic\.php?giToid=$1
    RewriteRule displayzip-(.*)\.htm$ /displayzip\.php?gsZip=$1
    RewriteRule displaypostalcode-(.*)\.htm$ /displaypostalcode\.php?PostalCode=$1
    RewriteRule displaypostalcode3-(.*)\.htm$ /displaypostalcode3\.php?PostalCode=$1


    RewriteRule listcampaign-(.*)\.htm$ /listcampaign\.php?giCurrentpageiCaid=$1
    RewriteRule listcategory-(.*)\.htm$ /listcategory\.php?giCurrentpageiCid=$1
    RewriteRule listeventnusoap-(.*)\.htm$ /listeventnusoap\.php?giCurrentpageiEid=$ 1
    RewriteRule listevent-(.*)\.htm$ /listevent\.php?giCurrentpageiEid=$1
    RewriteRule listemaillist-(.*)\.htm$ /listemaillist\.php?giCurrentpageiEmid=$1
    RewriteRule listfaq-(.*)\.htm$ /listfaq\.php?giCurrentpageiFid=$1
    RewriteRule listgroups-(.*)\.htm$ /listgroups\.php?giCurrentpageiGid=$1
    RewriteRule listissue-(.*)\.htm$ /listissue\.php?giCurrentpageiIid=$1
    RewriteRule listnetwork-(.*)\.htm$ /listnetwork\.php?giCurrentpageiGid=$1
    RewriteRule listpeople-(.*)\.htm$ /listpeople\.php?giCurrentpageiPid=$1
    RewriteRule listresourcenusoap-(.*)\.htm$ /listresourcenusoap\.php?giCurrentpageiRi d=$1
    RewriteRule listresource-(.*)\.htm$ /listresource\.php?giCurrentpageiRid=$1
    RewriteRule listschool-(.*)\.htm$ /listschool\.php?giCurrentpageiSid=$1
    RewriteRule listspeaker-(.*)\.htm$ /listspeaker\.php?giCurrentpageiPid=$1
    RewriteRule listtopic-(.*)\.htm$ /listtopic\.php?giCurrentpageiToid=$1
    RewriteRule listzip-(.*)\.htm$ /listzip\.php?giCurrentpagesZip=$1

    AddType application/x-httpd-php-cgi .phtml
    Action application/x-httpd-php-cgi /home2/campusac/php436/bin/php


    Jaguar Support fixed this problem by deleting my .htaccess file (without telling me!), which messed up 95% of my website.

    My problem is that I don't understand how this would be overwriting the mailman .htaccess file? (Note: my knowledge of mailman is very little).

  2. #2
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,570
    Quote Originally Posted by akreider2
    Jaguar Support fixed this problem by deleting my .htaccess file (without telling me!), which messed up 95% of my website.
    Oops..

    Good thing you had a backup handy.

    My problem is that I don't understand how this would be overwriting the mailman .htaccess file? (Note: my knowledge of mailman is very little).
    As is mine, alas. However, I do know a little about .htaccess files. AFAIK you can't really "overwrite" mailman's. However, I take it you are accessing the mailman interface from under your own domain name? Then Apache will also be applying your .htaccess file on those page requests. So, probably something in that file of yours doesn't sit well with Mailman, but does not get corrected back to "default" (yet).

    You could try to make another .htaccess on a lower level, just above the link to mailman, one that basically undoes your main one, i.e. sets all settings you made side wide back to default for the mailman area. Of course, you can make it more elegant by figuring out which exact settings are the trouble makers, and "locally undoing" only those.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  3. #3
    Loyal Client
    Join Date
    Jan 2005
    Posts
    170
    Unfortunately mailman is hidden from us and we don't have any access to it, or the directories above it. (I suspect public_html is the only directory above it that we have access to).

    I might just go line by line on my .htaccess file at 3am (removing one line and see if that's the problem, then putting it back), when I don't feel so bad about taking down my site. Fortunately I am regularly awake at 3am =)

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,570
    Quote Originally Posted by akreider2
    Unfortunately mailman is hidden from us and we don't have any access to it, or the directories above it. (I suspect public_html is the only directory above it that we have access to).
    I'm not sure it needs to be that way. You access Mailman through http://<yourdomain>/mailman/listinfo? I assume that /mailman is some serverwide internal apache rewrite (or similar) that we have no control over. However, I suppose you could ask support to make another symlink to mailman for you, from a folder that you do have control over, say "/lists"? I can't think of a reason they'd refuse. You can then put the .htaccess you need in this "lists" folder.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  5. #5
    Loyal Client
    Join Date
    Jan 2005
    Posts
    170
    Apparently mailman doesn't use .htaccess

    Very weird, but support got it working so long as I use
    mail.mydomain.org
    instead of using just
    mydomain.org

  6. #6
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,570
    Sounds to me like it was influenced by your .htaccess after all: using mail.domain.org would probably make sure it doesn't pass your .htaccess at all, so there's nothing to undo either.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •