Diff for web-apps/fastcgi-gallery/_modules/config.pm between version 1.2 and 1.3
| version 1.2, 2005/10/18 13:42:50 |
version 1.3, 2006/01/04 16:15:35 |
|
|
| $hostname = `hostname -f`; |
$hostname = `hostname -f`; |
| $hostname =~ s/\s//g; |
$hostname =~ s/\s//g; |
| |
|
| # get name of FastCGI script |
# |
| |
# Get name of FastCGI script |
| |
# |
| |
# I don't like '.fcgi' extension in URL (as you can see on demo page |
| |
# http://fastcgi-gallery.platon.sk/index?gallery=%2F&lang=en ), so we |
| |
# keep only filename withouth extension. |
| |
# |
| |
# You ***NEED*** to enable "Multiviews" option in your Apache configuration. |
| |
# See doc/httpd-example.conf |
| |
# |
| |
# And here is the reason, why I don't use script extension: |
| |
# http://rajo.platon.sk/index/en/show:gallery |
| |
# ^^^^-- language is here |
| |
# http://rajo.platon.sk/index/sk/show:gallery |
| |
# ^^^^-- language is here |
| my ($name, $path, $suffix) = fileparse($0, '.fcgi', '.cgi'); |
my ($name, $path, $suffix) = fileparse($0, '.fcgi', '.cgi'); |
| $fastcgi_name = $name eq '' ? 'index' : $name; # default index |
$fastcgi_name = $name eq '' ? 'index' : $name; # default index |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|