You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michelle Konzack <li...@tamay-dogan.net> on 2011/01/03 13:15:38 UTC
[users@httpd] Re: wildcard domains do not work
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/
[users@httpd] Re: Re: wildcard domains do not work
Posted by Michelle Konzack <li...@tamay-dogan.net>.
Hello Igor Galić,
Am 2011-01-04 00:37:23, hacktest Du folgendes herunter:
> How are these dynamic homepage vhosts(?) generated?
I have setup "bind9" to wildcard <*.home.tamay-dogan.net/> to my IP and
let apache do the rest. Speak, currently anything replacing the "*" will
go to the default host.
> Separate vhost each? VHosting via mod_rewrite *shudder*
> mod_vhost_alias?
Ehm?
> RewriteRules are not inherited by default.
> This can only be done via RewriteOptions inherit in the
> child context.
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/
Re: [users@httpd] Re: wildcard domains do not work
Posted by Igor Galić <i....@brainsware.org>.
----- "Michelle Konzack" <li...@tamay-dogan.net> wrote:
> 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.
How are these dynamic homepage vhosts(?) generated?
Separate vhost each? VHosting via mod_rewrite *shudder*
mod_vhost_alias?
RewriteRules are not inherited by default.
This can only be done via RewriteOptions inherit in the
child context.
> > 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/
--
Igor Galić
Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org