| /Blog /Forum /NewsClick /WebDjango /Wiki |
wiki
#Rewrite urls RewriteEngine On RewriteLogLevel 0 # map /wiki static files to Moin htdocs RewriteRule /wiki-sitemap.gz /usr/local/share/moin/mywiki/wiki-sitemap.gz [L] RewriteRule ^/wiki/(.*)$ /usr/share/moin/htdocs/$1 [last] RewriteRule ^/robots.txt$ /usr/share/moin/htdocs/robots.txt [last] RewriteRule ^/favicon.ico$ /usr/share/moin/htdocs/favicon.ico [last] # map everything else to server script RewriteRule ^(.*)$ //usr/local/share/moin/mywiki/moin.fcg$1 <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi .fcg #FastCgiServer /your/path/to/moin.fcg -idle-timeout 60 -processes 1 ScriptAlias / "/usr/local/share/moin/mywiki/moin.fcg" </IfModule>
#Rewrite urls
RewriteEngine On
RewriteLogLevel 2
RewriteRule ^/s9y/(.*)$ http://newsclick.mobbing-gegner.de/$1 [L,R=301]
RewriteRule ^/planet/(.*)$ http://newsclick.mobbing-gegner.de/$1 [L,R=301]
RewriteRule ^/mywiki/(.*)$ http://wiki.mobbing-gegner.de/$1 [L,R=301]
<Location "/">
SetHandler python-program
#PythonHandler mod_python.testhandler
PythonHandler django.core.handlers.modpython
PythonPath "['/var/www/www.mobbing-gegner.de/web/'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE portalsettings
#PythonDebug On
#PythonInterpreter FrontPage
#PythonAutoReload On #debugging
</Location>
<Location "/media">
SetHandler None
</Location>
<Location "/WeiteWelt">
SetHandler None
</Location>
<Location "/awstats">
SetHandler None
</Location>
<Location "/cgi-bin/">
SetHandler None
</Location>
<LocationMatch "\.(jpg|gif|png)$">
SetHandler None
</LocationMatch>
<Directory /var/www/web1/web>
Options +ExecCG
I +FollowSymLinks
AllowOverride all
</Directory>
Einiges darf nicht direkt von den Applikationen ausgeliefert werden.
Für die google-analytics die sitemaps:
http://wiki.mobbing-gegner.de/wiki-sitemap.gz
-- DetlevLengsfeld 2008-02-08 06:35:27
| /Apache Konfig /awstats |
Linux/ServerConfig/Hetzner/Apache Konfig (last modified 2008-11-04 07:00:05)