Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Joshua Slive
On 5/2/07, Dmitry Hazin [EMAIL PROTECTED] wrote: I tried the following directives to force redirect: Well, I think the technique of having two VirtualHosts is clearer, but anyway... RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC] RewriteCond %{HTTP_HOST} ^$ RewriteRule ^/(.*)

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Dmitry Hazin
Yes, that was my mistake. Anyway, without that line it didn't work too :( It seems that apache doesn't read RewriteRule directive after it had read ServerAlias one.. What do you mean the technique of having two VirtualHosts? We do have 2 virtualhosts: one for www.site.com and one for www.site.ru

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Joshua Slive
On 5/2/07, Dmitry Hazin [EMAIL PROTECTED] wrote: Yes, that was my mistake. Anyway, without that line it didn't work too :( It seems that apache doesn't read RewriteRule directive after it had read ServerAlias one.. No, that's not true. As I said, if you want to debug mod_rewite you need to use

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-02 Thread Dmitry Hazin
Ok, I tried your method and it worked fine for me! I don't think that I need to spend much time debugging rewriterules so I will stay with it. Thanks in advance! 2007/5/2, Joshua Slive [EMAIL PROTECTED]: On 5/2/07, Dmitry Hazin [EMAIL PROTECTED] wrote: Yes, that was my mistake. Anyway, without

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-05-01 Thread Dmitry Hazin
I tried the following directives to force redirect: RewriteCond %{HTTP_HOST} ^xx\.site\.com [NC] RewriteCond %{HTTP_HOST} ^$ RewriteRule ^/(.*) http://www.site.ru/some/location/$1 [L,R=301] But still no success; it opens the index page of the http://www.site.ru when typing

[EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-04-30 Thread Dmitry Hazin
Hi there, I searched for a while but couldn't point out what is the right way to do the following: We have the following virtualhost configuration: ... ServerName www.site.ru DocumentRoot /home/www/ru.site.www ServerAlias xx.site.com ... What I need is to redirect from

Re: [EMAIL PROTECTED] ServerAlias and redirecting, please help

2007-04-30 Thread Joshua Slive
On 4/30/07, Dmitry Hazin [EMAIL PROTECTED] wrote: What is the correct way to configure apache so it will redirect from xx.site.com to http://www.site.ru/some/location ? See: http://wiki.apache.org/httpd/Recipes/CanonicalHostNames Joshua.

Re: [EMAIL PROTECTED] ServerAlias with Apache 2.0.40

2007-01-12 Thread cristina
: Thursday, January 11, 2007 11:11 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] ServerAlias with Apache 2.0.40 Hi all, I'm tryint to test one virtual host with some alias. My conf is: VirtualHost 193.168.2.12:80 ServerName www.nombre.es ServerAlias www.nombre.net www.nombre.com www.nombre.org

[EMAIL PROTECTED] ServerAlias with Apache 2.0.40

2007-01-11 Thread cristina
Hi all, I'm tryint to test one virtual host with some alias. My conf is: VirtualHost 193.168.2.12:80 ServerName www.nombre.es ServerAlias www.nombre.net www.nombre.com www.nombre.org /VirtualHost I've seen that I could use ServerAlias with the same domain: www1.nombre.es www2.nombre.es

RE: [EMAIL PROTECTED] ServerAlias with Apache 2.0.40

2007-01-11 Thread Boyle Owen
-Original Message- From: cristina [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 11:11 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] ServerAlias with Apache 2.0.40 Hi all, I'm tryint to test one virtual host with some alias. My conf is: VirtualHost

RE: [EMAIL PROTECTED] ServerAlias

2006-06-12 Thread Boyle Owen
-Original Message- From: OOzy Pal [mailto:[EMAIL PROTECTED] Sent: Friday, June 09, 2006 5:21 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] ServerAlias On 6/9/06, Rainer Sokoll [EMAIL PROTECTED] wrote: On Fri, Jun 09, 2006 at 06:00:27PM +0300, OOzy Pal wrote

[EMAIL PROTECTED] ServerAlias

2006-06-09 Thread OOzy Pal
When I type admin.b1.com in Firefox or Lynx, I get SERVER NOT FOUND error My VH is as follows: NameVirtualHost * VirtualHost * Directory /var/www Options FollowSymLinks AllowOverride None Allow from All /Directory DirectoryIndex index.php ServerName

Re: [EMAIL PROTECTED] ServerAlias

2006-06-09 Thread Rainer Sokoll
On Fri, Jun 09, 2006 at 06:00:27PM +0300, OOzy Pal wrote: When I type admin.b1.com in Firefox or Lynx, I get SERVER NOT FOUND error Since there is no A record (DNS) for admin.b1.com: ~ host admin.b1.com Host admin.b1.com not found: 3(NXDOMAIN) Rainer

Re: [EMAIL PROTECTED] ServerAlias

2006-06-09 Thread OOzy Pal
On 6/9/06, Rainer Sokoll [EMAIL PROTECTED] wrote: On Fri, Jun 09, 2006 at 06:00:27PM +0300, OOzy Pal wrote: When I type admin.b1.com in Firefox or Lynx, I get SERVER NOT FOUND error Since there is no A record (DNS) for admin.b1.com: ~ host admin.b1.com Host admin.b1.com not found:

Re: [EMAIL PROTECTED] ServerAlias: length limit ???

2005-11-07 Thread Rich Bowen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael D Schleif wrote: Apache/1.3.33 ServerAlias [A] Is there a limit to how long a ServerAlias can be? Characters? Words? If it's a valid hostname, you can use it in ServerAlias. [B] Can I use multiple (more than one) ServerAlias

[EMAIL PROTECTED] ServerAlias: length limit ???

2005-11-06 Thread Michael D Schleif
Apache/1.3.33 ServerAlias [A] Is there a limit to how long a ServerAlias can be? Characters? Words? [B] Can I use multiple (more than one) ServerAlias line? For large numbers of aliases, this may improve readability and manageability. What do you think? -- Best Regards, mds mds