httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] domain.com/~user -> user.domain.com
Date Tue, 13 Nov 2007 07:43:53 GMT
> -----Original Message-----
> From: Chris Arnold [mailto:carnold@electrichendrix.com] 
> Sent: Tuesday, November 13, 2007 1:12 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] domain.com/~user -> user.domain.com
> 
> >>Thanks! but where I have to put this code? In which .htaccess?
> 
> I too would like to use this but when i put it in my htaccess 
> file, it does not work. 

What does "does not work" mean???

> Here is my htaccess with the supplied 
> code in it. Maybe i am not finding the right place to place this code?

Couple of points:

- do you have mod_rewrite? (cf. IfModule...)
- why does this need to go in a .htaccess file? It will only be used if
the directory is accessed - are you sure that is happening? Better is to
put it into the main config.
- The Big One: this whole user.domain.com -> www.domain.com/~user will
only work if you have registered user.domain.com in DNS to point to an
IP you are listening to (usually same as www.domain.com). BTW, this is
why "does not work" is annoying - if you had said, "I get Bad Gateway",
then we would know you had not set up DNS. If you said "I just get
www.domain.com" then we'd know it was something in the config...

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> 
> <Limit GET>
> order allow,deny
> allow from all
> deny from 81.177.14.
> deny from 81.177.15.
> deny from 85.255.119.
> deny from 208.66.193.
> deny from 195.225.177.
> </Limit>
> <Limit POST>
> order allow,deny
> allow from all
> deny from 81.177.14.
> deny from 81.177.15.
> deny from 208.66.193.
> </Limit>
> # BEGIN WordPress
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L]
>    RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
>    RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com$ [NC]
>    RewriteRule (.*) ~%2/$1 [L]
> </IfModule>
> 
> # END WordPress
> 
> ---------------------------------------------------------------------
> 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
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

---------------------------------------------------------------------
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


Mime
View raw message