httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Konzack <linux4miche...@tamay-dogan.net>
Subject [users@httpd] Re: wildcard domains do not work
Date Mon, 03 Jan 2011 12:15:38 GMT
Hello Joost de Heer,

Am 2011-01-03 08:58:06, hacktest Du folgendes herunter:
> >     RewriteCond		/home/$1 -d
> >     RewriteRule		^/([^/]+)/(.*) /home/$1/public_html/$2
> > <snip>
> [R=301] behind the RewriteRule.

This does not work.
While
    <http://www.home.tamay-dogan.net/~michelle.konzack>

is working, the following two are not:

    <http://www.home.tamay-dogan.net/michelle.konzack>
    <http://www.home.tamay-dogan.net/michelle.konzack/>

the second on give a
    404 Not Found
    <http://www.home.tamay-dogan.net/home/michelle.konzack/public_html/>

> > RewriteEngine On
> >
> > # Skip www\.home\.tamay-dogan\.net
> > RewriteCond %{HTTP_HOST} !^www\.
> >
> > RewriteCond %{HTTP_HOST} ^([^.]+)\.home\.tamay-dogan\.net
> > RewriteRule ^/(.*)$  /home/%1/public_html/$1 [L]
> Rewrite rules aren't inherited automatically, you need 'RewriteOptions
> inherit' in your vhost.

Tried this but it does not work.  Otherwise,  it  would  show  the  same
content as:
    <http://www.home.tamay-dogan.net/~michelle.konzack>
    <http://www.home.tamay-dogan.net/michelle.konzack>
but
    <http://michelle.konzack.home.tamay-dogan.net/>

is not working and I see the page of my non-configured Intranet Server.

> RewriteLog and RewriteLogLevel are useful too.

I have put it in the httpd.conf and see only rewite rules for the  TILDE
stuff but not the dynamic homepages.  They seems to be ignored.

> Joost

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstra├če 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Mime
View raw message