problem s mod_rewrite a suEXEC
Michal 'Teoretik' Rysavy
Michal.Rysavy na gybon.cz
Úterý Únor 9 11:36:05 CET 1999
mod_rewrite mi prepise automaticky odkazy typu ~uzivatel na /homedir,
kde domovsky adresar vezme ze souboru passwd. Jednak mi to nechodi,
protoze mi to prepise na domovsky adresar a ne na UserDir z httpd.conf
a cesta neni spravna, a kdyz jsem toto obesel umelym doplnenim
cesty, tak mi nesel suEXEC, protoze mi mod_rewrite automaticky
prepsal adresu zanajici ~uzivatel na absolutni adresu a suEXEC
pozaduje, aby zacinala na ~uzivatel.
muj httpd.conf:
ServerType standalone
ServerRoot /home/httpd
PidFile /var/run/httpd.pid
HostNameLookups off
User httpd
Group httpd
ResourceConfig /dev/null
AccessConfig /dev/null
ServerAdmin root na rysavy.cz
DocumentRoot /home/httpd/www
Options All
UserDir /home/*/www/
ErrorLog /var/log/httpd/error_log
TransferLog /var/log/httpd/transfer_log
ScriptLog /var/log/httpd/script_log
RefererLog /var/log/httpd/refer_log
RewriteLog /var/log/httpd/rewrite_log
RewriteLogLevel 9
ServerName www.rysavy.cz
Alias /apachemanual "/home/httpd/htdocs"
RewriteEngine on
RewriteRule ^/greenhorns(.*) "/~michal/www/greenhorns$1"
<Directory /home/*/www>
Order deny,allow
Allow from all
AllowOverride All
</Directory>
<Location /status>
SetHandler server-status
</Location>
<Location /info>
SetHandler server-info
</Location>
<Location /apachemanual>
Order deny,allow
Allow from all
</Location>
<Directory />
Order deny,allow
Deny from all
</Directory>
<Directory /home/httpd/www>
Order deny,allow
Allow from all
</Directory>
Další informace o konferenci Linux