Thread Confixx und mod_rewrite (15 answers)
Opened by jan10001 at 2004-02-21 17:25

Strat
 2004-02-22 13:46
#30553 #30553
User since
2003-08-04
5246 articles
ModeratorIn
[Homepage] [default_avatar]
dann machs halt nur fuer die beiden domains. Auf dem Server fuer das neue Board sieht das folgendermaszen aus:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<VirtualHost 217.172.179.49:80>
ServerName develop.perl-community.de
ServerAlias develop.perlcommunity.de www.develop.perl-community.de
User web9
Group ftponly

DocumentRoot /srv/www/htdocs/web9/html
ErrorLog /srv/www/htdocs/web9/log/error.log
ScriptAlias /cgi-bin/ /srv/www/htdocs/web9/html/cgi-bin/
DirectoryIndex /perl-bin/board.pl

<Files board.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlModule Apache::DBI
</Files>

<Files upload.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlModule Apache::DBI
</Files>

<Files download.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
PerlModule Apache::DBI
</Files>


PerlRequire /sc/develop/html/perl-bin/mod_perl_startup.pl

RewriteEngine on
RewriteRule /overview/ /perl-bin/board.pl?action=overview
RewriteRule /board/(.*)/(.*) /perl-bin/board.pl?action=viewboard;boardid=$1;$2
RewriteRule /thread/(.*)/(.*) /perl-bin/board.pl?action=viewThread;threadid=$1;$2
RewriteRule /download/(.+)/(.*) /perl-bin/download.pl?file=$1;$2

</VirtualHost>
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread Confixx und mod_rewrite