Ignore:
Timestamp:
2013-03-04T18:40:03+13:00 (11 years ago)
Author:
ak19
Message:

Second commit for RSS support: GS Apache on Linux needs to have mod-rewrite enabled during configure, so that its httpd.conf file can use the new Rewrite rules to work with pretty URLs. These pretty URLs are defined in the documenthandle line in base.dm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/packages/apache-httpd/httpd.conf.in

    r26541 r26977  
    434434     **CONNECTPERMISSION** from all
    435435     Allow from 127.0.0.1 **HOST_IP** **HOSTS** localhost
     436
     437     RewriteEngine On
     438     RewriteRule ^([A-Za-z0-9-]+)/about/?$         /greenstone/cgi-bin/library.\
     439cgi?c=$1&a=p&p=about [L]
     440     RewriteRule ^([A-Za-z0-9-]+)/query/?$         /greenstone/cgi-bin/library.\
     441cgi?c=$1&a=q [L]
     442     RewriteRule ^([A-Za-z0-9-]+)/document/([^/]+)$  /greenstone/cgi-bin/librar\
     443y.cgi?c=$1&a=d&d=$2 [L]
     444     RewriteRule ^([A-Za-z0-9-]+)/document/(.*?)/(.*)$  /greenstone/cgi-bin/lib\
     445rary.cgi?c=$1&a=d&d=$2&$3 [L]
     446     RewriteRule ^([A-Za-z0-9-]+)/$                /greenstone/cgi-bin/library.\
     447cgi?c=$1&a=p&p=about [L]
     448     # RewriteRule ^([A-Za-z0-9-]+)/(.*?)$         /greenstone/cgi-bin/library.cgi?c=$1&$2 [L]
     449
    436450  </Directory> 
    437451 
Note: See TracChangeset for help on using the changeset viewer.