Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Rewrite problem - username.domain.com -> /home/username/html

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Buscando aprobacion  
Author Message
mortenremove

External


Since: Sep 13, 2003
Posts: 8



(Msg. 1) Posted: Sat Sep 13, 2003 10:18 pm
Post subject: Rewrite problem - username.domain.com -> /home/username/html
Archived from groups: alt>apache>configuration (more info?)

How is this done??

I've put this in a .htaccess file, but just keep getting RewriteLog not
allowed here, and if I diasble rewrite log and debug, I get RewriteMap not
allowed here...

Rewritelog rewrite.log
RewritelogLevel 9

RewriteMap lowercase int:tolower
RewriteEngine on
RewriteCond ${lowercase:%{HTTP_HOST}} !^$
RewriteCond ${lowercase:%{HTTP_HOST}} !^www\.homedir\.dk$

RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.)([^.]+)\.homedir\.dk$
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule ^(www\.)([^.]+)\.homedir\.dk(.*) /home/$2/html$3 [L]

RewriteCond ${lowercase:%{HTTP_HOST}} ^(www\.)homedir\.dk$
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule ^(www\.)homedir\.dk(.*) /home/Morten/html/www.homedir.dk$2 [L]

RewriteCond ${lowercase:%{HTTP_HOST}} ^([^.]+)\.homedir\.dk$
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1 [C]
RewriteRule ^([^.]+)\.homedir\.dk(.*) /home/$1/html$2 [L]

--
Best regards, Morten Trab
--
Svar venligst kun i NG, med mindre det er MEGET vigtigt.
Ved mail, slet REMOVE i min adresse.

Web: http://www.blackchart.dk

 >> Stay informed about: Rewrite problem - username.domain.com -> /home/username/html 
Back to top
Login to vote
jring

External


Since: Jun 30, 2003
Posts: 154



(Msg. 2) Posted: Mon Sep 15, 2003 6:13 pm
Post subject: Re: Rewrite problem - username.domain.com -> /home/username/html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > I've put this in a .htaccess file, but just keep getting RewriteLog not
 > allowed here, and if I diasble rewrite log and debug, I get RewriteMap not
 > allowed here...

let me quote from TFM:

RewriteLog
Syntax: RewriteLog file-path
Default: None
Context: server config, virtual host
....

RewriteMap
Syntax: RewriteMap MapName MapType:MapSource
Default: not used per default
Context: server config, virtual host
....

which means the about the same your error messages implied. RewriteLog
and RewriteMap cannot be used in an .htaccess file. tough luck if you
cannot change htttpd.conf.

joachim<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Rewrite problem - username.domain.com -&gt; /home/username/html 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rewrite HTTP Head problem - Hello, I use apache (port 80) and Zope (8080). I use RewriteRule /zeop/(.*) http://127.0.0.1:8080/$1 P but the problem is the HTTP Head is http://127.0.0.1:8080/ ans I would like HTTP Head is http://www.monsite.com/zope Thinks Sorry My English is very...

Mod Rewrite help - I've got 10,000+ files in a folder http://www.myseite.com/acrhives/ i.e. .../archives/2000/12/, .../archives/2000/11/, .../archives/2000/10/ ... Several years, many months of html mhonarc-archived docs. We have so many files in this one folder, I've..

REWRITE - I have a movie download site and what i need is that if users are linking my files (like http://www.eengoedidee.nl/videoz/bmx/jib.mpg) that they come to a page for the download. Like this..

Rewrite rule - I have a single Apache 1.3.6 server on my MacX Server (10.2.6) I have 15 Alexandria Library Servers at my schools. Our internal network is 10.0.0.0/8 with NAT to the outside. What I would like to do is add alink on each of the 15 locations web pages..

mod rewrite question - I'm hoping I can get an answer to one of the 4 questions I've posted to this group over the last couple of months, so here goes. I'm serving XHTML files as application/xhtml+xml as they should be. But IE doesn't like this. What I wanted to do was us...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]