Re: [SLE] Apache and mod_rewrite
Hello,
Ignore the other email where I couldn't find mod_rewrite. I have it
successfully installed, but can't seem to get it to write correctly yet.
For the first test, I would like www.URL.uoguilds.com to map
to /webs/uoguilds/rewrite/URL This is what I have sofar:
Hi,
[line wrap is turned off for this message]
RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.[^.]+\.rse\.com$ RewriteRule ^(.+) %{HTTP_HOST}$1 [C] RewriteRule ^www\.([^.]+)\.rse\.com(.*) /home/$1$2
I don't see a problem.
A request for GET /test HTTP/1.0 HOST: www.hostname1.rse.com
Servers up /webs/rse/home/hostname1/test
Isn't that what you want?
What does your rewrite log tell you?
DocumentRoot /webs/rse/ RewriteEngine on RewriteLog rewrite.85 RewriteLogLevel 9
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.rse\.com$ RewriteRule ^(.+) %{HTTP_HOST}$1 [C] RewriteRule ^www\.([^.]+)\.rse\.com(.*) /home/$1$2 </VirtualHost>
(2) init rewrite engine with requested uri /test (3) applying pattern '^(.+)' to uri '/test' (4) RewriteCond: input='www.hostname1.rse.com' pattern='^www\.[^.]+\.rse\.com$' => matched (2) rewrite /test -> www.hostname1.rse.com/test (3) applying pattern '^www\.([^.]+)\.rse\.com(.*)' to uri 'www.hostname1.rse.com/test' (2) rewrite www.hostname1.rse.com/test -> /home/hostname1/test (2) local path result: /home/hostname1/test (2) prefixed with document_root to /webs/rse/home/hostname1/test (1) go-ahead with /webs/rse/home/hostname1/test [OK]
Bill Moseley mailto:moseley@hank.org
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (1)
-
sully@mail.usinternet.com